/* ==========================================================================
   Matinno — WordPress-only styles (loaded after the site stylesheets)
   ========================================================================== */

/* Logged-in admin bar: keep the fixed header below it */
.admin-bar .mt-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .mt-header {
    top: 46px;
  }
}

/* Under 600px the admin bar scrolls away with the page */
@media (max-width: 600px) {
  .admin-bar .mt-header {
    top: 0;
  }

  html.admin-bar {
    margin-top: 0 !important;
  }

  #wpadminbar {
    position: fixed;
  }
}

/* --------------------------------------------------------------------------
   Contact Form 7 — status and validation messages in the site style
   -------------------------------------------------------------------------- */

.wpcf7 .hidden-fields-container {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.wpcf7 form .wpcf7-response-output {
  max-width: 820px;
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--mt-rule);
  font-size: 1.6rem;
  line-height: 2.2rem;
  color: var(--mt-ink);
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
  display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #6f9a7c;
  background: #eef4f0;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--mt-terracotta);
  background: #fbf3ee;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: #b32d2e;
  background: #fbeeee;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
  color: #b32d2e;
}

.wpcf7 form.submitting [type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

.wpcf7-spinner {
  display: none;
}

/* --------------------------------------------------------------------------
   Pages without a generated template (page.php / index.php / 404.php)
   -------------------------------------------------------------------------- */

/* The block rule centres anything narrower than the page; keep the column
   on the title's left edge and narrow its contents instead */
.mt-wp-content > * {
  max-width: 820px;
}

.mt-wp-content > * + * {
  margin-top: 2.2rem;
}

.mt-wp-content h2,
.mt-wp-content h3 {
  margin-top: 4.4rem;
  font-size: 2rem;
  font-weight: 400;
  line-height: 2.4rem;
}

.mt-wp-content img,
.mt-wp-content video,
.mt-wp-content iframe {
  max-width: 100%;
  height: auto;
}

.mt-wp-content a {
  text-decoration-color: var(--mt-terracotta);
  text-underline-offset: 3px;
}

.mt-wp-content ul,
.mt-wp-content ol {
  padding-left: 2rem;
}

.mt-post-list {
  display: grid;
  gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mt-post-list h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 2.4rem;
}

.mt-post-list a {
  text-decoration: none;
}

.mt-post-list time {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.6rem;
  color: var(--mt-ink-soft);
}

/* Claim form: the drag-and-drop upload plugin's box in the site type */
.codedropz-upload-handler {
  border: 1px dashed var(--mt-rule);
  border-radius: 0;
}

.codedropz-upload-inner h3 {
  margin: 0;
  font-family: var(--mt-font);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2.2rem;
  letter-spacing: 0.2px;
}

.codedropz-upload-inner span,
.codedropz-upload-inner .cd-upload-btn {
  font-size: 1.6rem;
  letter-spacing: 0.2px;
}

.codedropz-upload-inner .cd-upload-btn {
  color: var(--mt-ink);
  text-decoration: underline;
  text-decoration-color: var(--mt-terracotta);
  text-underline-offset: 3px;
}

.dnd-upload-counter,
.codedropz-upload-wrapper .dnd-upload-status {
  font-size: 1.4rem;
}
