/* Shared header actions; keep the theme and content of each page intact. */
.masthead .header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.masthead .header-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; border: 1px solid #c5a46d; border-radius: 0;
  font: 12px var(--body); letter-spacing: .025em; cursor: pointer;
}
.masthead .search-toggle { width: 48px; padding: 12px; color: inherit; background: transparent; }
.masthead .search-toggle svg { width: 21px; height: 21px; }
.masthead .donate-toggle { padding: 13px 20px; background: #c5a46d; color: #173b32; white-space: nowrap; }
.masthead .header-action:hover { background: #ede6d8; color: #173b32; }
.masthead .brand { flex-shrink: 0; }
.masthead .navtoggle { flex-shrink: 0; margin-left: auto; }
.site-dialog {
  width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: clamp(22px, 4vw, 40px); border: 1px solid #c5a46d;
  background: #fafaf7; color: #173b32; overflow-y: auto;
  font: 15px/1.7 var(--body); overscroll-behavior: contain;
}
.site-dialog::backdrop { background: rgba(10, 32, 27, .78); }
body:has(.site-dialog[open]) { overflow: hidden; }
.site-dialog .dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 22px; }
.site-dialog h2 { font: 600 clamp(28px, 5vw, 38px)/1.2 var(--display); margin: 0; }
.site-dialog .dialog-close { flex: none; min-height: 44px; padding: 8px 12px; border: 1px solid #173b32; background: transparent; color: inherit; font: 12px var(--body); cursor: pointer; }
.site-dialog label { display: block; margin-bottom: 8px; }
.site-dialog input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #173b32; border-radius: 0; background: white; color: #173b32; font: 16px var(--body); }
.site-dialog .search-status { font-size: 14px; margin-block: 18px; }
.site-dialog .search-results { list-style: none; padding: 0; margin: 0; }
.site-dialog .search-results li { border-top: 1px solid #173b322e; padding-block: 18px; }
.site-dialog .search-results a { font: 600 23px/1.3 var(--display); color: #173b32; }
.site-dialog .search-results p { margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.site-dialog .contact-link { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 22px; background: #c5a46d; color: #173b32; font: 12px var(--body); text-decoration: none; }
@media (min-width: 1801px) {
  .masthead .wrap { max-width: 1800px; }
}
@media (max-width: 1800px) {
  .masthead .navtoggle { display: block; }
  .masthead .nav { display: none; position: absolute; inset: 100% 0 auto; padding: 12px 20px 20px; max-height: 70vh; overflow-y: auto; background: var(--soil-2); border-top: 1px solid var(--line); }
  .masthead .nav.open { display: block; }
  .masthead .nav ul { flex-direction: column; }
  .masthead .nav a, .masthead .nav .sub-btn { width: 100%; text-align: left; white-space: normal; padding: 13px 12px; }
  .home .masthead .nav, .home.masthead .nav { background: var(--salt); }
  .masthead .nav .sub { position: static; display: none; min-width: 0; margin-left: 12px; box-shadow: none; border: 0; border-left: 1px solid #c5a46d; background: transparent; }
  .masthead .nav li.open .sub { display: flex; }
}
@media (max-width: 760px) {
  .masthead .wrap { flex-wrap: wrap; padding-block: 14px; gap: 12px; }
  .masthead .brand { max-width: calc(100% - 72px); min-width: 0; }
  .masthead .brand-txt { min-width: 0; overflow-wrap: normal; }
  .masthead .header-actions { width: 100%; justify-content: flex-end; }
}
