/* Publication polish. Preserve the approved composition and artwork. */
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-text-button, .inline-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .language-picker { min-width: 70px; }
.application-privacy { margin-top: 18px; color: #666e72; font-size: 12px; line-height: 1.6; }
.access-dialog .application-privacy { font-size: 12px; }
#application-feedback { padding: 16px 18px; border-radius: 12px; background: #eff4ee; color: #304a34; font-size: 15px; line-height: 1.5; }
#application-feedback[data-state="error"] { background: #fbf0ee; color: #8b3431; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#application-form [disabled] { cursor: wait; opacity: .65; }
.privacy-dialog p { font-size: 16px; line-height: 1.65; }
.privacy-dialog .privacy-note { font-size: 13px; color: #72797c; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid #6888a2; outline-offset: 5px; }
@media(max-width:680px) {
  .story-footer { padding-bottom: 22px; }
  .story-footer:before {
    background: linear-gradient(#fafbf8f5, #f9faf7c7 30%, #e4e7ed33 65%, #edf0f4ed);
  }
  .story-footer .footer-name { margin-bottom: 36px; }
  .story-footer .footer-bottom {
    position: relative;
    bottom: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-top: 0;
    border-top: 0;
    text-shadow: none;
  }
  .footer-links {
    flex-wrap: nowrap;
    gap: 18px;
  }
  .footer-links > a, .footer-text-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
  }
  .footer-bottom .language-picker { min-height: 44px; }
  .footer-links .footer-back-top { display: none; }
}

.access-chapter small { color: #636b61; font-size: 12px; line-height: 1.6; }
.access-chapter p { color: #626a60; }
.footer-bottom, .footer-bottom a, .footer-text-button { font-size: 12px; }

/* These two dialogs are single articles; do not inherit the old split art/form grid. */
#application-dialog[open], #privacy-dialog[open] { display: block; }
#application-dialog, #privacy-dialog { padding: 58px 48px 40px; }
#application-dialog .dialog-close, #privacy-dialog .dialog-close {
  position: absolute; top: 16px; right: 16px; float: none; margin: 0;
  width: 36px; height: 36px; color: #4d5750;
}
#application-dialog .eyebrow, #privacy-dialog .eyebrow { display: block; margin-bottom: 18px; color: #626a60; }
#application-dialog > p, #privacy-dialog > p { color: #626a60; font-size: 15px; line-height: 1.6; }
#privacy-dialog > p + p { margin-top: 18px; }
#application-form input, #application-form textarea { font-size: 16px; }
@media(max-width:680px) {
  #application-dialog, #privacy-dialog { padding: 58px 24px 30px; }
  #application-dialog .dialog-close, #privacy-dialog .dialog-close { top: 14px; right: 14px; }
  #application-form .button { width: 100%; }
}
