/* Accasio — the header bar and its mega menus.

   Four jobs:
     1. the bar is centred in the header; the waffle sits beside the avatar
     2. hover and the active page are marked with an underline, not a pill
     3. the waffle popup is a grouped mega menu rather than a list
     4. the five toolbar icons live in that mega menu, not in the header

   Everything is scoped under .bx-artificer or the menu's own classes so none
   of it can reach Studio, which shares the stylesheet pipeline but not the
   header.

   !important is on nearly every layout rule here, and it has to be: Artificer
   builds Tailwind with `important` turned on, so `justify-start` on the
   element arrives as `justify-content: flex-start !important`. Specificity
   does not enter into it — an ordinary rule of any weight loses to an
   important one. The alternative is editing vendor markup, which an upgrade
   would overwrite. */

/* --- 1. centred bar, waffle beside the avatar -------------------------- */

/* CENTRED IN THE HEADER, not in what is left of it.

   The header is two flex children: a group holding the logo and the nav, and
   the member toolbar on the right. Centring the nav inside that group would
   centre it between the logo and the toolbar, which on this site is about
   80px right of true centre — the logo is wide and the toolbar, once the five
   icons move into the waffle, is barely wider than an avatar.

   So the nav is taken out of the flow and centred on the header itself. That
   needs the group to stop being the containing block, which is what the
   `position: static` is for; the search box inside it is a static flex child,
   so nothing else in the group depends on that. */
.bx-artificer #bx-toolbar-content {
  position: relative !important;
}
.bx-artificer .bx-toolbar-items-group {
  position: static !important;
  justify-content: flex-start !important;
}
.bx-artificer .bx-toolbar-items-group > .bx-toolbar-item.bx-ti-menu {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  flex: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;

  /* A ceiling, so a long bar slides under the logo rather than over it. The
     row itself does not wrap: UNA's own overflow menu takes the rest. */
  max-width: calc(100% - 32rem) !important;
}
.bx-artificer .bx-menu-main.bx-menu-more-auto {
  justify-content: center !important;
}

/* The waffle, once JavaScript has moved it next to the avatar. It arrives as
   a bar item and has to read as a toolbar button: same circle, same size,
   same hover as the icons beside it. */
.bx-artificer .bx-menu-toolbar > .acc-waffle-moved {
  display: inline-flex !important;
  position: relative;
  align-items: center;
  width: auto !important;
  margin: 0 !important;
  list-style: none;
}
.bx-artificer .bx-menu-toolbar > .acc-waffle-moved > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem !important;
  height: 2.75rem !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  background: var(--ac-gray-100, #f3f4f6) !important;
  color: var(--ac-gray-600, #4b5563) !important;
}
.bx-artificer .bx-menu-toolbar > .acc-waffle-moved > a:hover {
  background: var(--ac-gray-200, #e5e7eb) !important;
  color: var(--ac-gray-800, #1f2937) !important;
}
.bx-artificer .bx-menu-toolbar > .acc-waffle-moved > a::after {
  content: none !important;
}

/* --- 1b. the edge widget strip ----------------------------------------- */

/* The toolbar icons live on a rail against the RIGHT edge of the window.

   Right rather than left, by the founder's decision on November 1, and it
   is the default for every page. The left edge is where a page begins:
   English reads from it, every heading and every first word starts there,
   and a column of floating controls in front of that is in the way of
   the one line of the page the eye always goes to first. The right edge
   is where a scrollbar and a scroll thumb already live, which is to say
   where people already expect furniture rather than content.

   Fixed, and vertically centred rather than pinned to the top: the top of
   the viewport is where the header already is, and a second row of controls
   immediately under it reads as part of the header while behaving nothing
   like it.

   NOTHING ELSE LIVES AT THIS HEIGHT ON THIS EDGE, which was checked
   rather than assumed: the feedback pill is bottom-right, the flash
   slide-in is bottom-left for that very reason, and the bar and sheet
   formats run across the bottom. A rail centred at 50% clears all four.

   The strip is a LIST and is meant to grow. Nothing here is written per
   icon — adding a sixth tool is one more element, not a new rule. */
.acc-strip {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;

  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 5px;
  margin: 0;

  background: var(--ac-white, #fff);
  border: 1px solid var(--ac-gray-200, #e5e7eb);

  /* Open towards the window edge it is against, so it reads as attached
     to the window rather than floating near it. */
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1);
  list-style: none;
}

/* Each tool, as a square target.

   An adopted item arrives wearing the toolbar's own round grey pill at a
   fixed size. Tailwind is built here with `important` on, so `bg-gray-100`
   and `rounded-full` arrive as important declarations and resetting them
   needs important too — specificity alone does not beat an important
   declaration. */
.acc-strip > .acc-strip-item {
  display: block !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 8px !important;
  width: auto !important;
}

.acc-strip > .acc-strip-item > a {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  text-decoration: none;
  color: var(--ac-gray-700, #374151);
}

.acc-strip > .acc-strip-item > a:hover {
  background: var(--ac-gray-100, #f3f4f6) !important;
}

/* The unread badge keeps working because the node itself was moved, handlers
   and all. It is laid out over the glyph rather than beside it, which is
   what the toolbar did and what the corner of an icon is for. */
.acc-strip > .acc-strip-item > a > .bx-menu-item-addon,
.acc-strip > .acc-strip-item > a > .bx-menu-toolbar-item-addon,
.acc-strip > .acc-strip-item > a > .bx-menu-item-counter {
  position: absolute;
  top: 1px;
  right: 1px;
  margin: 0;
}

/* An icon-only rail is unusable without names. The title the item already
   carries is drawn as a label that slides out on hover and on keyboard
   focus, so the rail stays narrow and still says what everything is.

   IT OPENS INWARDS, towards the page. On the right edge a label placed
   past the icon is a label off the side of the window, which is the one
   way to make an icon-only rail worse than no labels at all. */
.acc-strip > .acc-strip-item > a::after {
  content: attr(title);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);

  padding: 4px 9px;
  border-radius: 6px;
  background: var(--ac-gray-900, #111827);
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.acc-strip > .acc-strip-item > a:hover::after,
.acc-strip > .acc-strip-item > a:focus-visible::after {
  opacity: 1;
}

/* The page makes room for the rail rather than sliding under it.

   A centred page has margins wide enough to hide the overlap and a
   full-bleed one does not — the profile page is full-bleed, and the rail
   sat on top of its first column.

   The padding goes on the CONTENT, not on <body>. On body it also moved
   the header, which is `position: fixed` and therefore laid out against
   the padding box: the whole bar shifted right and left a white notch in
   the corner where the logo had been. The content element is the only
   thing that needs to step aside. */
@media (min-width: 1280px) {
  body.acc-has-strip #bx-content-wrapper {
    /* BOTH sides, not just the left.

       Padding only on the left moves the page's centre line half the
       rail's width to the right, and a full-bleed bar inside it — the
       profile page's Profile / Info / Friends row — by the whole of it.
       On the activity page that reads as a slight offset; on the profile
       page the founder could see the sub-menu sitting right of centre
       while the header above it stayed put.

       A symmetric gutter leaves every centred thing exactly where it
       was. The cost is 3.4rem on the right that nothing occupies, and
       this rule only applies from 1280px up, where that is the cheapest
       thing on the page.

       AND IT GOES ON THE CONTENT WRAPPER, not on main. On main it also
       inset the page's sub-menu — the white Group / Info / Members bar,
       which is drawn edge to edge on purpose — and left a notch of page
       background at each end of it. #bx-content-wrapper holds everything
       below that bar and nothing above it, so the bar keeps the full
       width of the window and only the content steps aside for the
       rail. */
    padding-left: 3.4rem;
    padding-right: 3.4rem;
  }
}

/* Out of the way of the content on anything narrower than a laptop. Below
   `lg` the header bar collapses to the hamburger and these icons are reachable
   there, so the rail is hidden rather than overlapping the page. */
@media (max-width: 1279px) {
  .acc-strip {
    display: none;
  }
}

/* --- 2. underline, not a pill ------------------------------------------ */

/* Scoped to the bar list and explicitly NOT to the popup: inside the waffle
   the items are launcher tiles, where an underline would be wrong and the
   hover background is what reads as "this row". */
.bx-artificer .bx-menu-main.bx-menu-more-auto > .bx-menu-item > a {
  position: relative;
  border-radius: 0 !important;
  background: transparent !important;
}

/* A transparent rule in the resting state, so the item does not change height
   when it gains one — the single most common way an underlined nav ends up
   nudging everything beside it on hover. */
.bx-artificer .bx-menu-main.bx-menu-more-auto > .bx-menu-item > a::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 1px;
  background: transparent;
  transition: background-color 0.12s ease-in-out;
}
.bx-artificer .bx-menu-main.bx-menu-more-auto > .bx-menu-item > a:hover::after {
  background: var(--ac-gray-400, #9ca3af);
}
.bx-artificer .bx-menu-main.bx-menu-more-auto > .bx-menu-tab-active > a::after {
  background: var(--ac-blue-600, #2563eb);
}
.bx-artificer .bx-menu-main.bx-menu-more-auto > .bx-menu-tab-active > a {
  color: var(--ac-blue-600, #2563eb);
}

/* Keyboard users get the same mark, plus the focus ring the browser draws. */
.bx-artificer .bx-menu-main.bx-menu-more-auto > .bx-menu-item > a:focus-visible::after {
  background: var(--ac-blue-600, #2563eb);
}

/* --- 3. the mega menu -------------------------------------------------- */

/* Wider than the plain waffle, because it is now columns of grouped items
   rather than one list. Capped against the viewport so it cannot overflow a
   narrow window.

   The wrapper has to be widened too, and anchored to the right edge instead
   of to the JS-computed left: UNA positions it for a 14rem menu, so simply
   making it wide would push a 54rem popup off the side of the window. The
   content box also has `overflow: hidden`, which clips the popup no matter
   how wide the popup itself is — that is why the ancestors are listed here
   rather than just the popup. */
.bx-popup-wrapper.acc-mega-wrap {
  /* Wide enough for FOUR groups in one row.
     At 54rem the grid fitted three and the fourth dropped onto a row of
     its own under the first column, which is what the founder meant by
     the items not being evenly positioned. */
  width: min(96vw, 64rem) !important;
  max-width: none !important;
  left: auto !important;
  right: 0.75rem !important;
}
.bx-popup-wrapper.acc-mega-wrap .bx-popup-gap,
.bx-popup-wrapper.acc-mega-wrap .bx-popup,
.bx-popup-wrapper.acc-mega-wrap .bx-popup-content {
  width: auto !important;
  max-width: none !important;
}
.bx-popup-wrapper.acc-mega-wrap .bx-popup-content {
  overflow: visible !important;
}

.bx-menu-item-more-popup.acc-mega {
  width: auto !important;
  max-width: none !important;
  padding: 14px 12px 16px;
}

.acc-mega .bx-menu-submenu-more-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 6px 20px;
  align-items: start;
}

/* The group is an <li> so it is a legal child of the <ul> it sits in, but it
   behaves as a block: its own heading, then its items beneath. */
.acc-mega .acc-mega-group {
  display: block;
  width: auto;
  padding: 2px 0 8px;
  list-style: none;
}
/* THE HEADING BLOCK, AND WHY IT HAS A FLOOR.

   The heading and its description used to be two siblings of the group.
   A group whose description wrapped onto a second line therefore pushed
   its own first item down past the first items of every other column,
   and a group with no description at all pulled its first item up above
   them — which is exactly what made the panel look scattered.

   They are one block now, and the block has a minimum height that fits a
   heading plus TWO lines of description, measured rather than guessed:
   heading 0.68rem at 1.2, description 0.76rem at 1.35 twice, and the
   8px of padding between and under them. A description longer than two
   lines still grows the block — it is a floor, not a cap — and where
   subgrid is available the rule below makes even that case line up. */
.acc-mega .acc-mega-group-head {
  min-height: 3.45rem;
}
.acc-mega .acc-mega-group-h {
  padding: 0 10px 2px;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.acc-mega .acc-mega-group-blurb {
  padding: 0 10px 6px;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.76rem;
  line-height: 1.35;
}
.acc-mega .acc-mega-group-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* EVERY ROW LEVEL WITH THE ROW BESIDE IT.

   A minimum height on the heading block lines up the FIRST item in each
   column, and that is most of what was wrong. It does nothing for the
   second and third: one column's first item carries a one-line
   description and the next column's carries three, so the two columns
   drift apart as they go down, and `min-height` on a row cannot fix it
   because the rows that drift are the ones that are ALREADY taller than
   any floor.

   The only thing that does fix it is for the columns to share their
   rows, which is what subgrid is. The panel is a grid of
   `--acc-mega-rows` rows — one heading plus the longest column's items,
   counted by mega-menu.js as it builds them. Each group spans all of
   them and takes its rows from the panel; each group's item list takes
   rows two onward. Row three of one column is then literally the same
   grid row as row three of the next.

   Behind `@supports`, and the fallback is not a degradation to
   something broken: it is the block layout this panel has always had,
   with the heading floor above still doing its work. A column that is
   shorter than the rest simply leaves its last rows empty. */
@supports (grid-template-rows: subgrid) {
  .acc-mega .bx-menu-submenu-more-auto {
    grid-template-rows: repeat(var(--acc-mega-rows, 1), auto);
    align-items: stretch;
  }

  .acc-mega .acc-mega-group {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span var(--acc-mega-rows, 1);
    align-content: start;
  }

  .acc-mega .acc-mega-group-items {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 2 / -1;
    align-content: start;
  }

  /* The link fills its row and centres in it, so a one-line row and a
     three-line row beside it have their text on the same baseline
     rather than both floating at the top of different heights. */
  .acc-mega .acc-mega-group-items > li {
    display: grid;
  }
}

/* An adopted toolbar icon is a <li> from a different menu with different
   classes, so it is given the same tile shape rather than inheriting one. */
.acc-mega .acc-mega-group-items > li {
  width: auto;
  display: block;
}
.acc-mega .acc-mega-group-items > li > a {
  display: grid !important;
  grid-template-columns: 2.25rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 7px 10px !important;
  border-radius: 6px;
  line-height: 1.25;
  text-decoration: none;
}
.acc-mega .acc-mega-group-items > li > a:hover {
  background: var(--ac-gray-100, #f3f4f6);
}

/* An adopted item arrives wearing the toolbar's own button styling — a round
   grey pill at a fixed square size — which makes it the one tile in the mega
   menu that looks like a button. Reset to the same shape as the rest.

   The pill is on the <li>, not on the <a>, and Tailwind is built with
   `important` on, so `bg-gray-100` and `rounded-full` arrive as important
   declarations. Resetting them needs important too; specificity alone does
   not beat an important declaration. */
.acc-mega .acc-mega-adopted {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 6px !important;
}
.acc-mega .acc-mega-adopted > a {
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}
.acc-mega .acc-mega-adopted > a:hover {
  background: var(--ac-gray-100, #f3f4f6) !important;
}

/* The toolbar icons keep their own glyph rather than being given initials:
   the bell and the speech bubble are recognised faster than "NO" and "ME",
   and the unread counter they carry is drawn on that glyph. */
.acc-mega .acc-mega-adopted > a > .bx-menu-item-icon,
.acc-mega .acc-mega-adopted > a > i {
  display: flex !important;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--ac-gray-100, #f3f4f6);
}

/* An adopted item has no title element in the bar — it is an icon only — so
   the accessible name it already carries is drawn as the tile's title. */
.acc-mega .acc-mega-adopted > a::after {
  content: attr(title);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 600;
  color: var(--ac-gray-900, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Its unread badge must stay on top of the glyph rather than being laid out
   as a grid child, which would push the title sideways. */
.acc-mega .acc-mega-adopted > a {
  position: relative;
}
.acc-mega .acc-mega-adopted > a > .bx-menu-item-addon,
.acc-mega .acc-mega-adopted > a > .bx-menu-toolbar-item-addon {
  position: absolute;
  top: 4px;
  left: 1.6rem;
  z-index: 2;
}

@media (max-width: 720px) {
  .bx-menu-item-more-popup.acc-mega {
    width: 94vw !important;
  }
  .acc-mega .bx-menu-submenu-more-auto {
    grid-template-columns: 1fr;
  }

  /* On a phone the bar is already collapsed to the hamburger, so there is
     nothing to centre — and an absolutely positioned nav would sit on top of
     the logo. Put it back in the flow. */
  .bx-artificer .bx-toolbar-items-group > .bx-toolbar-item.bx-ti-menu {
    position: static !important;
    transform: none !important;
    max-width: none !important;
  }
}

/* The waffle belongs to the desktop bar, and the bar is `hidden lg:block` —
   so the waffle goes at 1024px, where the hamburger takes over, not at the
   phone breakpoint above. Below this the five icons are shown in the toolbar
   again (see 1b) and the sliding menu carries the rest. */
@media (max-width: 1023px) {
  .bx-artificer .bx-menu-toolbar > .acc-waffle-moved {
    display: none !important;
  }
}

/* --- 4. the Resources mega menu ---------------------------------------- */

/* Rendered by the server into the footer, hidden with the `hidden`
   attribute, revealed and positioned by the script. `position: fixed` so it
   escapes the header's stacking context and its overflow clipping, which is
   the same pair of problems the waffle popup had to be dug out of above. */
.acc-res {
  position: fixed;
  z-index: 10001;
  width: min(94vw, 52rem);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: 18px 20px 20px;
  border: 1px solid var(--ac-gray-200, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 31, 61, 0.14);
}
.acc-res[hidden] {
  display: none;
}
/* The panel takes focus when it opens, so Tab goes into the menu somebody
   just asked for rather than on to the next item in the bar. That focus is
   given by script to a container, never reached by tabbing, and the panel
   appearing under its trigger is already the whole visible answer — a ring
   drawn around the entire menu would say nothing the menu does not. The
   links inside keep their own focus rings, which are the ones that matter. */
.acc-res:focus {
  outline: none;
}
.acc-res-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 6px 22px;
  align-items: start;
}
.acc-res-group {
  padding: 0 0 6px;
}
.acc-res-h {
  margin: 0 0 2px;
  padding: 0 10px;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.acc-res-blurb {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.76rem;
  line-height: 1.35;
}
.acc-res-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-res-list > li > a {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  line-height: 1.3;
  text-decoration: none;
}
.acc-res-list > li > a:hover {
  background: var(--ac-gray-100, #f3f4f6);
  text-decoration: none;
}

/* The glyph spans both rows so the title and its description sit beside it
   as one block, exactly as the waffle tiles do. */
.acc-res-i {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--ac-gray-100, #f3f4f6);
  color: var(--ac-blue-600, #2563eb);
}
.acc-res-ini {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.acc-res-t {
  grid-column: 2;
  font-weight: 600;
  color: var(--ac-gray-900, #111827);
}
.acc-res-d {
  grid-column: 2;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.78rem;
}

/* An item with no line under it centres its title against the glyph rather
   than sitting at the top of a two-row box. */
.acc-res-list > li > a > .acc-res-t:last-child {
  grid-row: 1 / span 2;
  align-self: center;
}

/* THE HEADING BLOCK HAS A FLOOR, in all three panels.

   A group whose line wraps onto two rows pushed its first item below the
   first items of the columns beside it, so the columns started at three
   different heights. The floor fits the label and two lines of description
   at the sizes the theme sets (0.6875rem label, 0.75rem line at 1.35); a
   longer line still grows the block. */
@media (min-width: 721px) {
  .acc-res-head {
    min-height: 3.7rem;
  }
}

/* The wordmark across the top of the waffle, on the hairline the columns
   use, so the brand reads as part of the panel rather than a fourth thing. */
.acc-res-brand {
  display: flex;
  align-items: center;
  padding: 6px 8px 10px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--ac-gray-200, #e5e7eb);
  text-decoration: none;
}
.acc-res-brand img {
  display: block;
  max-width: 13rem;
  max-height: 2.4rem;
  width: auto;
  height: auto;
}

/* While the panel is open the bar item wears the same underline an active
   page does, so it is obvious which button opened it. */
.bx-artificer .bx-menu-main .acc-res-on > a::after {
  background: var(--ac-blue-600, #2563eb) !important;
}

@media (max-width: 720px) {
  .acc-res-inner {
    grid-template-columns: 1fr;
  }
}

/* --- 5. the brand tile in the waffle ----------------------------------- */

/* The grid's first column begins with a heading, so there is an empty cell
   above it on every open. The logo goes there.

   Prepended to the list by the script rather than positioned, so it takes
   the first cell at whatever column count the grid has resolved to — pinning
   it to coordinates would be right at one window width and wrong at the
   rest. */
/* The far-left corner, on its own row.

   It took the first grid CELL before, which put it above one column and
   left the other columns starting higher than it — the panel read as
   three lists and a logo rather than one panel. Spanning the whole first
   row puts it in the corner the founder pointed at AND starts every group
   on the same line underneath, which is the other half of what was asked
   for. */
.acc-mega .acc-mega-brand {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  padding: 2px 10px 12px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--ac-gray-100, #f3f4f6);
  min-height: 2.6rem;

  list-style: none;
  text-decoration: none;
}

/* Sized for a WORDMARK, not a square mark: the art here is the name set
   wide, so the limit that matters is the height and the width is given
   enough room not to be the thing that clips it. */
.acc-mega .acc-mega-brand img {
  display: block;
  max-width: 13rem;
  max-height: 2.6rem;
  width: auto;
  height: auto;
}

/* No art set. The site's name reads better than an empty box. */
.acc-mega .acc-mega-brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ac-gray-900, #111827);
}

/* --- 6. recommended people, two to a row ------------------------------- */

/* The founder asked for half-size cards two across, so six are on screen at
   once instead of three stacked.

   Matched on the block's own wrapper classes rather than its numeric block
   id: the id changes if the block is ever rebuilt, and a stylesheet keyed to
   a database row is a stylesheet that silently stops applying. */
.bx-artificer .bx-recommendation .bx-base-puw-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.bx-artificer .bx-recommendation .bx-base-pofile-unit-with-cover {
  padding: 4px !important;
  box-sizing: border-box;
}

/* Half the cover height. The gradient band behind it is absolutely
   positioned at the same height and has to come down with it, or it draws
   over the name. */
.bx-artificer .bx-recommendation .bx-base-pofile-unit-cover,
.bx-artificer .bx-recommendation .bx-base-pofile-unit-cnt > .absolute {
  height: 5rem !important;
}

.bx-artificer .bx-recommendation .bx-base-pofile-unit-title {
  padding: 8px 6px 4px !important;
  font-size: 0.82rem;
  line-height: 1.2;
}

.bx-artificer .bx-recommendation .bx-base-general-unit-meta {
  padding: 0 6px 8px !important;
  font-size: 0.75rem;
}

/* The avatar is sized by a utility class on the element itself, so it needs
   important to come down with the card. */
.bx-artificer .bx-recommendation .bx-base-pofile-unit-thumb,
.bx-artificer .bx-recommendation .bx-def-ava-size {
  width: 2.75rem !important;
  height: 2.75rem !important;
  font-size: 1rem !important;
}

/* The card's meta row carries the member counter, and each face in it is a
   bx-base-pofile-unit-thumb too — so the rule above was enlarging those as
   well. It won only the height: the counter's own width:1.5rem still applied,
   so a 30x30 avatar was laid out in a 24x44 box and drawn as a tall oval.
   That is the squash in the "Groups you might like" card. Give the counter
   faces their own size back; more specific and later, so it comes after. */
.bx-artificer .bx-recommendation .sys-action-counter-profile .bx-base-pofile-unit-thumb,
.bx-artificer .bx-recommendation .sys-action-counter-profile .bx-def-icon-size {
  width: 1.5rem !important;
  height: 1.5rem !important;
  font-size: 0.7rem !important;
}

/* A profile thumb is always a fixed square box, and nothing tells the image
   what to do when the source is not square — the initial object-fit of `fill`
   stretches it to the corners. Crop instead, from the middle. This only bites
   where the box and the image already disagree, so it leaves every thumb that
   looked right alone, and it stops the next mismatched box from showing as a
   stretched face rather than a cropped one. */
.bx-artificer img.bx-base-pofile-unit-thumb {
  object-fit: cover !important;
  object-position: center !important;
}

/* One column again where two would be 90px wide. */
@media (max-width: 479px) {
  .bx-artificer .bx-recommendation .bx-base-puw-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The pager under them: in line with the heading, and half the size.
 *
 * IT HUNG OUT OF THE CARD, and only when the block had nothing to show,
 * which is why it looks like a mystery until it is measured. The core
 * template wraps both the list and the pager in one element, and that
 * element is a wrapping FLEX ROW. The list carries `-m-2`, a -8px margin
 * on every side, to cancel the padding each card adds — so with no cards
 * its outer width is 0 + -8 + -8 = MINUS 16px. The pager is the next
 * item on the same line, and a line that has already gone 16px backwards
 * starts it 16px outside the card's padding. Measured: heading at 1060,
 * pager at 1044, the container's own edge.
 *
 * Giving the pager `flex-basis: 100%` is not enough on its own and was
 * tried first: an item of negative width leaves MORE than the full line
 * free, so a 100% item still fits beside it. The list has to be made to
 * fill the line, and then the pager wraps below it — which is exactly
 * what already happens whenever there are cards, so the normal case is
 * not being changed, only made unconditional.
 */
.bx-artificer .bx-recommendation > .bx-recommendation-content {
  flex: 1 1 100%;
  min-width: 100%;
}

.bx-artificer .bx-recommendation > .bx-recommendation-paginate {
  flex: 0 0 100%;
  margin-left: 0;
}

/* Half the size, which the founder asked for: 54x44 became 28x22.
 *
 * The height is set rather than left to the padding because the core
 * gives these a 44px minimum — the comfortable-target figure — and a
 * minimum is not something smaller padding can get under.
 *
 * !important throughout for the usual reason: Artificer is Tailwind
 * built with `important: true`, so the button's own size, padding and
 * font all arrive as important declarations.
 */
.bx-artificer .bx-recommendation .bx-paginate-btn {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 22px !important;
  height: 22px !important;
  padding: 0 3px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.bx-artificer .bx-recommendation .bx-paginate-btn .sys-icon {
  font-size: 10px !important;
  line-height: 1 !important;
}

/* --- 7. the two ways into a rail section ------------------------------- */

/* "My groups" and "All groups", under the block's own heading. Drawn as a
   pair of small pills so they read as one control with two states rather
   than as two links that happen to be adjacent. */
.acc-rail-ways {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
}

.acc-rail-way {
  flex: 1 1 0;
  padding: 4px 8px;
  border: 1px solid var(--ac-gray-200, #e5e7eb);
  border-radius: 6px;
  background: transparent;

  font-size: 0.78rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--ac-gray-600, #4b5563);
  white-space: nowrap;
}

.acc-rail-way:hover {
  background: var(--ac-gray-100, #f3f4f6);
  text-decoration: none;
}

/* The one that matches what is listed underneath. */
.acc-rail-way-on {
  background: var(--ac-gray-100, #f3f4f6);
  border-color: var(--ac-gray-300, #d1d5db);
  color: var(--ac-gray-900, #111827);
  font-weight: 600;
}

/* Six on screen, not three.

   Halving the cover was not enough on its own: each card also carries two
   full-width action buttons, and those were setting the height. They are
   the same controls at a size that matches the card they are on. */
.bx-artificer .bx-recommendation .bx-base-pofile-unit-info button,
.bx-artificer .bx-recommendation .bx-base-pofile-unit-info a[class*='bx-btn'],
.bx-artificer .bx-recommendation .bx-base-general-unit-meta button {
  padding: 3px 8px !important;
  font-size: 0.74rem !important;
  line-height: 1.3 !important;
  min-height: 0 !important;
}

.bx-artificer .bx-recommendation .bx-base-general-unit-meta {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* The gradient band is a fixed height set by a utility class on the element
   itself, so it needs important to come down with the cover above it. */
.bx-artificer .bx-recommendation .h-40 {
  height: 5rem !important;
}

/* --- 8. the waffle, dressed like the Resources menu -------------------- */

/* The founder asked for the waffle to look as clean as the Resources panel
   beside it. It already has the same two-row grid per item; what it did not
   have was the glyph treatment that makes the Resources panel read at a
   glance — a blue icon in a soft square, the same size on every row.

   Scoped to the waffle popup so the toolbar and the bar are untouched. */
.acc-mega .acc-mega-group-items > li > a > .bx-menu-item-icon,
.acc-mega .acc-mega-group-items > li > a > i,
.acc-mega .acc-mega-group-items > li > a > .sys-icon {
  grid-column: 1;
  grid-row: 1 / span 2;

  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 2.25rem !important;
  height: 2.25rem !important;
  margin: 0 !important;

  border-radius: 8px;
  background: var(--ac-gray-100, #f3f4f6);
  color: var(--ac-blue-600, #2563eb) !important;
  font-size: 1.05rem;
}

/* The title and the line under it, matched to the Resources panel so the
   two menus are visibly the same component with different contents. */
.acc-mega .acc-mega-group-items > li > a > .bx-menu-item-title,
.acc-mega
  .acc-mega-group-items
  > li
  > a
  > span:not(.bx-menu-item-addon):not(.bx-menu-toolbar-item-addon) {
  grid-column: 2;
  font-weight: 600;
  color: var(--ac-gray-900, #111827);
}

.acc-mega .acc-mega-group-items > li > a > .acc-mega-blurb {
  grid-column: 2;
  font-weight: 400;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Every row the same height whether or not it has a description, so the
   three columns line up with each other instead of drifting apart as they
   go down. */
.acc-mega .acc-mega-group-items > li > a {
  min-height: 3rem;
  align-content: center;
}

/* Hovering a row tints the glyph as well, so the whole row reads as one
   target rather than an icon beside a link. */
.acc-mega .acc-mega-group-items > li > a:hover > .bx-menu-item-icon,
.acc-mega .acc-mega-group-items > li > a:hover > i,
.acc-mega .acc-mega-group-items > li > a:hover > .sys-icon {
  background: var(--ac-blue-50, #eff6ff);
}

/* The groups start on the same line and keep the same gutter as Resources.

   The column minimum is 12.5rem rather than 15: at 15 the panel fitted
   three columns and the fourth group dropped onto a row of its own under
   the first, which is what the founder meant by items not being evenly
   positioned. Four groups, four columns, one row. */
.acc-mega .bx-menu-submenu-more-auto {
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 6px 20px;
}

/* --- 9. the search sheet ----------------------------------------------- */

/* The header's own search box opens inside the bar, 200px wide, UNDER the
   waffle and the avatar. A sheet has the whole width of the window for
   results and nothing to collide with, because it is fixed to the viewport
   rather than squeezed into a toolbar. */
.acc-sheet {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10050;

  background: var(--ac-white, #fff);
  border-bottom: 1px solid var(--ac-gray-200, #e5e7eb);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

/* `hidden` is the attribute, not a class: a stylesheet that fails to load
   leaves the sheet collapsed rather than dumping a search form over the
   top of the page. */
.acc-sheet[hidden] {
  display: none;
}

/* It comes DOWN, which is the gesture the founder asked for. Skipped
   entirely for anybody who has asked for less motion. */
.acc-sheet-in {
  max-width: 48rem;
  margin: 0 auto;
  padding: 18px 16px 20px;
  animation: acc-sheet-down 0.16s ease-out;
}

@keyframes acc-sheet-down {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-sheet-in {
    animation: none;
  }
}

/* A visible label, not a placeholder standing in for one. A placeholder
   disappears the moment somebody types, which is exactly when a screen
   reader user needs it. */
.acc-sheet-lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ac-gray-500, #6b7280);
}

/* Specificity, not just !important.

   Among important declarations the more specific selector still wins, and
   Artificer's own rules reach these nodes through a longer chain. A bare
   `.acc-sheet-row button` lost, and the two buttons stacked full width
   under the field instead of sitting beside it. */
/* flex-direction, stated and important.

   This was the actual bug, and it took a computed-style read to find: the
   row WAS display:flex, but something in Artificer sets flex-direction to
   column on it, so the field and the two buttons were stacking. Every
   width fix before this one was treating the symptom — the buttons were
   full width because they were flex items in a column, not because
   anything was setting their width. */
.acc-sheet .acc-sheet-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  align-items: stretch;
}

.acc-sheet .acc-sheet-row > input[type='search'] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--ac-gray-300, #d1d5db);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
}

.acc-sheet .acc-sheet-row > input[type='search']:focus {
  outline: 2px solid var(--ac-blue-600, #2563eb);
  outline-offset: 1px;
}

/* flex: none and width: auto, both important.

   Artificer's Tailwind base gives a button `display: block; width: 100%`
   as important declarations, so without these the two buttons stack under
   the field at full width instead of sitting beside it. Specificity does
   not beat an important declaration. */
.acc-sheet .acc-sheet-row > button {
  flex: none !important;
  width: auto !important;
  display: inline-block !important;
  padding: 10px 16px !important;
  border: 1px solid var(--ac-blue-700, #1d4ed8) !important;
  border-radius: 10px !important;
  background: var(--ac-blue-700, #1d4ed8) !important;
  color: #fff !important;
  font: inherit !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.acc-sheet .acc-sheet-row > button.acc-sheet-x {
  background: transparent !important;
  border-color: var(--ac-gray-300, #d1d5db) !important;
  color: var(--ac-gray-600, #4b5563) !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
  padding: 10px 14px !important;
}

.acc-sheet-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--ac-gray-500, #6b7280);
}

.acc-sheet-out {
  margin-top: 14px;
  max-height: min(60vh, 28rem);
  overflow-y: auto;
}

.acc-sheet-out ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.acc-sheet-hit {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ac-gray-900, #111827);
}

.acc-sheet-hit:hover,
.acc-sheet-hit:focus-visible {
  background: var(--ac-gray-100, #f3f4f6);
  text-decoration: none;
}

/* What kind of thing it is, before the name. Reading "Group" then the
   name is faster than reading a name and working out what it belongs to. */
.acc-sheet-kind {
  flex: none;
  min-width: 5.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ac-gray-400, #9ca3af);
}

.acc-sheet-note {
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.84rem;
}

.acc-sheet-empty {
  padding: 10px;
  color: var(--ac-gray-500, #6b7280);
  font-size: 0.88rem;
}

/* Dim the page behind the sheet, so it reads as one thing over another
   rather than two things fighting. Not a click-catcher — the script closes
   on an outside click, and a transparent overlay would swallow the first
   click somebody makes to get back to the page. */
.acc-sheet-veil {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

.acc-sheet-veil[hidden] {
  display: none;
}

/* --- 10. the rail's divider ------------------------------------------- */

/* The three tools and the five destinations are different kinds of thing,
   and a rail of eight identical glyphs is a rail nobody reads. */
.acc-strip-rule {
  display: block;
  height: 1px;
  margin: 4px 6px;
  background: var(--ac-gray-200, #e5e7eb);
}

.acc-strip > .acc-strip-extra > a {
  color: var(--ac-gray-600, #4b5563);
}

.acc-strip > .acc-strip-extra > a:hover {
  color: var(--ac-gray-900, #111827);
}

/* The two that keep their place in the bar sit immediately before the
   waffle, so the order reads notifications, messages, waffle, you. */
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-preview,
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-messenger {
  order: -1;
}

/* --- 11. colour on the three bar icons --------------------------------- */

/* Notifications, Messenger and the waffle get their own colour, so the
   three controls beside the avatar are told apart at a glance rather than
   by position. Deliberately different hues and not three shades of one:
   two blues beside each other are two blues.

   Scoped to the toolbar, so the same glyph inside the waffle panel or on
   the left rail keeps the quieter treatment that suits a list. */
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-preview > a,
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-preview > a > i,
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-preview > a > .sys-icon {
  color: var(--ac-amber-600, #d97706) !important;
}

.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-messenger > a,
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-messenger > a > i,
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-messenger > a > .sys-icon {
  color: var(--ac-green-600, #16a34a) !important;
}

/* A soft tint behind each on hover, in its own colour, so the hit area is
   obvious without the three of them looking like buttons at rest. */
.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-preview > a:hover {
  background: var(--ac-amber-50, #fffbeb) !important;
}

.bx-artificer .bx-menu-toolbar > .bx-menu-item-notifications-messenger > a:hover {
  background: var(--ac-green-50, #f0fdf4) !important;
}

.bx-artificer .acc-waffle-moved > a:hover {
  background: var(--ac-gray-100, #f3f4f6) !important;
}

/* ----------------------------------------------------------------------
   Sign up, log in, forgotten password.

   These three pages are one short form each, and the page column gives
   them the full width of a desktop — a 1200px box holding a field for an
   email address. Half that is still wider than the longest thing anybody
   types into it, and a narrow column reads as a form rather than as a
   page that failed to load its other half.

   Constrained on the container rather than on the block, so the card, the
   footnote under it and anything else the page grows all line up at the
   same edge.

   It lives in THIS stylesheet because this one is loaded site-wide by the
   footer injection. pages.css only arrives where an Accasio block renders
   it, and no Accasio block renders on the sign-up page — the first
   version of this rule was correct and never loaded. */
body.bx-page-create-account #bx-content-container,
body.bx-page-login #bx-content-container,
body.bx-page-forgot-password #bx-content-container {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* ...AND THE COLUMN INSIDE IT HAS TO FILL IT, which the rule above did not
   do and should have.

   These pages use UNA's `1-column-thin` layout, whose single column is a
   flex item carrying Tailwind's `md:w-1/3` — a THIRD OF THE ROW, not a
   fixed width. Capping the container to 34rem therefore capped the row to
   544px and the card to a third of that: 181.33px, which is exactly what
   was measured on the live page. The cap was mine, so the narrow card was
   mine; at the template's full 1280px the same third had been a passable
   427px and nothing looked wrong.

   A third of a column is sensible when the row is the whole page and the
   other two thirds hold something. Here the row IS the card, so the column
   takes all of it.

   !important because Artificer's Tailwind build emits w-1/3 with the flag,
   and the media query matches theirs so this cannot win at a width where
   the original rule is not even applied. */
@media (min-width: 768px) {
  body.bx-page-create-account .bx-layout-1-column-thin .bx-layout-col,
  body.bx-page-login .bx-layout-1-column-thin .bx-layout-col,
  body.bx-page-forgot-password .bx-layout-1-column-thin .bx-layout-col {
    width: 100% !important;
  }
}

/* ----------------------------------------------------------------------
   Account settings: the tabs that are one short form.

   Email, Account, Password and Content Filter are each a handful of
   fields in a box the full width of a desktop. Halved, and still far
   wider than the longest thing anybody types into one.

   Profiles, Notifications and Delete are left alone deliberately:
   Profiles is a grid of profile cards, Notifications is a long table of
   switches, and Delete is a warning that should be read at the width it
   was written for. Narrowing those would make them worse, not tidier.

   `max-width: 50%` rather than a figure in rem because that is literally
   what was asked for — half the width, at whatever width the window
   happens to be — and because a centred percentage keeps the tab row
   above it exactly where it is.

   The floor stops it collapsing on a small laptop, where 50% of the
   column would be narrower than the Submit button, and the rule only
   applies from 900px up, below which the page is already one column.

   In THIS stylesheet because it is the one the footer injection loads on
   every page; pages.css only arrives where an Accasio block renders it,
   and none renders here. */
@media (min-width: 900px) {
  body.bx-page-account-settings-email #bx-content-container,
  body.bx-page-account-settings-info #bx-content-container,
  body.bx-page-account-settings-password #bx-content-container,
  body.bx-page-profile-settings-cfilter #bx-content-container {
    max-width: 50%;
    min-width: 30rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ----------------------------------------------------------------------
   Messenger: the page behind it is a different grey from the page.

   Reported as two dark bands down the left and right edges. They are not
   a band of anything — they are the body showing through beside the
   messenger, and the two greys are one step apart:

     body                   #f3f4f6   grey-100
     .bx-messenger-columns  #f9fafb   grey-50

   Measured at a 1600px window: the columns run 54px to 1546px, so 54px
   of grey-100 shows on each side, perfectly symmetric, which is exactly
   what makes it read as two deliberate bands rather than a page edge.

   The page colour is correct everywhere else — elsewhere the content is
   white cards, and grey-100 is the contrast they are drawn against. The
   messenger is the one page whose content area is itself a grey, so it
   is the one page where the two meet and disagree.

   Keyed on the body class, so it is this page and nothing else, and the
   messenger embedded as a block on another page keeps that page's
   background. No !important: the rule that sets it is an ordinary
   .bx-def-color-bg-page declaration and a page-scoped selector already
   outranks it — verified by injecting both versions and reading the
   computed value back, since Artificer's Tailwind build is important:true
   and most things here DO need the flag. */
body.bx-page-messenger {
  background-color: #eef3fa;
}

/* ----------------------------------------------------------------------
   Messenger: one column, centred.

   IT HAD A RAIL ON THE LEFT UNTIL 3 NOVEMBER 2026, when the founder
   asked for the left column removed and the conversation centred.
   `ops/una/pages/messenger-rail.php --revert` took the two blocks back
   out of it and `ops/una/pages/messenger-layout.php --revert` put the
   page on the 1-column layout with the messenger in cell 1 — which is
   how the module ships it.

   THE RAIL RULES ARE REMOVED, NOT LEFT DORMANT. They narrowed bar_left's
   third to 23%, hid the rail below lg, gave it a scroll of its own and
   drew the same white card on a rail block as on the conversation. Every
   one of them was keyed on `.bx-layout-bar-left-*`, which this page no
   longer renders, so they would have sat here matching nothing and still
   reading as a description of the screen. What they did is in the
   handoff; a stylesheet should only describe what is drawn.

   CENTRING IS WHAT THE LAYOUT ALREADY DOES once there is nothing beside
   it. The single column is `w-full` inside the theme's own content cap,
   so at a 1600px window the conversation runs 54px to 1546px with the
   page tint showing equally on both sides. Measured on the live page,
   not assumed from the class name.

   THE GUTTER IS VERTICAL ONLY. Sideways the cap is already the margin,
   and a second one would come out of a grid that is carrying three
   columns of its own. Vertically there was none left: the padding that
   used to do it belonged to the rail rule above, so the card's rounded
   top sat flush against the ticker and its bottom against the window
   edge. Measured at 96 to 1000 in a 1000px window before this. */

body.bx-page-messenger .bx-layout-1-column .bx-layout-row {
  padding: 1rem 0;
}

/* ----------------------------------------------------------------------
   White cards on the blue.

   The page behind is #eef3fa — a tint rather than a colour, enough to
   tell the page from the thing sitting on it and not enough to compete
   with it. The conversation is white, with one soft border and one
   radius, so it reads as a single object laid on the page.

   The messenger's own surface was #f9fafb, which was invisible against
   the old near-white page and is the reason the sides looked like two
   grey bands. On a tinted page it has to be properly white or it reads
   as a third colour nobody chose.

   This rule outlived the rail. It was written for #16 and carried a
   second selector for blocks in the rail; that half went with the rail
   itself, and the conversation half is unchanged. */

body.bx-page-messenger .bx-messenger-columns {
  background-color: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  overflow: hidden; /* so the inner columns are clipped by the radius */
}

/* ----------------------------------------------------------------------
   The change log: one white card per entry.

   Each release is a managed `richtext` section, and a section renders
   transparent — which is right on the landing page, where sections are
   full-bleed bands with their own backgrounds, and wrong here, where they
   are a list of short entries on a grey page with nothing to separate one
   from the next.

   THE CARD GOES ON `.acc-inner`, NOT ON THE SECTION. The section is
   full-bleed; the inner element is the content column that already carries
   the 1060px cap and the centring. Putting the background on the section
   would give a white band the full width of the window.

   No !important anywhere here. These are our own classes rather than
   Tailwind utilities, so Artificer's important:true does not apply to
   them, and `body.bx-page-change-log .acc-section.acc-rich > .acc-inner`
   already outranks the `.acc-inner` rule it overrides — checked by reading
   the computed padding back rather than by assuming. */

body.bx-page-change-log .acc-section.acc-rich {
  margin: 0 0 1rem;
}

body.bx-page-change-log .acc-section.acc-rich:first-child {
  margin-top: 1rem;
}

body.bx-page-change-log .acc-section.acc-rich > .acc-inner {
  background-color: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;

  /* Replaces the column's 0 20px gutter: inside a card the text needs
     room above and below it too. */
  padding: 1.5rem;
}

/* The date and title carry the entry, so they get a little air under them
   and the body text is not left running straight into the heading. */
body.bx-page-change-log .acc-section.acc-rich .acc-heading {
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------------------
   The group profile page.

   THE BANNER AT THE TOP IS UNA'S OWN, not a new block. `cover` on
   sys_objects_page does two different jobs: on a listing page it draws
   the coloured band with the page name in it, and on a PROFILE page it
   draws the cover-image area with UNA's edit control on it. no-covers.php
   cleared all 158 pages to get rid of the first and took the second with
   it. Switching it back on for this one page gave a full-width banner the
   group's admin can upload to, and the Info card sits under it, which is
   what was asked for. See ops/una/pages/no-covers.php, where the profile
   pages are now exempt by name.

   Two things are adjusted here, both scoped to this page so no other
   profile type changes shape.

   THE EMPTY STATE WAS LIME GREEN. UNA draws
   `bg-gradient-to-b from-green-400 to-green-500` when no cover has been
   uploaded, which on a blue site reads as a mistake rather than a space
   waiting for a picture. A quiet blue-grey says "nothing here yet"
   without shouting. It sits UNDER any uploaded image, so a group that
   sets one never sees it.

   AND IT WAS 128 PIXELS TALL. That is a stripe, not a banner — too
   shallow to put a photograph in. 200 from `lg` up, left alone below,
   where the screen has no height to spare.

   The flags are needed throughout: Artificer's Tailwind build is
   important:true, so h-32 and the gradient utilities both arrive with
   !important and an ordinary declaration loses to them. */

/* All four profile types, because UNA gives each a different default and
   they disagree: green for a group, blue for a person. One quiet tint
   instead, so an empty banner looks the same wherever it appears.

   `.bx-bpci-holder` exists ONLY in the empty state. A profile that has a
   cover renders an image at h-64/lg:h-80 with no holder class, so nothing
   here can shrink or recolour a picture somebody uploaded — checked
   against Phoenixtekk Inc, which already has one. */
body.bx-page-view-group-profile .bx-bpci-holder,
body.bx-page-view-persons-profile .bx-bpci-holder,
body.bx-page-view-organization-profile .bx-bpci-holder,
body.bx-page-view-event-profile .bx-bpci-holder {
  background-image: linear-gradient(to bottom, #e8eef7, #dbe4f0) !important;
}

@media (min-width: 1024px) {
  body.bx-page-view-group-profile .bx-bpci-holder,
  body.bx-page-view-persons-profile .bx-bpci-holder,
  body.bx-page-view-organization-profile .bx-bpci-holder,
  body.bx-page-view-event-profile .bx-bpci-holder {
    height: 200px !important;
  }
}

/* The cards down both columns, given the one border and one radius the
   rest of the site uses, so Info, Members, Administrators and the map
   read as the same kind of object rather than four different ones. */
body.bx-page-view-group-profile .bx-page-block-container {
  background-color: #ffffff;
  border: 1px solid #e3e8ef;
  border-radius: 0.75rem;
  overflow: hidden;
}

body.bx-page-view-group-profile .bx-page-block-container + .bx-page-block-container {
  margin-top: 1rem;
}

/* ----------------------------------------------------------------------
   Groups, Organizations and People: four across.

   These listings are a wrapping flexbox whose cards carry
   `flex-basis: 33.25%` — three per row. The founder asked for four.

   THE BASIS IS FIXED AT EVERY WIDTH, which is worth knowing before
   changing it: measured at 1500px, 900px and 375px, it is 33.25% in all
   three, so these pages are already three-up on a phone with cards about
   a hundred pixels wide. Setting 25% unconditionally would have made that
   four-up and worse.

   So the four columns are the wide case and the narrow ones are given the
   breakpoints they never had. That is more than was asked for; leaving a
   phone at four-across while editing this very rule would have been
   knowingly shipping the worse half of the change.

   Scoped to the three pages by body class. The same card appears inside
   other blocks — a profile's groups, a search result — where a column is
   narrow and four would be unreadable.

   !important because Artificer's Tailwind build emits the basis with the
   flag; without it nothing here applies. */
@media (min-width: 1280px) {
  body.bx-page-groups-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover,
  body.bx-page-organizations-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover,
  body.bx-page-persons-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover {
    flex-basis: 25% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.bx-page-groups-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover,
  body.bx-page-organizations-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover,
  body.bx-page-persons-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover {
    flex-basis: 50% !important;
  }
}

@media (max-width: 767px) {
  body.bx-page-groups-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover,
  body.bx-page-organizations-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover,
  body.bx-page-persons-home .bx-base-puw-gallery > .bx-base-pofile-unit-with-cover {
    flex-basis: 100% !important;
  }
}

/* --- the Messenger's video recorder ------------------------------------

   UNA's dialog, not ours, so everything here is an override from outside
   rather than an edit to vendor core.

   THE FOUR BUTTONS WERE FOUR SIZES. Two of them hold only a glyph and two
   hold a word, and nothing gave them a shared shape — so the row read as
   four different controls rather than one set. The founder asked for one
   size, and the size is the largest of what was there: 2.75rem tall, and
   at least 5.5rem wide so "Close" fits without the icon-only pair looking
   like afterthoughts beside it.

   The record button keeps its colour, because it is the one that does
   something irreversible-looking and should not be mistaken for Send. */
.bx-messenger-video-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.bx-messenger-video-buttons > .bx-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  min-width: 5.5rem !important;
  height: 2.75rem !important;
  margin: 0 !important;
  padding: 0 0.9rem !important;

  border-radius: 8px;
  line-height: 1 !important;
}

/* The glyph keeps its box whatever the recorder writes into the button.

   record-video.js replaces the contents of a button to change its icon,
   and on a Lucide install the replacement renders as nothing until the
   icon pass runs again — messenger-recorder.js is what runs it. This is
   the other half: a size for the glyph so the button does not change
   shape between the moment it is rewritten and the moment it is drawn. */
.bx-messenger-video-buttons > .bx-btn > i,
.bx-messenger-video-buttons > .bx-btn > svg,
.bx-messenger-video-buttons > .bx-btn > .sys-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 !important;
  font-size: 1.15rem;
  line-height: 1;
}

/* The site's name over the dialog, centred.

   The first line in the recorder is the comment box, whose placeholder
   reads like a heading and is not one — so there was nothing at the top
   of the dialog saying where you were. */
.acc-rec-title {
  margin: 0 0 0.75rem;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid var(--ac-gray-200, #e5e7eb);

  color: var(--ac-gray-900, #111827);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* --- the call window -----------------------------------------------------

   The iframe inside this panel is Jitsi's, on another origin, so nothing
   here reaches its toolbar - which is why the controls are configured in
   call-controls.js instead. What IS ours is the box around it, and the box
   had no heading: a draggable window with a video in it and nothing saying
   where you were. */
.acc-call-title {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--ac-gray-200, #e5e7eb);

  color: var(--ac-gray-900, #111827);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* The Close button under the call, given the same shape as the recorder's
   row so the two windows do not read as two different products. */
.bx-messenger-jitsi-buttons {
  display: flex;
  justify-content: center;
  padding: 0.6rem 0;
}
.bx-messenger-jitsi-buttons > .bx-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  min-width: 5.5rem !important;
  height: 2.75rem !important;
  margin: 0 !important;
  padding: 0 0.9rem !important;

  border-radius: 8px;
  line-height: 1 !important;
}

/* --- the call window: resizable, and poppable out --------------------

   The messenger ships this window at a FIXED 640x480 with the iframe
   container hard-coded to those pixels and `overflow: hidden`. That is
   why the toolbar had nowhere to go, and why a long call sat in a small
   box in the corner of a big screen.

   The area becomes a column - heading, video, buttons - so the video
   takes whatever height is left when the window is resized. */
.bx-messenger-jitsi-area {
  position: relative;

  display: flex;
  flex-direction: column;

  /* WIDE ENOUGH FOR THE CONTROLS TO CARRY THEIR WORDS.

     This was 44rem - 704px - and the founder's screenshot of a real
     two-person call showed why that was wrong: the toolbar inside the
     frame had more labelled controls than 704px has room for, so they
     were squeezed against each other with their words clipped. The
     stylesheet on the Jitsi side cannot widen the window it is shown
     in; only this can.

     56rem is 896px, which clears the 820px at which the toolbar skin
     turns labels on, with room to spare. `max-width` keeps it inside a
     small laptop viewport, and the grip and the pop-out still take it
     anywhere from `min-width` up. */
  width: 56rem;
  height: 34rem;
  max-width: calc(100vw - 2rem);
  min-width: 20rem;
  min-height: 16rem;
}

/* The iframe container is an id selector in the messenger's own
   stylesheet with its pixels baked in, so these need !important to
   reach it at all. */
.bx-messenger-jitsi-area > #bx-messenger-jitsi,
.bx-messenger-jitsi-area > .jitsi {
  flex: 1 1 auto;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
}
.bx-messenger-jitsi-area .acc-call-title,
.bx-messenger-jitsi-area .bx-messenger-jitsi-buttons {
  flex: 0 0 auto;
}

/* The grip. Not the browser's own `resize`, which never gets to start:
   the messenger makes the window draggable by calling preventDefault on
   mousedown over the whole thing. */
.acc-call-grip {
  position: absolute;
  right: 2px;
  bottom: 2px;

  width: 16px;
  height: 16px;

  cursor: nwse-resize;

  /* Two diagonal strokes, the way every resize corner looks. */
  background:
    linear-gradient(
      135deg,
      transparent 0 44%,
      var(--ac-gray-400, #9ca3af) 44% 56%,
      transparent 56% 100%
    ),
    linear-gradient(
      135deg,
      transparent 0 72%,
      var(--ac-gray-400, #9ca3af) 72% 84%,
      transparent 84% 100%
    );
}

.acc-call-said {
  margin: 0.5rem 0 0;
  color: var(--ac-red-700, #a3321f);
  font-size: 0.85rem;
  text-align: center;
}

/* A phone has no room for a resizable window and no second window to pop
   into; the call simply fills the width, as it did before. */
@media (max-width: 599.98px) {
  .bx-messenger-jitsi-area {
    width: 100%;
    height: auto;
  }
  .acc-call-grip,
  .bx-messenger-jitsi-buttons > .acc-call-pop {
    display: none;
  }
}

/* --- the wordmark, and room between the buttons ----------------------

   The two dialog headings used to set the site's name in capitals. They
   carry the wordmark now, which is why the letter-spacing and the
   uppercasing above no longer have anything to act on - they are left in
   place because they still style the text fallback, which is what a
   member sees if the image ever fails to load. */
.acc-call-title img,
.acc-rec-title img {
  display: block;
  height: 1.6rem;
  width: auto;
  max-width: 70%;
  margin: 0 auto;
}

/* THE TWO BUTTONS WERE TOUCHING.

   The messenger's own rule puts this row at `justify-content: flex-end`
   with no gap, which was fine when Close was the only thing in it. Pop
   out arrived beside it and the pair read as one wide control.

   Matched to the messenger's own specificity - `div` plus two classes -
   because a plainer selector loses to it and silently does nothing. */
div.bx-messenger-jitsi-area .bx-messenger-jitsi-buttons {
  gap: 0.75rem;
}
