/* Registration feedback and the small, optional reader initial in the top-right. */
.site-member[hidden], .site-member-details[hidden], .registration-success[hidden], .site-nav-register[hidden],
#popup-email-form[hidden] { display: none !important; }
.site-member { position: relative; flex: 0 0 auto; z-index: 12; }
.site-member-avatar {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 2px solid #b98a4e; border-radius: 50%; background: #1d3048; color: #fff1d8;
  box-shadow: 0 0 0 3px #f3e7d9; cursor: pointer;
  font: 700 17px/1 'DM Sans', Arial, sans-serif;
  transition: transform .18s ease, box-shadow .18s ease;
}
.site-member-avatar:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px #e7c996, 0 5px 15px #33231130; }
.site-member-avatar:focus-visible { outline: 3px solid #9b6b2e; outline-offset: 5px; }
.site-member-details {
  position: absolute; top: calc(100% + 17px); right: 0; z-index: 20;
  width: min(310px, calc(100vw - 34px)); padding: 22px 23px;
  border: 1px solid #bda27e; border-radius: 7px;
  background: #fffaf2; color: #30281f; box-shadow: 0 15px 40px #261c1438;
  text-align: left; font-family: 'DM Sans', Arial, sans-serif;
}
.site-member-kicker { margin: 0 0 11px; color: #a07948; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.site-member-email { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.site-member-note { margin: 10px 0 16px; font-size: 12px; line-height: 1.7; color: #74695d; }
.site-member-change { color: #79582e; font-size: 12px; font-weight: 800; text-underline-offset: 4px; }

.registration-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 0; }
.dialog-content.is-registered > #email-popup-title,
.dialog-content.is-registered > #email-popup-description { display: none; }
.registration-success-icon { width: 102px; margin: 0 0 24px; }
.registration-success-icon svg { width: 100%; height: auto; overflow: visible; }
.registration-success-icon circle, .registration-success-icon path {
  fill: none; stroke: #268851; stroke-linecap: round; stroke-linejoin: round;
}
.registration-success-icon circle { stroke-width: 5; stroke-dasharray: 290; stroke-dashoffset: 290; animation: tof-reg-ring .65s ease-out forwards; }
.registration-success-icon path { stroke-width: 7; stroke-dasharray: 75; stroke-dashoffset: 75; animation: tof-reg-check .46s ease-out .53s forwards; }
.registration-success-kicker { margin: 0 0 11px; font: 800 10px/1.4 'DM Sans', Arial, sans-serif; letter-spacing: .18em; color: #30784c; }
.dialog-content .registration-success h2 { margin: 0 0 12px; font-size: clamp(28px, 3.5vw, 39px); }
.registration-success-copy { max-width: 360px; margin: 0 auto 12px; color: #6e6050; font: 400 14px/1.65 'DM Sans', Arial, sans-serif; }
.registration-success-email { margin: 3px 0 28px; font: 700 12px/1.6 'DM Sans', Arial, sans-serif; color: #267248; overflow-wrap: anywhere; }
.registration-success-action {
  width: 100%; min-height: 55px; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 19px; border: 1px solid #133222; border-radius: 2px; background: #143925;
  color: #fff; font: 800 11px/1.5 'DM Sans', Arial, sans-serif; letter-spacing: .13em; cursor: pointer;
}
.registration-success-action:hover { background: #28653e; }
.registration-success-action:focus-visible { outline: 3px solid #4b9d67; outline-offset: 3px; }
.registration-success-action span { font-size: 19px; }
@keyframes tof-reg-ring { to { stroke-dashoffset: 0; } }
@keyframes tof-reg-check { to { stroke-dashoffset: 0; } }

html[data-theme="dark"] .site-member-avatar { border-color: #d4b17e; box-shadow: 0 0 0 3px #2b241d; }
html[data-theme="dark"] .site-member-details { background: #211e1b; color: #f4e7d3; border-color: #9b7850; }
html[data-theme="dark"] .site-member-note { color: #cfbea7; }
html[data-theme="dark"] .site-member-change { color: #e4c393; }
html[data-theme="dark"] .registration-success-kicker, html[data-theme="dark"] .registration-success-email { color: #85c79d; }
html[data-theme="dark"] .registration-success-copy { color: #d5c6b2; }

@media (max-width: 1040px) and (min-width: 761px) {
  .site-nav-inner { position: relative; }
  .site-member { position: absolute; right: 22px; top: 18px; }
}
@media (max-width: 760px) {
  .site-member { flex: 0 0 41px; }
  .site-member-avatar { width: 41px; height: 41px; font-size: 16px; }
  .site-member-details { right: -1px; top: calc(100% + 16px); }
  .site-nav-logo { max-width: calc(100% - 50px); }
  .registration-success { padding-top: 8px; }
  .registration-success-icon { width: 90px; margin-bottom: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .registration-success-icon circle, .registration-success-icon path { animation: none; stroke-dashoffset: 0; }
  .site-member-avatar { transition: none; }
}
/* Consent is an optional, clearly separated choice on both entry forms. */
.dialog-content .newsletter-optin { display:flex; align-items:center; gap:7px; margin:14px 0; font:500 12px/1.4 var(--sans); letter-spacing:0; white-space:normal; color:var(--text); cursor:pointer; }
.dialog-content .newsletter-optin input { display:block; flex:0 0 14px; margin:0; padding:0; width:14px; height:14px; min-height:0; accent-color:#b68b38; }
@media(max-width:700px) { .dialog-content .newsletter-optin { white-space:normal; } }
