/* Interior pages keep the homepage's quiet paper and ink, with a smaller task bar. */
.internal-page .product-header { width: min(78rem, calc(100% - 64px)); padding: calc(24px + var(--safe-top)) 0 0; }
.internal-page .product-header.with-search { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 26px; }
.with-search .small-wordmark { grid-column: 1; grid-row: 1; width: 150px; }
.with-search .header-actions { grid-column: 3; grid-row: 1; margin: 0; gap: 8px; }
.with-search .compact-search { grid-column: 2; grid-row: 1; margin: 0; max-width: 42rem; }
.internal-page .compact-search .search-row { min-height: 54px; box-shadow: 0 2px 8px var(--shadow); }
.internal-page .compact-search .input-wrap { gap: 8px; }
.internal-page .compact-search .search-submit { min-height: 44px; width: 5rem; font-size: .9375rem; }
.internal-page .page-shell { margin-top: 64px; }
.internal-page .directory-shell { max-width: 46rem; margin-top: 46px; }
.directory-controls { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; border-bottom: 1px solid var(--divider); }
.directory-controls .filter-details { display: contents; }
.directory-controls .filter-toggle { grid-column: 1; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 0; color: var(--secondary); font-size: .9375rem; cursor: pointer; list-style: none; }
.directory-controls .filter-toggle::-webkit-details-marker { display: none; }
.directory-controls .filter-toggle:hover, .directory-controls .filter-details[open] .filter-toggle { color: var(--ink); }
.directory-controls .filter-form { grid-column: 1 / -1; grid-row: 2; margin: 12px 0 20px; }
.directory-controls .filter-details:not([open]) > .filter-form { display: none; }
.directory-shell .results-summary { font-size: .8125rem; margin: 0 0 3px; min-height: 28px; }
.directory-shell .search-match { margin: 12px 0; overflow-wrap: anywhere; }
.directory-shell .active-filter-summary { text-align: right; overflow-wrap: anywhere; }
.directory-shell .active-filter-summary a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 10px; }
.directory-shell .result-row { border-top: 0; border-bottom: 1px solid var(--divider); padding: 23px 0; }
.directory-shell .result-link { align-items: center; gap: 28px; }
.directory-shell .result-copy { min-width: 0; }
.giving-results .result-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; }
.giving-results .result-link { display: inline-block; text-decoration: none; }
.giving-results .result-link:hover .result-name { text-decoration: underline; }
.giving-results .result-purpose { margin: 9px 0 0; font-size: .9375rem; line-height: 1.45; }
.giving-results .result-destination { display: block; margin-top: 6px; font-size: .75rem; color: var(--secondary); overflow-wrap: anywhere; }
.giving-results .result-give { gap: 8px; min-width: 82px; padding: 9px 16px; }
.giving-results .result-details { font-size: .875rem; gap: 7px; }
.directory-shell .result-name { margin: 0 0 5px; font-size: 1.1875rem; line-height: 1.3; }
.directory-shell .result-meta { margin: 0; font-size: .875rem; }
.directory-shell .result-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 7px; font-size: .9375rem; line-height: 1.5; }
.directory-shell .row-arrow { margin: 0; }
.directory-shell .pagination { border-top: 0; padding-top: 26px; }
.directory-shell .coverage-note { border-top: 0; margin-top: 20px; padding: 0; }
.internal-page .giving-welcome { margin-top: clamp(96px, 18vh, 180px); max-width: 30rem; text-align: center; }
.giving-welcome .page-title { font-size: clamp(2rem, 4vw, 2.4rem); font-weight: 600; }
.giving-welcome .page-lead { margin: 12px auto 0; }
.giving-welcome .page-heading { margin-bottom: 26px; }
.giving-welcome .primary-button { min-width: 104px; }
.external-giving-note { margin-top: 28px; }
.internal-page .signin-shell { max-width: 26rem; margin-top: clamp(72px, 12vh, 130px); }
.signin-shell .page-lead { margin-top: 12px; }
.signin-shell .page-heading { margin-bottom: 32px; }
.auth-panel .stack-form { gap: 16px; }
.auth-panel .stack-form .primary-button { align-self: stretch; }
.signin-shell .auth-note { margin-top: 24px; text-align: center; }
.social-signin { display: flex; flex-direction: column; gap: 12px; }
.social-signin-button { width: 100%; border: 1px solid var(--divider); background: var(--field); font-weight: 400; }
.social-signin .form-status:empty { display: none; }
.social-signin .tiny { margin: 0; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 16px; color: var(--secondary); font-size: .8125rem; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--divider); flex: 1; }
.signin-shell .legal-links { justify-content: center; gap: 22px; margin-top: 8px; }
.internal-page .article-copy { max-width: 40rem; line-height: 1.65; }
.internal-page .article-copy h2 { font-size: 1.125rem; margin-top: 34px; }
.internal-page .info-details > summary { display: flex; align-items: center; gap: 12px; font-weight: 400; list-style: none; }
.internal-page .info-details > summary::-webkit-details-marker { display: none; }
.internal-page .info-details > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 3px 0 auto; flex-shrink: 0; }
.internal-page .info-details[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.internal-page .info-details > summary:hover { color: var(--secondary); }
.ask-page .ai-form { gap: 16px; }
.ask-page .ai-form textarea { min-height: 116px; }
.ask-page .ai-processing-note { margin: 0; }
.ask-page .ai-processing-note .text-link { display: inline; min-height: 0; }
.ask-page .ai-form .form-status:empty { display: none; }
.ask-page .ai-examples { margin-top: 30px; }
.ask-page .prompt-examples { margin: 0 0 20px; }
.ask-page .ai-caution { margin: 22px 0; }
.ask-page .ai-search-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
.admin-page .workspace-links { margin-bottom: 26px; }
.admin-page [data-admin-status] { margin-bottom: 28px; }
.admin-page .admin-section > summary { min-height: 64px; }
.admin-page .admin-count { color: var(--secondary); font-size: .8125rem; margin-left: auto; white-space: nowrap; }
.admin-page .admin-section > summary:has(.admin-count)::after { margin-left: 4px; }
.admin-page .admin-section .result-row { padding: 14px 0 20px; border-top: 0; border-bottom: 1px solid var(--divider); }
.admin-page .admin-record-field { overflow-wrap: anywhere; margin: 0 0 8px; }
.admin-page .admin-service-list { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px 24px; font-size: .9375rem; margin: 8px 0 28px; }
.admin-page .admin-service-list dd { margin: 0; color: var(--secondary); text-align: right; }
.admin-page [data-admin-editor] { border: 0; border-radius: 0; border-top: 1px solid var(--divider); padding: 28px 0 0; margin-top: 36px; background: transparent; }
.admin-page [data-admin-editor] form, .admin-page .admin-section form { margin: 14px 0 28px; }
.admin-page .stack-form { gap: 12px; }
.admin-page .stack-form .field-label { font-weight: 400; margin-top: 8px; }
.admin-page .stack-form :is(.primary-button,.secondary-button) { align-self: flex-start; }
.admin-page .checkbox-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
.admin-page .stack-form .checkbox-row input { width: 18px; min-height: 18px; height: 18px; flex-shrink: 0; padding: 0; margin-top: 3px; }
.admin-page #mfa-code { max-width: 16rem; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.internal-page .giving-form label:not(.check-label) { font-weight: 400; }
.support-request .stack-form { padding: 8px 0 28px; }
.internal-page [data-give].paper-panel { border: 0; border-radius: 0; padding: 0; background: transparent; }
@media (max-width: 1199px) {
  .internal-page .compact-search .desktop-tools { display: none; }
  .internal-page .compact-search .mobile-tools { display: flex; }
}
@media (max-width: 959px) {
  .internal-page .product-header.with-search { grid-template-columns: 150px 1fr; row-gap: 20px; }
  .with-search .header-actions { grid-column: 2; justify-self: end; }
  .with-search .compact-search { grid-column: 1 / -1; grid-row: 2; max-width: 46rem; justify-self: center; }
  .internal-page .directory-shell { margin-top: 26px; }
}
@media (max-width: 600px) {
  .internal-page .product-header { width: calc(100% - 32px); padding: calc(16px + var(--safe-top)) 0 0; }
  .internal-page .product-header.with-search { grid-template-columns: 130px minmax(0, 1fr); gap: 16px 8px; }
  .with-search .small-wordmark { width: 130px; }
  .with-search .header-actions { gap: 0; }
  .internal-page .product-header .compact-search { margin: 0; }
  .internal-page .compact-search .search-submit { width: 4.5rem; }
  .internal-page .page-shell { margin-top: 40px; }
  .internal-page .directory-shell { margin-top: 18px; }
  .directory-controls .filter-toggle { font-size: .875rem; }
  .directory-controls .filter-toggle { gap: 5px; }
  .directory-shell .result-row { padding: 22px 0; }
  .directory-shell .result-name { font-size: 1.125rem; }
  .directory-shell .result-link { gap: 16px; }
  .giving-results .result-row { gap: 14px; }
  .giving-results .result-give { min-width: 74px; padding: 9px 12px; }
  .directory-shell .results-summary { gap: 8px; }
  .internal-page .giving-welcome { margin-top: 100px; }
  .internal-page .signin-shell { margin-top: 64px; }
}
@media (max-width: 359px) {
  .directory-controls .filter-toggle svg { display: none; }
}
