/* A single footer for learner screens, account forms and public articles. */
.pepi-site-footer[data-pepi-footer-kind]{box-sizing:border-box;display:block;clear:both;width:min(100% - 2.5rem,70rem);margin:1.6rem auto 0;padding:.8rem 0 1rem;border:0;border-top:1px solid var(--line,var(--border,#d5cfc6));background:transparent;color:var(--muted,var(--fg-dim,inherit));text-align:start;font:400 max(.84rem, var(--pepi-mobile-type-min, 0px))/1.45 var(--sans,system-ui,sans-serif)}
.pepi-site-footer[data-pepi-footer-kind] nav{display:flex;position:static;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:0 1rem;padding:0;margin:0;border:0;background:transparent;width:auto}
.pepi-footer-more{display:inline-flex;align-items:center;flex-wrap:wrap}
.pepi-footer-more summary{display:inline-flex;align-items:center;min-height:2.6rem;cursor:pointer;list-style:none}
.pepi-footer-more summary::-webkit-details-marker{display:none}
.pepi-footer-more-links{display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 1rem}
.pepi-site-footer[data-pepi-footer-kind] a,.pepi-site-footer[data-pepi-footer-kind] button{display:inline-flex;align-items:center;min-height:2.6rem;padding:0;border:0;background:transparent;color:inherit;text-decoration:none;font:inherit;line-height:1.5;text-align:start;cursor:pointer}
.pepi-footer-last{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:nowrap;margin-top:.15rem;padding-top:.25rem;border-top:1px solid color-mix(in srgb,var(--line,var(--border,#d5cfc6)) 70%,transparent)}
.pepi-footer-actions{display:flex;flex-wrap:wrap;gap:.1rem 1rem}
.pepi-site-footer[data-pepi-footer-kind] .pepi-footer-publisher{flex:none;font-size:max(.72rem, var(--pepi-mobile-type-min, 0px));letter-spacing:.16em}
.pepi-site-footer[data-pepi-footer-kind] :is(button,a):hover{text-decoration:underline;text-underline-offset:.22em}
.pepi-site-footer[data-pepi-footer-kind] :is(button,a):focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
@media(max-width:600px){.pepi-site-footer[data-pepi-footer-kind]{padding-bottom:5rem}.pepi-site-footer[data-pepi-footer-kind] nav{display:grid;grid-template-columns:1fr;gap:.15rem}.pepi-footer-more{display:block}.pepi-footer-more summary{display:flex;min-height:2.75rem}.pepi-footer-more-links{display:flex;flex-direction:column;align-items:stretch;padding-inline-start:.75rem;border-inline-start:1px solid var(--line,var(--border,#d5cfc6))}.pepi-footer-more-links a{min-height:2.75rem}.pepi-footer-last{gap:.6rem;flex-wrap:wrap}.pepi-site-footer[data-pepi-footer-kind] :is(a,button){min-height:2.75rem}}
@media print{.pepi-site-footer[data-pepi-footer-kind]{display:none}}

.pepi-brand-mark,.pepi-ws-brand {zoom:1.25}
.pepi-lockup .pepi-brand-mark,.pepi-brand-mark{display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap;text-decoration:none}
.pepi-brand-mark .pepi-brand-duck{width:2rem;height:2rem;flex:none;object-fit:contain;border-radius:50%}
.scrapbook-copy .pepi-home-descriptor{margin:.75rem 0 1.25rem;font-size:max(.87rem, var(--pepi-mobile-type-min, 0px));font-weight:600;letter-spacing:.06em;color:var(--muted)}
.pepi-footer-signature{display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:0 .85rem;margin-inline-start:auto;min-width:0}
.pepi-site-footer .pepi-footer-signature a{white-space:nowrap}
@media(max-width:540px){.pepi-footer-signature{flex:none;gap:.45rem}.pepi-footer-signature .pepi-footer-domain{font-size:max(.75rem, var(--pepi-mobile-type-min, 0px))}.pepi-footer-actions{min-width:0}.pepi-footer-last{column-gap:.65rem;flex-wrap:wrap}}

header a.pepi-brand-mark {display:inline-flex;align-items:center;gap:.5rem}
header a.pepi-brand-mark > img {width:2rem;height:2rem;flex:none;border-radius:50%}
header a.pepi-brand-mark > span {font:inherit;letter-spacing:inherit;color:inherit;text-transform:none}

/* Match the readable tool-card copy throughout the phone interface. */
@media screen and (max-width: 767px) {
  :root { --pepi-mobile-type-min: max(16px, 1rem); }
  :where(small, button, input, textarea, select) { font-size: max(1em, var(--pepi-mobile-type-min)); }
}

/* This stylesheet reaches the learning frame, full practice screens and public
   pages with an on-demand feedback form. iOS zooms when field text is under 16px. */
@media screen and (max-width: 900px), screen and (any-pointer: coarse) {
  input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file], [type=button], [type=submit], [type=reset], [type=image], [type=hidden]),
  select, textarea, [contenteditable]:not([contenteditable=false]) {
    font-size: max(16px, 1rem, 1em) !important;
  }

  .verb-prompt input {
    font-size: max(27px, 1em) !important;
  }
}
