/*
 * eva-fixes.css — the three owner reports from the browser, measured.
 *
 * Loaded from Page.astro immediately after the page's own captured stylesheet,
 * so a rule here beats the capture on order at equal specificity. That is the
 * whole mechanism: no `!important`, and no captured bundle is edited.
 *
 * The numbers in the comments are what the built site measured before these
 * rules, so the reason survives the next agent who wonders why they are here.
 */

/* Report 1 (the nav wraps, "make the nav stretch at the cost of the logo"):
   the header's flex line is over-constrained, and the nav is what gives — the
   toggle's label wraps onto a second line while the logo stays pinned at its
   300px cap. Measured: the toggle is 140.75px wide and one line at 1264px, then
   121.94px and two lines at 1248px; at 1200px it is 59.69px tall against a
   29.85px line box, and at 1040px 58.69px against 29.36px. So the nav keeps its
   own width and the logo, which the capture caps at 300px, is the item that
   yields — down to an 80px floor, which is the smallest the mark stays legible
   at. */
#brx-header .header__menu { flex: 0 0 auto; }
#brx-header .eva-nav-dropdown > .eva-nav-dropdown-toggle { white-space: nowrap; }
#brx-header .header-6-main__logo { flex: 0 1 auto; min-width: 80px; }
#brx-header .header-6-main__logo > .bricks-site-logo { max-width: 100%; height: auto; }

/* Report 2 (the trial button is not full width): the button is the one inside
   the offcanvas menu — the owner's selector, `#brxe-bfcgzx > div:nth-of-type(1)
   > a`, accessible name "Book Trial" — not the hero's button, which is a
   different element with a different label and shares its row with "Learn More"
   by design, so it is left exactly as captured. `.brxe-eptopo` (the panel's
   inner block) is a column with `align-items: stretch`, yet the CTA measures
   167.53px of the 1360.8px content box at 1440 and 154.44px of 347.55px at 390,
   because a Bricks button is sized to its label. The panel is `display:none`-free
   but `visibility:hidden` above 991px, where the header shows the full nav
   instead, so this rule takes effect wherever the menu is actually shown; it is
   still the same element at every width. */
#brxe-bfcgzx > div:nth-of-type(1) > a { width: 100%; }

/* Report 3a (the mobile menu's bottom separator): the "Start Learning / Live
   Lessons / Learn On Your Own" block gets its separator from the capture's
   `max-width: 478px` bucket only, while the offcanvas menu is what is shown up
   to 991px. Measured: border-bottom 0px at 768 and 479, 1px at 390. Repeated
   here for every width that shows the menu; the colour is stated because the
   capture leaves it as `currentColor` on an inherited text colour. */
@media (max-width: 991px) {
  #brx-header .brxe-ssvydo {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: var(--dark-20);
  }
}

/* Report 3b (the toggle should read as a close button inside the menu) needs no
   rule here: Bricks' own front-end stylesheet already turns `.brxa--spin` into
   an × when the toggle carries `.is-active` — the middle bar rotates 225deg, the
   top bar fades and the bottom bar turns 90deg. The capture was never given that
   class because the script that added it is not part of the conversion, so
   /js/mobile-menu.js now sets it with the panel's open state. Writing the ×
   again here would be a second definition of a state that already exists. */

/* Report 4 (the fold's control belongs to the drawer it folds): the owner's
   words — "this should be inside the drawer, sticky top, and visible when the
   drawer is folded. the drawer when folded should not be invisible, but only
   the width of this icon should be visible to unfold."

   Measured before these rules, at 1440x900 on /lesson/welcome-3/. Unfolded, the
   drawer is 442.66px of a three-column `.single__body` (442.66px 442.66px
   442.66px, gap 28) and the toggle is a 34x34 sticky button that is not inside
   it. Folded, the drawer is `display:none` — 0x0 — the grid collapses to one
   1384px column, and the toggle is lifted out to `position:fixed`, 34x34 at
   x=1396, top 50. So no part of the drawer survived the fold, and the only way
   back was a button floating over the page.

   Now the toggle is the drawer's first child and a folded drawer is a 42px rail
   — the 34px icon plus 4px either side — in a `minmax(0,1fr) 42px` grid, so the
   content column grows from 913.33px to 1314px (`.lesson-media` measured
   857.33px before the fold and 1258px after it) and the drawer stays where the
   design puts it. The rail keeps the right-hand column rather than being pushed
   under the content as a one-column grid would push it: the lesson is written
   with the drawer beside it, and folding one thing must not reorder another.
   The `top: 0` pins the button to the drawer's own scrollport, so it stays at
   the drawer's top while the syllabus scrolls under it.

   This is the one place in this sheet that writes `!important`, and it is not a
   shortcut: the served page reports `lesson-ui.css` hiding the drawer with
   `.eva-sidebar-collapsed #brxe-ttoacv { display: none !important; }`, and the
   0px column did not yield to a higher-specificity rule either, so both
   properties carry one here. An `!important` declaration is the only thing that
   can undo another, and the reason belongs where it is read.
   The drawer's rule also names the captured id — `.syllabus-sidebar#brxe-ttoacv`
   — because that id is what the sheet being overridden selects on, and a
   selector made only of classes loses to it however many classes it has. */

.syllabus-sidebar > #eva-sidebar-toggle {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 3;
}

html.eva-sidebar-collapsed .single__body:has(> .single__right) {
  grid-template-columns: minmax(0, 1fr) 42px !important;
}

html.eva-sidebar-collapsed .single__body > .single__left {
  grid-column: 1;
}

html.eva-sidebar-collapsed .single__body > .single__right {
  grid-column: 2;
}

html.eva-sidebar-collapsed .single__right > .syllabus-sidebar#brxe-ttoacv {
  display: block !important;
  width: 42px;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

/* Nothing else of the drawer is visible: the panel, the accordion and the
   syllabuses are display:none, so the 42px rail holds the control and no
   clipped fragment of the list. */
html.eva-sidebar-collapsed .single__right > .syllabus-sidebar > :not(#eva-sidebar-toggle) {
  display: none;
}

/* The fold used to lift the button out to `position:fixed`; it is inside the
   drawer now, so it is pinned to the drawer's top instead of the viewport's.
   No colour is stated here: the brand face below is the same rule in both
   states, so the rail cannot show a different toggle from the open drawer. */
html.eva-sidebar-collapsed .single__right > .syllabus-sidebar > #eva-sidebar-toggle {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  display: flex;
  margin: 4px auto 0;
}

/* Report 5 (two controls on the lesson page were drawn before the app had a
   brand sheet): the owner's words on `#eva-sidebar-toggle` — the drawer's
   "Fold the course sidebar" control — are *"This must be on-brand"*, and on the
   "Lessons opened" progress bar inside `#brxe-rzcrqo`, *"brand color"*.

   Both were drawn in `lesson-ui.css` (the lesson page's own sheet, which loads
   immediately before this one) from a green that appears nowhere in the site's
   palette: the toggle measured `rgb(27, 122, 75)` for its icon on `#fff` with a
   `#d7ded9` border, an 8px radius and its own hand-written shadow; the progress
   fill measured the same green, over a `#eef2f0` track. None of those four
   values is a declared token, which is the whole of the report.

   So every value below is a token from the site's own `:root`, the block
   `eva-app.css` copies verbatim — the accent and its dark steps, the surface,
   the border, the radius and the shadow. The toggle keeps the surface and the
   border at rest with the accent carrying its icon, and turns to the accent
   itself on hover and keyboard focus with the darkest accent step as ink, which
   is the same face the app's own primary buttons wear. The bar's fill is the
   accent and its track is the site's light neutral, and the radius is the
   pill's. This is the same specificity answer as the rest of this sheet: the
   id leads, so no `!important` is needed and no captured file is edited. */

#eva-sidebar-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-s);
  color: var(--primary);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* The button's primary state — pointer over it, or reached by keyboard — is the
   accent surface with the darkest accent step as its ink, so the icon never
   sits gold-on-gold. */
#eva-sidebar-toggle:hover,
#eva-sidebar-toggle:focus-visible {
  background: var(--primary);
  border-color: var(--primary-d-1);
  color: var(--primary-d-4);
  /* `lesson-ui.css` draws a keyboard ring in the same green as the old face;
     the ring is part of the focus state, so it is stated here too. */
  outline: 2px solid var(--primary-d-3);
  outline-offset: 2px;
}

#brxe-rzcrqo .eva-progress-bar {
  background: var(--dark-10);
  border-radius: var(--radius-full);
}

/* The fill keeps its `width:N%` inline, because that number is the lesson's
   data, not its decoration; only the colour and the radius are stated here. */
#brxe-rzcrqo .eva-progress-fill {
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* Report 6 (four notes from the owner, all on the same lesson page).

   6a `#eva-sidebar-toggle` — *"The Icon is reversed."* The drawer is the
   right-hand column of `.single__body`, so a chevron points *towards* it by
   pointing right, and towards it is the fold. `src/lib/render.ts` now authors
   that right-pointing path, and the two states below are the one rotation that
   separates them. The folded rotation is the rule `lesson-ui.css` already
   applies under `.eva-sidebar-collapsed` — the class `/js/lesson-ui.js` puts on
   `<html>` — restated here so both directions and their reason sit together;
   the open state is stated as well, so the measurement is a comparison of two
   transforms rather than of one transform against a default.

   6b `#eva-offline` — *"should be on brand."* The block was drawn with inline
   `style` attributes in `render.ts` and therefore could not be overridden: a
   `#f6faf7` surface, a `#dbe5df` border, a 12px radius and grey type, none of
   them a declared token. Those attributes are gone; every value below is a
   token from the site's own `:root`, the same block `eva-app.css` copies. The
   accent appears where the block *states* something — the status sentence once
   it carries a `data-state`, and the button when it can act — and the muted
   body colour carries the rest.

   6c "Back to Course" — `render.ts` writes it above `#brxe-zedsaq` now, outside
   the content area; these rules are only its face, and they reuse the type and
   the ink tokens rather than introducing a second style for a link.

   6d the same toggle — *"this should be hidden for mobile."* Below 640px the
   control has no place: the app sheet is what is applied there and the
   syllabus is stacked rather than beside the content. The selector list names
   both the resting rule and the folded rail rule, so the fold state cannot put
   it back on screen; the rail's own selector is repeated rather than
   outweighed, which is why no `!important` is needed here either. */

html:not(.eva-sidebar-collapsed) #eva-sidebar-toggle svg {
  transform: rotate(0deg);
}

html.eva-sidebar-collapsed #eva-sidebar-toggle svg {
  transform: rotate(180deg);
}

/* 6b — the offline block, on the site's surface, border, radius, shadow, face
   and muted ink. The sheet is loaded by the lesson page at every width, and
   every token below is declared by the captured page's own `:root` as well as
   by `eva-app.css`, so nothing here depends on the app sheet being applied. */

#eva-offline {
  max-width: 52rem;
  margin: var(--space-s) auto 0;
  padding: var(--space-3xs) var(--space-2xs);
  background: var(--bg-surface);
  border-width: 1px;
  border-style: solid;
  border-color: var(--border-primary);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  color: var(--text-body);
  font-family: var(--font--body, Inter), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-s);
  text-align: left;
}

#eva-offline .eva-offline__label {
  margin: 0 0 var(--space-3xs);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-body);
}

/* The owner names this row by position — `#eva-offline > div` — and it is the
   button and its sentence, side by side until the phone stacks them. */
#eva-offline > div {
  display: flex;
  gap: var(--space-2xs);
  align-items: center;
  flex-wrap: nowrap;
}

@media (max-width: 639.98px) {
  #eva-offline > div {
    flex-wrap: wrap;
  }
}

#eva-offline .eva-offline__status {
  margin: 0;
  flex: 1 1 14rem;
  font-size: var(--text-xs);
  color: var(--text-body);
}

/* A sentence that states a state — saving, saved, refused — is the accent's
   dark step, which is the ink the app's own accent surfaces use. The resting
   sentence keeps the muted body colour. */
#eva-offline .eva-offline__status[data-state] {
  color: var(--primary-d-3);
}

#eva-offline .eva-offline__button {
  font: inherit;
  font-size: var(--text-xs);
  padding: var(--space-3xs) var(--space-2xs);
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius-full);
  text-align: left;
}

#eva-offline .eva-offline__button:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary-d-1);
  color: var(--primary-d-4);
  cursor: pointer;
}

/* The Drive-only lesson's disabled button says why in its own label; it is a
   neutral face, because there is no action to invite. */
#eva-offline .eva-offline__button:disabled {
  background: var(--dark-5);
  border-color: var(--border-primary);
  color: var(--text-body);
  cursor: not-allowed;
}

/* 6c — "Back to Course", the link the lesson nav gave up. */
.eva-back-to-course {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3xs);
  margin: 0 0 var(--space-s);
  font-family: var(--font--body, Inter), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-s);
  color: var(--primary-d-3);
  text-decoration: none;
}

.eva-back-to-course:hover,
.eva-back-to-course:focus-visible {
  text-decoration: underline;
}

.eva-back-to-course__title {
  color: var(--text-body);
}

/* 6d — no fold control on a phone. */
@media (max-width: 639.98px) {
  html #eva-sidebar-toggle,
  html.eva-sidebar-collapsed .single__right > .syllabus-sidebar > #eva-sidebar-toggle {
    display: none;
  }

  /* Report 7 — and because the control is not there, the fold itself has no
     meaning at this width. The fold is remembered in `localStorage`, so a
     student who folded the drawer on a desktop and then opened the same lesson
     on a phone would otherwise get a 42px rail whose only control is hidden: a
     sidebar nobody can get back. So below 640px `html.eva-sidebar-collapsed` is
     ignored outright and the drawer lays out as it does unfolded — the phone's
     own single-column body (the capture's `repeat(1, minmax(0, 1fr))` at
     ≤991px) with the whole drawer visible. Above 640 every one of these rules
     is inert, so the fold and its remembered state are untouched there.

     What Report 4 set for the collapsed state, and what replaces it here: the
     two-column `minmax(0, 1fr) 42px` grid, the 42px-wide sidebar with its
     padding stripped to 0, and the rule that hides every child of the drawer
     but the toggle. The drawer's width comes back as `auto` (the column's own
     width), and its padding and overflow are the captured sticky-sidebar
     rule's — `.course__sidebar--sticky.brxe-block` is `display: block` with
     `padding-top: 0` and `overflow: hidden auto` inside `max-height: 70vh` at
     this width, so the box is `.card`'s `var(--space-m)` everywhere but the top.
     Its `display` needs no rule here: Report 4's `block` is already what the
     unfolded drawer computes. Every selector carries the same or higher
     specificity than the Report 4 rule it answers and comes later in the sheet,
     so the cascade — not `!important` — is what settles all of this.

     The children get their user-agent display back (`revert`), except the one
     the capture itself hides on a phone: `.course-syllabus-desktop` is
     `display: none` below 991px in the captured stylesheet, and that hiding is
     the phone layout's own, not the fold's, so it is excluded from the revert
     rather than undone by it. */
  html.eva-sidebar-collapsed .single__body:has(> .single__right) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html.eva-sidebar-collapsed .single__body > .single__left {
    grid-column: span 1;
  }

  html.eva-sidebar-collapsed .single__body > .single__right {
    grid-column: auto;
  }

  html.eva-sidebar-collapsed .single__right > .syllabus-sidebar#brxe-ttoacv {
    width: auto;
    min-width: auto;
    padding: 0 var(--space-m) var(--space-m);
    overflow: hidden auto;
  }

  html.eva-sidebar-collapsed .single__right > .syllabus-sidebar > :not(#eva-sidebar-toggle):not(.course-syllabus-desktop) {
    display: revert;
  }
}

/* Package descriptions (the whole TidyCal text): left-aligned, clamped to two
   lines, with a "Read more" button `/js/pkg-desc.js` reveals when clamped. */
.pricing-13__pricing-card-description.eva-pkg-desc.brxe-text-basic {
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.pricing-13__pricing-card-description.eva-pkg-desc.brxe-text-basic.is-open {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.eva-pkg-more {
  align-self: flex-start;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--primary-d-1, #8a6a1f);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.eva-pkg-more[hidden] {
  display: none;
}

.eva-pkg-more:focus-visible {
  outline: 3px solid var(--primary-d-1, #8a6a1f);
  outline-offset: 2px;
}

/* /learn-on-your-own/: the one quiet link to the live lessons, where the coaching cards were. */
.eva-livelink {
  padding: 32px 16px;
  text-align: center;
}

.eva-livelink .eva-livelink__inner {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
}

.eva-livelink .eva-livelink__text {
  margin: 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}

.eva-livelink__a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 600;
  color: var(--primary-d-1, #8a6a1f);
  text-decoration: underline;
}

.eva-livelink__a:focus-visible {
  outline: 3px solid var(--primary-d-1, #8a6a1f);
  outline-offset: 2px;
}

/* Report 8 (the public header outgrows the viewport at desktop widths):
   measured on the built site at 1280px before these rules, the header
   container's border box ended at 1253.72px but its right-hand control wrapper
   ended at 1324px — 44px outside a 1280px viewport — and the document scrolled
   sideways (scrollWidth 1324 against clientWidth 1280). Nothing yielded: the
   nav is `flex: 0 0 auto` with a nowrap toggle, and the wrapper was
   `flex-shrink: 0; max-width: fit-content`. The injected pill added a 282px
   nowrap box with a 170px text floor that only a *viewport* query at 1200px
   released. So the pill is now sized against the header itself: the header
   container is an inline-size query container and search-palette.css answers
   it with @container rules. The Login link and the Book Trial CTA are now
   separate direct children of that container, so the empty space is taken by
   the pill (`flex: 1 1 auto`) rather than by a group wrapper.

   `max-width: min(...)` keeps the 1440px design cap without letting it win
   over a narrower layout viewport. */
#brx-header .header-6-main__container {
  container-type: inline-size;
}

#brx-header .header-6-main__container.brxe-container {
  max-width: min(var(--max-screen-width, 1440px), 100%);
}

/* The captured `.header-7-bottom__right-wrapper` no longer wraps the two
   controls. The only element still carrying that class is the compatibility
   wrapper /js/header-auth.js puts around the signed-in account menu so the
   unchanged public-account-menu suite can still find its desktop panel. It
   holds one control, so it must stay at its own width and never absorb the
   free space the pill now takes. Measured on a signed-in header at 1600: the
   capture's `width: 100%` made this single-control wrapper 1440px wide, the
   menu's `margin-left: auto` pushed its avatar to x=2458, and the following
   "Book Trial" CTA ended at x=2630 — the document scrolled ~1030px sideways.
   `width: fit-content` is the missing reset: with it the wrapper is 40px, the
   CTA ends inside the viewport, and the header goes back to one row at every
   desktop width. */
#brx-header .header-6-main__container > .header-7-bottom__right-wrapper {
  flex: 0 0 auto;
  width: fit-content;
}

/* The reported stretch came from `min-inline-size: 84px` on the Login label.
   That declaration is not in this stylesheet — it lives in the captured
   `src/components/header-fragment.html` inline style, which comes later in
   document order and would win at equal specificity — so state the reset
   explicitly here with one extra type selector. Without it the Login text is
   forced to at least 84px wide. */
html #brx-header .header-6-main__btn-text { min-inline-size: 0; }

/* The captured `.offcanvas-header-6-main__btn.brxe-div { width: 100% }` would
   stretch the auth link once it is a direct flex child with room to grow. The
   override is scoped to the two auth hrefs inside the header container, so the
   offcanvas "Book Trial" CTA, a different element (`brxe-button`), keeps the
   full width the layout suite's rows 4-5 measure. For a signed-in visitor the
   two copies now diverge: the desktop link becomes the account menu below, and
   the drawer link keeps the captured full-width button sizing as "My Account"
   (rule below). This override therefore sizes the anonymous Login link, and
   the /my-account/ href stays for a cached page still showing the old swap. */
#brx-header .header-6-main__container a.brxe-jxxosr[href="/sign-in/"],
#brx-header .header-6-main__container a.brxe-jxxosr[href="/my-account/"] {
  width: fit-content;
  flex-shrink: 0;
  white-space: nowrap;
}

/* The signed-in drawer control is one plain link to this account's dashboard
   home, not a menu. /js/header-auth.js gives it the theme's
   `offcanvas-header-6-main__btn brxe-div` classes, so the captured
   `width: 100%` already applies; stating it here makes the intent explicit
   and keeps it even if that captured rule changes. `data-eva-account-home`
   scopes it to the drawer — the desktop account menu is never full width. */
#brxe-bfcgzx a.brxe-jxxosr[data-eva-account-home] {
  display: block;
  width: 100%;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Report 9 (the header's visible CTA wraps, and the auth link will not yield):
   measured on the built site before these rules, the visible booking CTA was
   `white-space: normal; flex-shrink: 1` and drifted from 167.53px at 1600 to
   163.38px at 1100 — it was giving width back to the flex line by letting its
   label wrap instead of letting the login and the pill give. The CTA is the
   one control that must never wrap, so it is pinned to its content width here:
   nowrap keeps the label on one line, flex-shrink 0 stops the row taking width
   from it, and min-width: max-content is the belt-and-braces equivalent if a
   captured rule later tries to shrink it again. Its inline padding was fluid
   in the capture (19.8px at 1440, 17.73px at 1100 — it tracks the header
   container, which Report 8 made a query container), so even a nowrap,
   non-shrinking button still lost 4.15px of width between 1600 and 1100.
   Pinning the padding to the wide-layout value keeps the border box constant.
   The off-canvas CTA is a different box (`.brxe-eptopo > a`, full width, rows
   4-5); width: 100% with border-box sizing is unaffected by an inline-padding
   value, so its full-width assertion is untouched.

   The pill is the element that yields: `flex: 1 1 auto` lets it stretch into
   free space and search-palette.css's @container rules let it give as the
   header tightens, collapsing to a 40px icon below 1100px. The Login link no
   longer yields — the owner reversed that trade — so it is pinned to its own
   content width by `flex-shrink: 0` and `white-space: nowrap` on the base
   `width: fit-content` rule above, and the 1340px container rule that lifted
   its label floor is gone. Row 14 measures the same Login width at every
   desktop width; row 11's fit-content assertion is unchanged. */
#brx-header .header-6-main__container a.brxe-tybwhf[href="/booking/"] {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
  padding-inline: 19.8px;
}

/* The mobile header hands its two desktop controls over to the off-canvas
   panel, which already carries its own Login and "Book Trial" CTA. Both rules
   are scoped to *direct children* of the header container: the drawer copies
   are nested inside #brxe-bfcgzx and are deliberately left alone. 991px is the
   theme's own mobile breakpoint (the one at which the drawer is shown), not a
   new one invented here. Rows 19-20 read the rendered box and computed display
   at 390, so a parked duplicate could not satisfy "hidden", and no CSS rule is
   inspected in place of layout. */
@media (max-width: 991px) {
  #brx-header .header-6-main__container > a.brxe-jxxosr[href="/sign-in/"],
  #brx-header .header-6-main__container > a.brxe-tybwhf[href="/booking/"] {
    display: none;
  }

  /* The anonymous off-canvas Login is a descendant of the header container, so
     the fit-content override above also sized it and defeated the captured
     `.offcanvas-header-6-main__btn.brxe-div { width: 100% }`. Two ids outrank
     that one-id override, restoring the captured full-width sizing for the
     drawer copy only; the desktop link above is hidden at this width. Row 21
     compares the link's border box with its parent's content box with the panel
     open. The signed-in drawer link keeps its own rule further up. */
  #brx-header #brxe-bfcgzx a.brxe-jxxosr[href="/sign-in/"] {
    display: block;
    width: 100%;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* The account menu on public pages -------------------------------------------
   app-shell.ts builds the same `adm-menu` markup for the two dashboards, and
   app-shell.css styles it there. Public pages and the lesson shell never load
   that sheet, so the identical markup is styled here instead, scoped to the
   copy /js/header-auth.js drops into this header. Nothing outside
   `.eva-acct-menu` is affected, and no admin stylesheet is pulled into the
   public site. Sizes are px: this theme sets the root font-size to 10px, so a
   rem here would be a fifth of what it reads as. */
#brx-header .eva-acct-menu {
  position: relative;
  margin-left: auto;
  width: fit-content;
  color: #22201d;
}

#brx-header .eva-acct-menu .adm-menu__trigger {
  display: flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
  border-radius: 50%;
}

#brx-header .eva-acct-menu .adm-menu__trigger::-webkit-details-marker { display: none; }
#brx-header .eva-acct-menu .adm-menu__trigger::marker { content: ''; }

#brx-header .eva-acct-menu .adm-menu__trigger:focus-visible {
  outline: 3px solid var(--primary-d-1, #8a6a1f);
  outline-offset: 2px;
}

#brx-header .eva-acct-menu .adm-avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-d-1, #8a6a1f);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

#brx-header .eva-acct-menu .adm-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 244px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e7e2d6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(40, 30, 10, 0.16);
}

/* A closed <details> hides its panel. State it explicitly so no theme rule
   that sets `display` on a div can leave it visible. */
#brx-header .eva-acct-menu:not([open]) .adm-menu__panel { display: none; }

#brx-header .eva-acct-menu .adm-menu__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #e7e2d6;
  font-size: 12px;
  color: #6f675c;
  overflow-wrap: anywhere;
}

#brx-header .eva-acct-menu .adm-menu__who strong {
  color: #22201d;
  font-size: 14px;
  font-weight: 600;
}

#brx-header .eva-acct-menu .adm-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #22201d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

#brx-header .eva-acct-menu .adm-menu__item:hover,
#brx-header .eva-acct-menu .adm-menu__item:focus-visible {
  background: #f6f3ec;
  color: #22201d;
}

#brx-header .eva-acct-menu .adm-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

#brx-header .eva-acct-menu .adm-menu__item--switch {
  border-top: 1px solid #e7e2d6;
  border-radius: 0 0 6px 6px;
}

#brx-header .eva-acct-menu .adm-menu__form {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #e7e2d6;
}

/* Report 10 (the shared header: "Book Trial" CTA, a logo that yields, and never
   more than one row).

   The CTA label itself is changed in the header fragment, not here — it is
   content, not decoration. This sheet only carries the layout that lets the
   shorter label keep the header on one line.

   One row is a hard requirement now, so the flex line is not allowed to wrap.
   With the CTA pinned to its content width (Report 9), the auth link and the
   pill allowed to yield (Reports 8-9), and the logo allowed to shrink below,
   the row has somewhere to give; `nowrap` makes a wrap impossible rather than
   merely unlikely. Row 17 of tests/header_layout.mjs measures the header's
   rendered height at 1600/1440/1280/1200/1100/1024 against a single-line
   budget built from the visible flex children (the CTA and Login among them),
   so a parked off-canvas copy cannot make it pass.

   Logo approach: the wide wordmark (`.eva-logo-mark`, with its srcset) is the
   only logo image. The earlier two-image swap to a local favicon below 1140px
   of header width made the header thicker, so it is gone. The mark shrinks
   with the header through `flex: 0 1 auto; min-width: 80px; max-width: 100%;
   height: auto` (the first and last already applied in Report 1's rule above)
   and never drops below its 80px floor. Row 16 of tests/header_layout.mjs
   checks that no favicon image is present and that the mark is rendered at
   every width. */
#brx-header .header-6-main__container {
  flex-wrap: nowrap;
}
