/* Family footer band: the thin black "Made by Rares Oroian" line at the bottom of every page.
   MASTER COPY: shared/family-band/family-band.css. Each site's public/family-band.css is a copy made by
   tools/stamp_band.py; edit this file, then run  python3 tools/stamp_band.py  (never edit the copies).

   It is plain black and white on purpose, so it sits under any project whatever that project's colours.

   Every site has its own global CSS (resets, link colours, body padding, wrappers), so:
   - every class starts with "rofam-" and every rule starts with ".rofam", so nothing here touches the site;
   - each element first drops whatever the site's CSS gave it ("all: unset") and then sets everything it
     needs, so nothing from the site leaks in;
   - the line reaches both edges of the window even when the site's <body> has side padding or the band
     ends up inside a narrower box: the black is painted outwards with a box-shadow that is clipped to the
     band's height (and extended downwards, so short pages and iOS "rubber band" scrolling show black
     under the band, not a strip of page colour). A shadow never makes the page scroll sideways.
   No fonts, images, scripts or inline styles are needed (Palunero's Content-Security-Policy allows only
   same-site stylesheets and images). */

aside.rofam {
  all: unset;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: static;
  float: none;
  clear: both;
  width: auto;
  max-width: none;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font: 400 13px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-align: center;
  text-indent: 0;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* first shadow: the black out to the window edges; second: a faint line 1px above it,
     which only shows where the page around the band is dark too */
  box-shadow: 0 0 0 100vmax #000, 0 -1px 0 100vmax rgba(255, 255, 255, 0.16);
  clip-path: inset(-1px -100vmax -100vmax -100vmax);
}

.rofam .rofam-by {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  border-radius: 2px;
}

.rofam .rofam-mark {
  all: unset;
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  overflow: hidden;
  direction: ltr;
}

.rofam .rofam-by-text {
  all: unset;
}

/* "Made by Rares Oroian" is a link to the home site everywhere except on the home site itself. */
.rofam a.rofam-by {
  cursor: pointer;
}

.rofam a.rofam-by:hover .rofam-by-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rofam a.rofam-by:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* Printing a page (a privacy policy, say) leaves the band out. */
@media print {
  aside.rofam {
    display: none;
  }
}
