/* The "Site by Escape Velocity" badge (T, 14 November 2026): the last row of the footer, the copyright line on the left
   and the badge on the right; on a phone the badge drops under the copyright, centred. Shown only while Details, Core
   info, "Show the Site by Escape Velocity badge" is ticked (site.siteByBadge); this file is linked by partials/head.ejs
   only then. The badge is views/partials/site-by.ejs; its block below is the brand's own, copied as it is from
   Escape-Velocity/Brand/Logo/site-by-badge.html, never restyled per site. Which version shows, the dark footer's or the
   light footer's, is chosen in the page by the footer's own darkness (the script in site-by.ejs), never by hand. */

/* The footer's last row while the badge shows. A design's footer puts class="site-by-row" on its own last row (the one
   with the copyright line) and includes partials/site-by after the copyright, or styles the row the same way itself. */
.site-by-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; text-align: left; }
@media (max-width: 600px) {
  .site-by-row { flex-direction: column; justify-content: center; text-align: center; }
}

/* ---- the badge: copied from the brand's site-by-badge.html, from here ---- */
.ev-site-by {
  --ev-ink: #020612; --ev-slate: #4B5068; --ev-mist: #D5D9E6; --ev-silver: #E8E8EA; --ev-blue: #2C6DFC; --ev-violet: #772DF6;
  display: inline-grid; grid-template-columns: 28.9px max-content; grid-template-rows: auto auto; align-items: end;
  box-sizing: border-box; min-height: 44px; padding: 7px 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 11px; font-weight: 400; line-height: 1.2;
  color: var(--ev-mist); text-decoration: none; white-space: nowrap; border-radius: 8px;
}
.ev-site-by img { grid-row: 1 / 3; grid-column: 1; justify-self: start; align-self: end; display: block; width: 39.79px; height: 28.34px; max-width: none; max-height: none; margin-bottom: -4.09px; }
.ev-site-by-label { grid-row: 1; grid-column: 2; margin-left: 9.2px; text-align: center; }
.ev-site-by-name { grid-row: 2; grid-column: 2; margin-left: 9.2px; font-size: 14px; font-weight: 600; color: var(--ev-silver); }
.ev-site-by:hover .ev-site-by-name, .ev-site-by:focus-visible .ev-site-by-name { text-decoration: underline; text-decoration-color: var(--ev-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ev-site-by:focus-visible { outline: 2px solid var(--ev-blue); outline-offset: 2px; }
/* on a light footer */
.ev-site-by--light { color: var(--ev-slate); }
.ev-site-by--light .ev-site-by-name { color: var(--ev-ink); }
.ev-site-by--light:hover .ev-site-by-name, .ev-site-by--light:focus-visible .ev-site-by-name { text-decoration-color: var(--ev-violet); }
.ev-site-by--light:focus-visible { outline-color: var(--ev-violet); }
/* ---- to here ---- */

/* A footer's own link and picture styles never reach the badge (the wireframe's `body.wireframe footer a` made it a flex
   row, `.footer-bottom a` recoloured "Site by", a site's `img` rule shrank the mark): the brand's box, colour and mark
   again, stronger than any footer link or picture rule. */
a.ev-site-by.ev-site-by { display: inline-grid; min-height: 44px; margin: 0; padding: 7px 0; border: 0; background: none; color: var(--ev-mist); font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 11px; font-weight: 400; line-height: 1.2; letter-spacing: normal; text-transform: none; text-decoration: none; }
a.ev-site-by.ev-site-by .ev-site-by-label { font-size: 11px; font-weight: 400; }
a.ev-site-by.ev-site-by .ev-site-by-name { font-size: 14px; font-weight: 600; color: var(--ev-silver); }
a.ev-site-by--light.ev-site-by--light { color: var(--ev-slate); }
a.ev-site-by--light.ev-site-by--light .ev-site-by-name { color: var(--ev-ink); }
/* The mark at the brand's size, whatever the site says of pictures: a site's `img { max-width: 100% }` held it to its
   28.9px column, drawn small and stopping short of the name (Lehanmore, 14 November 2026); `height: auto`, a footer's
   picture margins or borders would move it too. */
a.ev-site-by.ev-site-by img { grid-row: 1 / 3; grid-column: 1; justify-self: start; align-self: end; display: block; box-sizing: content-box; width: 39.79px; height: 28.34px; min-width: 0; min-height: 0; max-width: none; max-height: none; aspect-ratio: auto; margin: 0 0 -4.09px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; object-fit: fill; opacity: 1; filter: none; transform: none; }

/* The two marks are both in the link, so the version can change without a new picture to fetch: ev-mark.svg on a dark
   footer, ev-mark-on-light.svg (with the --light class) on a light one. Stronger than the mark's rule above. */
a.ev-site-by.ev-site-by .ev-site-by-mark--light { display: none; }
a.ev-site-by--light.ev-site-by--light .ev-site-by-mark--dark { display: none; }
a.ev-site-by--light.ev-site-by--light .ev-site-by-mark--light { display: block; }
