.allyspan-plain-footer .footer-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.25rem 1.5rem}
.allyspan-plain-footer .footer-links a{color:inherit;font:inherit;text-decoration:none;padding:.35em .15em}
.allyspan-plain-footer .footer-links a:hover,.allyspan-plain-footer .footer-links a:focus-visible{color:#785816}
@media(max-width:40rem){.allyspan-plain-footer{flex-wrap:wrap;row-gap:.6rem}.allyspan-plain-footer .footer-links{flex-basis:100%;order:1}}
.site-header nav a[data-menu-only]{display:inline-flex;align-items:center;padding:11px 13px;border-radius:999px;white-space:nowrap;font:inherit;color:inherit;text-decoration:none}
.site-header nav a[data-menu-only]:hover{background:rgba(41,77,67,.08)}
@media(max-width:1050px){.site-header nav a[data-menu-only]{padding:10px;font-size:14px}}
footer.allyspan-plain-footer{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;border-top:1px solid #ded8c9}
footer.allyspan-plain-footer>span:last-child{justify-self:end;text-align:end}
footer.allyspan-plain-footer:has(>.footer-links){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
@media(max-width:40rem){footer.allyspan-plain-footer:has(>.footer-links){grid-template-columns:auto minmax(0,1fr)}footer.allyspan-plain-footer>.footer-links{grid-column:1/-1;grid-row:2}}

/* Contrast: small text measured below 4.5:1 on the ivory background (scoped overrides; brand wordmark and large text unchanged) */
footer.allyspan-plain-footer,footer.allyspan-plain-footer span,footer.allyspan-plain-footer a{color:#5e7167}
footer.allyspan-plain-footer .footer-links a:hover,footer.allyspan-plain-footer .footer-links a:focus-visible{color:#785816}
main .eyebrow,main .story-copy .connect-email{color:#856b25}
main .emblem-figure figcaption{color:#5e7167}
body:has(#qrStage) .hint,body:has(#qrStage) .label-line small,body:has(#qrStage) .step-label,body:has(#qrStage) .badge,body:has(#qrStage) .qr-empty,body:has(#qrStage) .intro p{color:#56695f}
body:has(#qrStage) .preview-title,body:has(#qrStage) .result-url,body:has(#qrStage) .privacy{color:#56695f}
main .qr-info p,main .qr-info li{color:#435a50}

/* Hover/focus: the inline global rule forces #92772d!important (about 3.9:1). Darker gold on light backgrounds, same hue; outlines unchanged. */
body footer.allyspan-plain-footer a:hover,body footer.allyspan-plain-footer a:focus-visible,
body main .story-copy .connect-email:hover,body main .story-copy .connect-email:focus-visible,
body .related-resources a:hover,body .related-resources a:focus-visible,
body .qr-info a:hover,body .qr-info a:focus-visible,
body main a[href^="mailto:"]:hover,body main a[href^="mailto:"]:focus-visible{color:#785816!important}
body .site-header nav a:hover,body .site-header nav a:focus-visible,body .site-header nav button:hover,body .site-header nav button:focus-visible,body .site-header .icon-button:hover,body .site-header .icon-button:focus-visible,
body main a.text-link:hover,body main a.text-link:focus-visible,body main a:not([class]):hover,body main a:not([class]):focus-visible{color:#785816!important}
body a.studio-cta:hover,body a.studio-cta:focus-visible{color:#785816!important}
body a.publication-cover:hover,body a.publication-cover:focus-visible{color:#fdfbf5!important}
body a.qr-text-action:hover,body a.qr-text-action:focus-visible{color:#785816!important}
body a.journal-back-link:hover,body a.journal-back-link:focus-visible{color:#785816!important}

/* footer placed after main as a standalone contentinfo landmark: keep the spacing it had inside main */
body>footer.allyspan-plain-footer{box-sizing:border-box;width:calc(100% - 44px);margin:0 auto 40px}
@media(max-width:700px){body>footer.allyspan-plain-footer{margin-bottom:36px}}
main:has(+footer.allyspan-plain-footer){padding-bottom:0}

/* footer shells (other pages): wrapper reuses main layout class so spacing is unchanged */
body .footer-shell{padding-top:0;min-height:0}
body main:has(+.footer-shell){padding-bottom:0;min-height:0}

/* QR Studio FAQ: mobile-only gutters and centered introduction, shared by all locales. */
@media(max-width:760px){
  main.qr-faq-main{box-sizing:border-box;width:100%;max-width:880px;min-width:0;padding:20px 20px 40px;justify-content:flex-start}
  main.qr-faq-main .intro{width:100%;min-width:0;text-align:center;margin:0 auto 24px;overflow-wrap:anywhere}
  main.qr-faq-main .intro .eyebrow{max-width:100%;justify-content:center}
  main.qr-faq-main .intro .eyebrow::before,main.qr-faq-main .intro .eyebrow::after{flex-shrink:0;width:16px}
  main.qr-faq-main .qr-text-action{max-width:100%;white-space:normal;text-align:center}
  main.qr-faq-main .qr-info{width:100%;min-width:0;text-align:start}
  main.qr-faq-main .qr-info summary{padding-inline-start:4px;overflow-wrap:anywhere}
  main.qr-faq-main .qr-info details{padding-block:16px}
  main.qr-faq-main .qr-info .qr-instructions{padding-inline-start:24px;padding-inline-end:0}
}

/* Both QR pages: keep the brand on the viewport centerline, not the flex remainder. */
@media(max-width:760px){
  .page:has(#qrStage) > header,.page:has(main.qr-faq-main) > header{position:relative;justify-content:center;flex:none;margin:0 auto;height:104px}
  .page:has(#qrStage) > header > .brand,.page:has(main.qr-faq-main) > header > .brand{margin:0 auto}
  .page:has(#qrStage) > header > .language-launch,.page:has(main.qr-faq-main) > header > .language-launch{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);margin:0}
  .page:has(#qrStage) > main{padding-top:20px;justify-content:flex-start;min-width:0}
  .page:has(#qrStage) > main .intro{width:100%;min-width:0;overflow-wrap:anywhere}
  .page:has(#qrStage) > main .intro .eyebrow{max-width:100%;justify-content:center}
}

/* Mobile navigation: prevent underlying page text from showing through open menus. */
@media(max-width:760px),(hover:none) and (pointer:coarse){
  body .site-header:has([aria-expanded="true"]),
  body .site-header .nav-panel:not([hidden]){
    background:#fdfbf5!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body .site-header .nav-panel:not([hidden]){
    border-bottom:1px solid #ded8c9;
    box-shadow:0 12px 24px rgba(18,56,47,.08);
  }
}

/* Interior pages share one footer measure, including pages with narrower content wrappers. */
html body footer.allyspan-plain-footer:not(:has(> .footer-links)){
  box-sizing:border-box;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  width:min(1060px,calc(100vw - 40px));
  max-width:none;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:baseline;
  gap:12px;
  margin:32px 0 28px;
  padding:16px 0 0;
  border-top:1px solid #ded8c9;
  font-size:13px;
}
html body footer.allyspan-plain-footer:not(:has(> .footer-links))>span:first-child{
  justify-self:start;
  text-align:left;
}
html body footer.allyspan-plain-footer:not(:has(> .footer-links))>span:last-child{
  justify-self:end;
  text-align:right;
}

/* The footer provides the closing divider after the final content section. */
main.story-main > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

html body footer.allyspan-plain-footer > span:last-child {
  grid-column: -2 / -1;
  justify-self: end;
  text-align: right;
}

body .gold-inline-link, body footer.allyspan-plain-footer .footer-links .gold-inline-link {
  color: #785816 !important;
  text-decoration: none;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (hover: hover) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    body .gold-inline-link:hover,
    body footer.allyspan-plain-footer .footer-links .gold-inline-link:hover,
    body :is(a.apa-reference-link, a.gold-button, a.studio-cta, a.qr-text-action,
      a.publication-action, a.site-wordmark, .story-copy a.connect-email,
      .article-back a.journal-back-link, .poll-jump a):hover {
      background: linear-gradient(110deg, #785816 42%, #a58234 50%, #785816 58%) 100% 0 / 250% 100%;
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: allyspan-link-shimmer 1.6s ease-out;
    }
  }
}
@keyframes allyspan-link-shimmer { to { background-position: -100% 0; } }

.site-header .support-nav-link {
  padding: 11px 13px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .support-nav-link:hover { background: rgba(41,77,67,.08); }
.site-header #search-panel { min-height: auto; }
.site-header .search-results:empty { display: none; }
.site-header #resources-panel ul { gap: 10px; }
.site-header #resources-panel li > a:only-child { display: inline-block; padding-block: 3px; }
.construction-intro { margin-bottom: 28px; }
.construction-image { display: block; width: min(100%, 640px); height: auto; }
.construction-contact { margin-top: 20px; }
.newsletter-form { max-width: 32rem; }
.newsletter-form input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 12px;
  padding: 8px 12px;
  border: 1px solid #889c90;
  border-radius: 8px;
  color: #294d43;
  background: #fffdf8;
  font: inherit;
}
.newsletter-consent { display: flex; align-items: baseline; gap: 8px; }
.newsletter-form button { position: relative; min-height: 44px; padding: 8px 14px; border: 0; background: none; font: inherit; cursor: pointer; }
.newsletter-form button::before, .newsletter-form button::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 8px;
  border: solid #92772d;
  pointer-events: none;
}
.newsletter-form button::before { top: 2px; left: 2px; border-width: 1px 0 0 1px; border-top-left-radius: 8px; }
.newsletter-form button::after { bottom: 2px; right: 2px; border-width: 0 1px 1px 0; border-bottom-right-radius: 8px; }
.newsletter-form button:disabled { opacity: .65; cursor: default; }

.home-emblem-shimmer { position: relative; display: inline-flex; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports (mask-image: url('/assets/emblem.png')) or (-webkit-mask-image: url('/assets/emblem.png')) {
    .home-emblem-shimmer::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      -webkit-mask: url('/assets/emblem.png') center / contain no-repeat;
      mask: url('/assets/emblem.png') center / contain no-repeat;
      background: linear-gradient(112deg, transparent 38%, #fff2be 50%, transparent 62%) 100% 0 / 270% 100%;
      animation: allyspan-emblem-load 1.8s ease-in-out .25s 1 both;
    }
  }
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .site-header .site-wordmark > span {
      animation: allyspan-wordmark-load 1.8s ease-in-out .25s 1;
    }
  }
}
@keyframes allyspan-emblem-load {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
@keyframes allyspan-wordmark-load {
  from, to {
    background-image: linear-gradient(112deg, #92772d 39%, #c5aa65 50%, #92772d 61%);
    background-size: 270% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
