/* Diaspora Talent Online: the WordPress and Fluent Forms parts of the Federal Portal look.
   Loads after site.css (which tools/pages.mjs copies from the preview). Fluent Forms writes its own
   colours inline on submit buttons, so those few declarations carry !important. */

/* ---------- menu set in Appearance > Menus */
.menu .current-menu-item > a,
.menu .current_page_parent > a,
.menu .current-menu-ancestor > a { color: #fff; border-bottom-color: var(--gold); }

/* ---------- core helpers */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip: auto; }

/* ---------- pagination under the news grid */
.navigation.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 600 15px/1 var(--head); text-decoration: none; }
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green-text); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- editor content in the reading column */
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose ol { list-style: decimal; padding-left: 22px; display: grid; gap: 10px; }
.prose h3 { margin-top: 32px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.prose blockquote { padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); font-size: 19px; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .callout > :first-child { margin-top: 0; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 6px; background: var(--green); color: #fff; text-decoration: none; }

/* ---------- Fluent Forms inside a form card (Join, Contact) */
.dto-form .fluentform { font: inherit; color: var(--text); }
.dto-form .fluentform fieldset { min-width: 0; }
.dto-form .fluentform .ff-el-group { margin-bottom: 22px; }
.dto-form .fluentform .ff-t-container { gap: 20px; }
.dto-form .fluentform .ff-el-input--label { margin-bottom: 8px; }
.dto-form .fluentform .ff-el-input--label label { margin: 0; font: 600 14px/1.35 var(--head); color: var(--ink); }
.dto-form .fluentform .ff-el-is-required.asterisk-right label::after { content: " *"; color: #b42318; }
.dto-form .fluentform .ff-el-form-control { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c3cec8; border-radius: 6px;
  background-color: #fff; color: var(--ink); font: 16px/1.4 var(--body); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.dto-form .fluentform .ff-el-form-control:hover { border-color: #93a69c; }
.dto-form .fluentform .ff-el-form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 135, 81, .2); }
.dto-form .fluentform textarea.ff-el-form-control { min-height: 128px; resize: vertical; }
.dto-form .fluentform select.ff-el-form-control { appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008751' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }

/* section breaks become the numbered parts of the form */
.dto-form .fluentform .ff-el-section-break { margin: 36px 0 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.dto-form .fluentform .ff-el-section-break:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.dto-form .fluentform .ff-el-section-title { margin: 0 0 6px; font: 600 19px/1.25 var(--head); color: var(--ink); }
.dto-form .fluentform .ff-section_break_desk { font-size: 15px; color: var(--muted); }
.dto-form .fluentform .ff-el-section-break hr { display: none; }

/* file uploads: the same dashed box and green button as the preview's file fields */
.dto-form .fluentform .ff_file_upload_holder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px; border: 1px dashed #c3cec8; border-radius: 6px; background: var(--bg-soft); }
.dto-form .fluentform .ff_upload_btn.ff-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 4px;
  background: var(--green); color: #fff; font: 600 14px/1 var(--head); cursor: pointer; }
.dto-form .fluentform .ff_upload_btn.ff-btn:hover { background: var(--green-deep); }
.dto-form .fluentform .ff_file_upload_holder:focus-within .ff_upload_btn { outline: 3px solid rgba(0, 135, 81, .35); outline-offset: 2px; }
.dto-form .fluentform .ff-uploaded-list { width: 100%; font-size: 14px; }

/* choices */
.dto-form .fluentform .ff-el-form-check { margin-bottom: 8px; }
.dto-form .fluentform .ff-el-form-check-label { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text); cursor: pointer; }
.dto-form .fluentform .ff-el-form-check-input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }

/* help, errors, success */
.dto-form .fluentform .ff-el-help-message { margin-top: 6px; font-size: 14px; font-style: normal; color: var(--muted); }
.dto-form .fluentform .ff-el-is-error .ff-el-form-control { border-color: #b42318; }
.dto-form .fluentform .error.text-danger,
.dto-form .fluentform .ff-el-is-error .text-danger { margin-top: 6px; font-size: 14px; color: #b42318; }
.dto-form .ff-errors-in-stack { margin-top: 16px; font-size: 14px; color: #b42318; }
.dto-form .ff-message-success { padding: 20px 22px; border: 1px solid #b7d9c5; border-radius: 6px;
  background: var(--green-tint); color: var(--ink); box-shadow: none; }

/* the submit row */
.dto-form .fluentform .ff_submit_btn_wrapper { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.dto-form .fluentform .ff-btn.ff-btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border: 2px solid transparent !important; border-radius: 6px !important; background: var(--green) !important; color: #fff !important;
  font: 600 15px/1 var(--head); cursor: pointer; transition: background-color .2s; }
.dto-form .fluentform .ff-btn.ff-btn-submit:hover { background: var(--green-deep) !important; }
@media (max-width: 640px) {
  .dto-form .fluentform .ff-btn.ff-btn-submit { width: 100%; }
}

/* ---------- the footer newsletter (Fluent form 2) in the shape of .news-form */
.dto-form--news { margin-top: 18px; }
.dto-form--news .fluentform form,
.dto-form--news .fluentform fieldset { display: flex; align-items: flex-start; }
.dto-form--news .fluentform .ff-el-group { margin: 0; }
.dto-form--news .fluentform .ff-el-group:not(.ff_submit_btn_wrapper) { flex: 1; min-width: 0; }
.dto-form--news .fluentform .ff-el-input--label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dto-form--news .fluentform .ff-el-form-control { height: 46px; min-height: 46px; padding: 0 14px; border: 1px solid #36403b; border-right: 0;
  border-radius: 6px 0 0 6px; background: #1d2521; color: #fff; font: 15px var(--body); }
.dto-form--news .fluentform .ff-el-form-control::placeholder { color: #85908a; }
.dto-form--news .fluentform .ff-el-form-control:hover { border-color: #4a5550; }
.dto-form--news .fluentform .ff-el-form-control:focus { border-color: var(--gold); box-shadow: none; }
.dto-form--news .fluentform .ff_submit_btn_wrapper { margin: 0; padding: 0; border: 0; }
.dto-form--news .fluentform .ff-btn.ff-btn-submit { width: auto; min-height: 46px; height: 46px; padding: 0 18px; border: 0 !important;
  border-radius: 0 6px 6px 0 !important; background: var(--gold) !important; color: var(--ink) !important; font: 600 14px/1 var(--head); }
.dto-form--news .fluentform .ff-btn.ff-btn-submit:hover { background: var(--gold-dark) !important; }
.dto-form--news .fluentform .text-danger { margin-top: 6px; font-size: 13px; color: #f1a7a0; }
.dto-form--news .ff-message-success { padding: 12px 14px; border: 1px solid #5a4a1c; border-radius: 6px; background: rgba(230, 176, 33, .1);
  color: #e8ece9; font-size: 14px; }
