/* Local trial: retain the WordPress theme styles and make the shared navigation usable. */
#navbutton {
  border: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 142, 160, .25);
}
#navbutton:focus-visible {
  outline: 2px solid #ff8ea0;
  outline-offset: 8px;
  border-radius: 3px;
}
body.home { padding-top: 0; }
body:not(.home) { padding-top: 96px; }
.article-content .portable-text { line-height: 1.8; }
/* WordPress resets list padding; preserve its 2rem margin without the browser's extra 40px at every nesting level. */
.article-content .portable-text ul, .article-content .portable-text ol { padding-inline-start: 0; }
.prototype-note { max-width: 970px; margin: 1rem auto; padding: .8rem 1rem; background: #fff5eb; border-left: 4px solid #ff8ea0; font-size: .9rem; }
.contact { padding-bottom: 4rem; }
.contact .prototype-note { line-height: 1.7; }
.contact .prototype-note a { color: #b24d61; text-underline-offset: .15em; }
.contact-form { max-width: 680px; margin: 2rem auto; text-align: center; }
.contact-form label { display: block; margin: 0 0 1.5rem; font-weight: bold; }
.contact-form .contact-hp { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 90%;
  margin: .5rem auto 0;
  padding: 1rem;
  border: 1px solid #ffc4a6;
  border-radius: 0;
  background: #fff;
  color: #666;
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { min-height: 12rem; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid #ff8ea0; outline-offset: 2px; }
.contact-form button { width: min(90%, 25rem); border: 0; padding: 1rem 2rem; background: #ffc4a6; color: #fff; font: inherit; font-weight: bold; }
.contact-form button:disabled { opacity: .7; cursor: not-allowed; }
.contact-form .cf-turnstile { display: flex; justify-content: center; margin: 0 auto 1.5rem; }
.contact-form #contact-status { min-height: 1.5em; margin: 1rem auto; }
@media (max-width: 800px) { #header-nav-wrap.opened { display: block; } }

/* Keep the footer after variable-height article content on non-home pages. */
body:not(.home) {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
body:not(.home) > .footer {
  position: static;
  margin-top: auto;
  flex-shrink: 0;
}
@media (max-width: 800px) {
  body:not(.home) { padding-top: 54px; }
}

/* Preserve the original article image sizing while Portable Text owns the body. */
.article-content .portable-text .imported-image { margin: 0 0 2rem; max-width: 100%; }
.article-content .portable-text .imported-image img { display: block; max-width: 100%; height: auto; margin: 0; }
.article-content .portable-text .imported-table { max-width: 100%; overflow-x: auto; }
.article-content .portable-text .imported-table.is-style-stripes tbody tr:nth-child(odd) { background-color: #ffc4a61d; }
