.brand:has(> .arkvell-wordmark) { min-height: 44px; }
.brand > .arkvell-wordmark {
  display: block;
  width: clamp(166px, 11.5vw, 240px);
  height: auto;
}
@media (max-width: 600px) {
  .brand > .arkvell-wordmark { width: 150px; }
}
@media (max-width: 420px) {
  .mast .theme-tool summary [data-theme-label] { display: none; }
  .site-footer .foot-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }
}

/* The credit travels with client sites; its text uses the host footer's ink. */
a.arkvell-credit:any-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
  text-align: left;
}
.arkvell-credit .arkvell-credit__label {
  flex: none;
  max-width: 9em;
  padding-inline-end: 12px;
  border-inline-end: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  font: 500 clamp(12px, .75vw, 18px)/1.3 system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.arkvell-credit .arkvell-credit__signature {
  display: block;
  width: clamp(150px, 10vw, 208px);
  height: auto;
}
.arkvell-credit .arkvell-credit__arrow { flex: none; width: 14px; height: 14px; }
a.arkvell-credit:any-link:hover { color: inherit; text-decoration: none; }
.arkvell-credit:hover .arkvell-credit__label { text-decoration: underline; text-underline-offset: .2em; }
a.arkvell-credit:any-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .arkvell-credit__arrow { transition: transform .16s ease-out; }
  .arkvell-credit:hover .arkvell-credit__arrow { transform: translate(2px, -2px); }
}

.arkvell-footer-row > .arkvell-credit { margin-inline-start: auto; }
.arkvell-footer-grid { grid-template-columns: auto minmax(12em, 1fr) auto auto; }
@media (max-width: 1000px) {
  .arkvell-footer-row { flex-wrap: wrap; }
  .arkvell-footer-grid { grid-template-columns: 1fr auto auto; }
  .arkvell-footer-row > .arkvell-credit {
    order: 10;
    grid-column: 1 / -1;
    flex: 0 0 100%;
    width: 100%;
    padding-block-start: 14px;
    border-block-start: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 24%, transparent);
  }
  .arkvell-footer-row .arkvell-credit__label {
    margin-inline-end: auto;
    padding-inline-end: 0;
    border: 0;
  }
}
@media (max-width: 640px) {
  .arkvell-footer-grid { grid-template-columns: 1fr auto; }
}
@media (max-width: 480px) {
  a.arkvell-credit:any-link { gap: 8px; }
  .arkvell-credit .arkvell-credit__label { max-width: 8em; }
}
