/*
 * rmc-civic-footer.css — v4.01.41 (2026-06-02)
 *
 * Civic centered 4-tier footer pattern shared by:
 *   - Tenant portal       (.rmc-civic-footer)                        via templates/components/dashboard_footer.html
 *   - Studio OS           (inherits via portal_base.html)
 *   - Manager operator    (.rmc-civic-footer.rmc-civic-footer--dark) via templates/partials/rmc_operator_footer_compact.html
 *
 * v4.01.41: ~30% vertical density (padding, tier gaps, pill/icon sizing ×0.7) — all tiers preserved.
 *
 * All values configurable via cockpit.footer.* context (see apps/siteconfig/cockpit_context.py).
 * Dark variant (`.rmc-civic-footer--dark`) flips chrome via scoped token overrides — no off-token
 * color violations (every literal is wrapped in a tokenized variable).
 */

/* ------------------------------------------------------------------ */
/* Shared container                                                    */
/* ------------------------------------------------------------------ */
.rmc-civic-footer {
  --rmc-civic-fg:          var(--text-secondary);
  --rmc-civic-fg-strong:   var(--text-primary);
  --rmc-civic-fg-muted:    var(--text-tertiary);
  --rmc-civic-fg-faint:    var(--text-muted);
  --rmc-civic-surface:     var(--surface-elevated, #fff);
  --rmc-civic-surface-sunken: var(--surface-sunken, #eef2f6);
  --rmc-civic-hairline:    var(--hairline);
  --rmc-civic-accent:      var(--school-primary, var(--brand-primary, var(--rmc-civic-fg-muted)));

  /* VERTICAL DENSITY, in one place (owner 2026-10-19: "the footer is still very
     big, it needs to be reduced by 40% of its vertical size while keeping
     everything"). Every vertical contributor below reads one of these, and the
     operator ribbons in rmc-cp-operator-footer.css read them too -- so the next
     "a bit tighter" is one edit, not a hunt through two files and four media
     queries. Nothing is removed: the brand line, the trust pills, the temporal
     dock, the contacts and the legal line all still render.
     The arithmetic, from the declared values, desktop, nothing wrapping:
       operator (stacked ribbons): padding 22 -> 9, row gap 6 -> 3, primary
         ribbon 31px floor + 12px padding -> content + 6, secondary 10 -> 5,
         leading 1.4 -> 1.25.  95px -> 57px, the 40% asked for.
       tenant: already ONE row at >=992px (the 3-zone block further down), so
         its saving is the padding and the leading: 44px -> 28px.
     No tier is folded or dropped to get there -- the rows are the content, and
     what came off is the band's own empty space. */
  --rmc-civic-pad-top: 5px;
  --rmc-civic-pad-bottom: 4px;
  --rmc-civic-row-gap: 3px;
  --rmc-civic-ribbon-pad-y: 3px;
  --rmc-civic-ribbon-pad-top: 2px;
  --rmc-civic-ribbon-pad-bottom: 3px;
  --rmc-civic-pill-pad-y: 1px;

  width: 100%;
  /* Aesthetic polish only (2026-07-22): same brand/midrow/legal structure —
     clearer type, calm spacing, full-bleed band. No HTML tier changes. */
  padding: var(--rmc-civic-pad-top) clamp(16px, 2.5vw, 28px) var(--rmc-civic-pad-bottom);
  font-size: 13px;
  /* 1.25 rather than 1.4: on a three-row band the leading is the second biggest
     vertical term after the padding, and 1.25 still clears the 1.2 floor the
     type scale uses for dense rows. */
  line-height: 1.25;
  color: var(--rmc-civic-fg);
  background: var(--rmc-civic-surface);
  border-top: 1px solid var(--rmc-civic-hairline);
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 0;
}

.rmc-civic-footer__inner {
  margin: 0;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--rmc-civic-row-gap);
}

/* ------------------------------------------------------------------ */
/* Mid-row — temporal dock + trust strip + contacts on ONE wrapped row */
/* (v4.04.x footer −50% vertical). The three former tiers become inline */
/* flex groups that wrap gracefully; centered aesthetic preserved.      */
/* ------------------------------------------------------------------ */
.rmc-civic-footer__midrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px 12px;
  width: 100%;
}
/* The folded tiers size to content (not full-width) inside the mid-row. */
.rmc-civic-footer__midrow > .rmc-civic-footer__strip,
.rmc-civic-footer__midrow > .rmc-civic-footer__contacts,
.rmc-civic-footer__midrow > .rmc-footer-temporal {
  width: auto;
}

/* ------------------------------------------------------------------ */
/* Tier 1 — brand + motto + est                                        */
/* ------------------------------------------------------------------ */
.rmc-civic-footer__brand {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  line-height: 1.2;
}
.rmc-civic-footer__brand strong { color: var(--rmc-civic-fg-strong); font-weight: 700; letter-spacing: 0.01em; }
.rmc-civic-footer__motto {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--rmc-civic-fg-muted);
  letter-spacing: 0.015em;
}
.rmc-civic-footer__est { color: var(--rmc-civic-fg-muted); font-size: 12.5px; }

/* ------------------------------------------------------------------ */
/* Tier 2 — trust + lang + app + social (single dense row)             */
/* ------------------------------------------------------------------ */
.rmc-civic-footer__strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.rmc-civic-footer__pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: var(--rmc-civic-pill-pad-y) 6px;
  border-radius: var(--radius-pill, 999px);
  background: var(--rmc-civic-surface-sunken);
  font-size: 12px;
  color: var(--rmc-civic-fg);
  white-space: nowrap; /* horizontal-overflow-risk-allow: short-pill-content-bounded */
}
.rmc-civic-footer__pill--secure {
  background: var(--success-soft, rgba(34,197,94,0.12));
  /* Raw status hue on its own tint was 1.98:1 in light mode; mix toward the
     footer ink so it reads in both themes. */
  color: color-mix(in srgb, var(--success, #16a34a) 45%, var(--text-primary));
  font-weight: 700;
}
.rmc-civic-footer__pill--cert {
  background: var(--info-soft, rgba(59,130,246,0.12));
  color: var(--info, #2563eb);
  font-weight: 700;
}

.rmc-civic-footer__divider {
  display: inline-block;
  width: 1px; height: 10px;
  background: var(--rmc-civic-hairline);
  margin: 0 4px;
  align-self: center;
}

/* Language switcher chip */
.rmc-civic-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--rmc-civic-pill-pad-y) 6px;
  border: 1px solid var(--rmc-civic-hairline);
  border-radius: var(--radius-pill, 999px);
  background: var(--rmc-civic-surface);
  color: var(--rmc-civic-fg);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.rmc-civic-footer__lang:hover,
.rmc-civic-footer__lang:focus-visible {
  border-color: var(--rmc-civic-accent);
  color: var(--rmc-civic-fg-strong);
  transform: translateY(-1px);
}
.rmc-civic-footer__lang-caret { font-size: 9px; color: var(--rmc-civic-fg-faint); }

/* App badges */
.rmc-civic-footer__appbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--rmc-civic-pill-pad-y) 6px;
  border-radius: var(--radius-pill, 999px);
  border: 1px solid var(--rmc-civic-hairline);
  background: var(--rmc-civic-surface);
  color: var(--rmc-civic-fg-strong);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}
.rmc-civic-footer__appbadge:hover,
.rmc-civic-footer__appbadge:focus-visible {
  border-color: var(--rmc-civic-accent);
  transform: translateY(-1px);
}
.rmc-civic-footer__appbadge-glyph { font-size: 11px; }

/* Social row */
.rmc-civic-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rmc-civic-footer__social-label {
  font-size: 12px;
  color: var(--rmc-civic-fg-muted);
  margin-right: 2px;
}
.rmc-civic-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--rmc-civic-hairline);
  background: var(--rmc-civic-surface);
  color: var(--rmc-civic-fg);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.rmc-civic-footer__social-icon:hover,
.rmc-civic-footer__social-icon:focus-visible {
  border-color: var(--rmc-civic-accent);
  color: var(--rmc-civic-accent);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/* Tier 3 — contacts + social-proof stat                               */
/* ------------------------------------------------------------------ */
.rmc-civic-footer__contacts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  justify-content: center;
  align-items: center;
}
.rmc-civic-footer__contact { display: inline-flex; align-items: center; gap: 4px; }
.rmc-civic-footer__contact a { text-decoration: none; color: inherit; }
.rmc-civic-footer__contact a:hover { color: var(--rmc-civic-fg-strong); }
.rmc-civic-footer__stat {
  font-size: 12px;
  color: var(--rmc-civic-fg-muted);
  letter-spacing: 0.01em;
}
.rmc-civic-footer__stat strong { color: var(--rmc-civic-fg); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Tier 4 — legal single-line                                          */
/* ------------------------------------------------------------------ */
.rmc-civic-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px 10px;
  padding-top: 3px;
  margin-top: 0;
  border-top: 1px solid var(--rmc-civic-hairline);
  font-size: 12px;
  color: var(--rmc-civic-fg-faint);
  width: 100%;
  max-width: none;
}
.rmc-civic-footer__legal-copy { letter-spacing: 0.01em; }
/* solid faint token instead of opacity-multiplied muted (was ~2.9:1, and the
   footer is on every page) — recessive but legible. */
.rmc-civic-footer__legal-sep { color: var(--rmc-civic-fg-faint); }
.rmc-civic-footer__legal a { color: var(--rmc-civic-fg-faint); text-decoration: none; }
.rmc-civic-footer__legal a:hover { color: var(--rmc-civic-fg); }

/* ------------------------------------------------------------------ */
/* 3-zone horizontal distribution (tenant footer only)                 */
/* Owner 2026-06-23: "evenly distributed". At lg+ the centered column   */
/* unfolds into three balanced zones on one line:                      */
/*   brand (left) · trust + temporal + contacts (center) · legal (right)*/
/* Scoped :not(--dark) so the operator footer keeps its centered stack. */
/* Height unchanged — still the −50% compact rhythm, just horizontal.   */
/* ------------------------------------------------------------------ */
@media (min-width: 992px) {
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 8px 18px;
    max-width: none;
    width: 100%;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__brand {
    justify-content: flex-start;
    flex: 0 1 auto;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__midrow {
    flex: 1 1 auto;
    justify-content: center;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__legal {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    justify-content: flex-end;
    text-align: right;
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Dark variant (manager operator footer)                              */
/* ------------------------------------------------------------------ */
.rmc-civic-footer--dark {
  --rmc-civic-fg:          rgba(255, 255, 255, 0.78); /* off-token-allow: dark-chrome-text */
  --rmc-civic-fg-strong:   rgba(255, 255, 255, 0.95); /* off-token-allow: dark-chrome-text-strong */
  --rmc-civic-fg-muted:    rgba(255, 255, 255, 0.55); /* off-token-allow: dark-chrome-text-muted */
  --rmc-civic-fg-faint:    rgba(255, 255, 255, 0.42); /* off-token-allow: dark-chrome-text-faint */
  --rmc-civic-surface:     rgba(255, 255, 255, 0.04); /* off-token-allow: dark-chrome-surface */
  --rmc-civic-surface-sunken: rgba(255, 255, 255, 0.08); /* off-token-allow: dark-chrome-surface-sunken */
  --rmc-civic-hairline:    rgba(255, 255, 255, 0.10); /* off-token-allow: dark-chrome-hairline */
  --rmc-civic-accent:      var(--rmc-cockpit-chrome-text-bright, rgba(255, 255, 255, 0.88)); /* off-token-allow: dark-chrome-accent-fallback */
  background: transparent; /* sits over the operator dark canvas */
  border-top-color: var(--rmc-civic-hairline);
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .rmc-civic-footer__lang,
  .rmc-civic-footer__appbadge,
  .rmc-civic-footer__social-icon { transition: none; }
  .rmc-civic-footer__lang:hover,
  .rmc-civic-footer__appbadge:hover,
  .rmc-civic-footer__social-icon:hover { transform: none; }
}

/* ------------------------------------------------------------------ */
/* Height-aware density (2026-10-10)                                   */
/* ------------------------------------------------------------------ */
/* Every query above this point keys density to WIDTH. A laptop is wide */
/* but SHORT -- 1366x768, 1440x900 -- so it took the full desktop       */
/* rhythm while having 30-40% less vertical room than the 1080-tall     */
/* monitor those numbers were tuned on. Hence "the footer eats the      */
/* screen on a laptop" while looking right on a big display.            */
/*                                                                      */
/* Padding and type are NOT touched here, deliberately: portal_base's   */
/* rmc-tenant-chrome-critical block already pins                        */
/* `padding:6px ... 6px!important; font-size:11px!important` (pills at  */
/* 10.5px), so there is nothing left to take and taking it is exactly   */
/* what that block exists to prevent ("can't leave the footer           */
/* cramped"). The levers it does NOT set are the gaps, and those are    */
/* where the height actually is.                                        */
/*                                                                      */
/* The dominant term is WRAPPING, not padding. `__inner` is nowrap at   */
/* lg+, but `__midrow` (temporal dock + trust strip + contacts) wraps,  */
/* and each wrapped line costs a whole row (~17px) against ~12px of     */
/* total padding. So tightening the COLUMN gap is a height fix: it buys */
/* the mid-row the width to stay on fewer lines.                        */
/*                                                                      */
/* Nothing is removed, hidden, truncated or ellipsised: every tier,     */
/* pill, badge, contact, link and label renders exactly as before.      */

@media (max-height: 900px) {
  .rmc-civic-footer__inner   { gap: 2px; }
  .rmc-civic-footer__midrow  { gap: 2px 9px; }
  .rmc-civic-footer__brand   { gap: 3px; }
  .rmc-civic-footer__contacts { gap: 8px; }
  .rmc-civic-footer__divider { margin: 0 3px; }
}

@media (max-height: 760px) {
  .rmc-civic-footer__inner   { gap: 2px; }
  .rmc-civic-footer__midrow  { gap: 0 7px; }
  .rmc-civic-footer__brand   { gap: 2px; }
  .rmc-civic-footer__contacts { gap: 6px; }
  .rmc-civic-footer__strip   { gap: 3px; }
  .rmc-civic-footer__divider { margin: 0 2px; }
}

/* At laptop WIDTH the three zones already share one line (the lg+ block */
/* above). On a short screen, give that line the horizontal slack to keep */
/* the mid-row on as few lines as possible -- the single biggest height   */
/* saving available without removing anything.                           */
@media (min-width: 992px) and (max-height: 900px) {
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__inner {
    gap: 4px 12px;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__midrow {
    min-width: 0;
    column-gap: 8px;
  }
  /* The groups may compress toward their content instead of forcing a   */
  /* wrap; they still lay out and wrap internally if they truly must.    */
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__midrow > * {
    min-width: 0;
  }
}

/* A very short viewport (a netbook, a half-height window, a projector)   */
/* keeps the full footer but at the tightest rhythm the type allows.      */
@media (max-height: 620px) {
  .rmc-civic-footer__inner   { gap: 1px; }
  .rmc-civic-footer__midrow  { gap: 0 6px; }
  .rmc-civic-footer__strip   { gap: 2px; }
  .rmc-civic-footer__contacts { gap: 5px; }
}

/* The brand zone holds one line (2026-10-10, saves ~20px) but must NOT be    */
/* allowed to shrink below its text: with min-width:0 a nowrap zone paints    */
/* its text OVER the neighbouring zone, so the school name overlapped the     */
/* pills and clock. It keeps its natural width; the mid-row and legal zones   */
/* below are the ones that yield and wrap.                                    */
@media (min-width: 992px) {
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__brand {
    flex-wrap: nowrap;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media (min-width: 992px) {
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__midrow,
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__legal {
    min-width: 0;
  }
}

/* A school that PUBLISHES the optional footer tiers gets a much taller      */
/* footer than one that has not, and the brand fix above does nothing for    */
/* it. Measured through the built bundle with social links, app badges,      */
/* legal links and a stat line configured: 163px at 1024x768 -- 21% of the   */
/* screen -- because the mid-row is squeezed into the middle third of the    */
/* three-zone row and its chips wrap to four lines. The earlier measurement  */
/* missed this: it rendered the default footer, where those tiers are empty. */
/* Give the mid-row its own full-width line instead, so the same chips wrap  */
/* to one or two. Nothing is hidden, truncated or reordered within a zone.   */
/* Keyed on :has() rather than on width, because whether the wrap is worth   */
/* an extra row depends on the CONTENT: a school with none of those tiers    */
/* published is already shorter on one row (48px at 1366x768), and forcing   */
/* the second row on it measured 5px WORSE. Short screens only -- a 1080px   */
/* desktop has the vertical room and is left alone.                         */
/* ------------------------------------------------------------------ */
/* One band, whatever the tenant published (2026-10-20, owner: halve it) */
/* ------------------------------------------------------------------ */
/* SUPERSEDES the `:has()` second-line rule that stood here. That rule    */
/* was right about its measurement and wrong about the remedy. It found   */
/* that a school which has published social links, app badges or a stat   */
/* line wraps the mid-row to four lines when the mid-row is squeezed into */
/* the middle third, and bought the height back by giving the mid-row a   */
/* whole second ROW -- trading four wrapped lines for one extra row.      */
/* Measured through the built bundle, that still cost a configured tenant */
/* ~20px and left the DEFAULT footer 5px worse when forced, which is why  */
/* it was keyed on content and on short screens only.                     */
/*                                                                        */
/* The reason the mid-row needed the width is that its chips cannot       */
/* shrink: each is a text pill, so the only ways to fit are more rows or  */
/* fewer chips. This takes the third way -- the zone stays ONE line and    */
/* scrolls on its own axis. Nothing is hidden, truncated, ellipsised or    */
/* reordered: every pill, badge, contact, link and label is still in the  */
/* DOM, still in source order, still reachable, and now reachable with     */
/* the scroll arrows this platform puts on every scroller. A zone that     */
/* fits shows no scrollbar and behaves exactly as before.                 */
/*                                                                        */
/* The inverse defect is fixed in the same stroke. The compression that   */
/* kept the mid-row on one line was keyed to `max-height: 900px`, so a     */
/* 1080-tall desktop never received it: measured, 1920x1080 rendered the  */
/* mid-row on THREE lines (58px) while 1366x768 rendered it on one (20px) */
/* -- the biggest screen got the tallest footer. Height is no longer a    */
/* condition for fitting on one line; it never should have been.          */

@media (min-width: 768px) {
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 0 12px;
  }
  /* Every zone may compress toward its content rather than force a wrap. */
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__brand,
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__midrow,
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__legal {
    min-width: 0;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__midrow {
    flex: 1 1 auto;
    justify-content: center;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__brand,
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__legal {
    flex: 0 1 auto;
  }
  .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__legal {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    text-align: right;
    justify-content: flex-end;
  }
}

/* The zones themselves: one line each, scrolling on their own axis.      */
/* Applied at EVERY width, because the stacked phone footer has the same  */
/* defect in the same place -- measured, its brand zone alone wrapped to   */
/* four lines (56px) for a school whose name is long.                     */
/* The mid-row is NOT in this list, deliberately -- see the block below. */
.rmc-civic-footer__brand,
.rmc-civic-footer__strip,
.rmc-civic-footer__contacts,
.rmc-civic-footer__legal {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  /* A scrollable box is a tab stop in its own right, which is how a        */
  /* keyboard reaches the chips that scrolled off.                          */
  scroll-snap-type: x proximity;
  /* flex-wrap stops FLEX ITEMS wrapping; it does nothing to the text inside
     them. Measured, the brand zone still ran to four lines (61px at 834px,
     46px at 390px) because a long school name plus its descriptor is one text
     run. The zone scrolls, so the text has somewhere to go. */
  white-space: nowrap;
}

/* The chips must not shrink themselves into illegibility once the row     */
/* stopped wrapping -- they scroll instead.                                */
.rmc-civic-footer__midrow > *,
.rmc-civic-footer__strip > *,
.rmc-civic-footer__contacts > *,
.rmc-civic-footer__legal > * {
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ */
/* The mid-row must not be a scroll container (2026-10-20)              */
/* ------------------------------------------------------------------ */
/* A scroll container clips its descendants, and CSS cannot express     */
/* `overflow-x: auto; overflow-y: visible` -- per the overflow spec a   */
/* `visible` value computes to `auto` when the other axis is not        */
/* visible. So a zone given a horizontal scroll also clips whatever     */
/* opens VERTICALLY out of it.                                          */
/*                                                                      */
/* `.rmc-footer-temporal` -- the clock/weather dock -- lives in the     */
/* mid-row and opens a Bootstrap DROPUP out of the top of the footer.   */
/* Measured with the dock open and probed by `elementFromPoint`, the    */
/* panel was hit-testable at 0 of 5 sampled points at all 8 viewports:  */
/* entirely clipped. A clipped element still reports its full rect, so  */
/* reading the panel's own geometry would have said it was fine, and    */
/* height measurement cannot see this at all -- the panel is closed     */
/* when a footer is measured.                                           */
/*                                                                      */
/* So the scroll moves off the mid-row and onto the two groups INSIDE   */
/* it that hold no popup. The mid-row still never wraps; its scrollable */
/* children absorb the overflow instead, so it has none of its own and  */
/* needs no clip. The dock keeps a clean path to the viewport.          */
.rmc-civic-footer__midrow {
  flex-wrap: nowrap;
  min-width: 0;
  /* Explicit, not merely inherited: this element must stay unclipped. */
  overflow: visible;
}

/* The two groups that may scroll give up width first; the dock does not. */
.rmc-civic-footer__midrow > .rmc-civic-footer__strip,
.rmc-civic-footer__midrow > .rmc-civic-footer__contacts {
  flex: 0 1 auto;
  min-width: 0;
}
.rmc-civic-footer__midrow > .rmc-footer-temporal {
  flex: 0 0 auto;
}

/* `overflow` on a flex item establishes a scroll container, and a scroll   */
/* container's height is its content's -- so the leading is now the whole   */
/* vertical term. Nothing else is left to take.                            */

/* The tenant Tools tab and the floating Insights / Finance / Approvals       */
/* pills are fixed at the bottom-right edge, so on a wide screen they sit      */
/* over the right end of the footer and hide its legal line ("Powered by...").  */
/* Keep that end of the footer clear. Wide screens only: below 1200px there is  */
/* no room to give up and the footer wraps instead.                            */
@media (min-width: 1200px) {
  body[data-rmc-workspace-tools="tenant"] .rmc-civic-footer:not(.rmc-civic-footer--dark) .rmc-civic-footer__inner {
    padding-inline-end: 9.5rem;
  }
}
