/* Shared search follows CFA's paper, navy, serif headings and restrained rules. */
html.cfa-search-open { overflow:hidden; }
#search-dialog.cfa-search-overlay { box-sizing:border-box; width:min(820px,calc(100% - 40px)); max-height:calc(100dvh - 48px); margin:auto; padding:42px 48px; border:0; background:var(--paper,#f8f5ef); color:var(--navy,#17244b); box-shadow:0 24px 100px #0004; }
#search-dialog::backdrop { background:rgb(15 27 50 / 75%); }
.cfa-search-dialog-header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:32px; }
.cfa-search-eyebrow { margin:0 0 16px; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.16em; }
.cfa-search-dialog-header .cfa-search-eyebrow { margin:0; }
.cfa-search-close { display:inline-flex; flex:0 0 44px; align-items:center; justify-content:center; box-sizing:border-box; width:44px; height:44px; min-height:44px; padding:0; border:0; border-radius:0; background:var(--navy,#17244b); color:#fff; font:inherit; font-size:0; cursor:pointer; }
.cfa-search-close span { font-size:28px; line-height:1; }
#cfa-search-title { margin:0 0 36px; font:400 clamp(40px,5vw,66px)/1.06 var(--serif,Crimson,Georgia,serif); letter-spacing:-.03em; }
.cfa-search-form { margin:0; max-width:760px; }
.cfa-search-form label { display:block; margin-bottom:12px; color:inherit; font-size:12px; font-weight:600; }
.cfa-search-input-row { display:flex; border-bottom:1px solid var(--navy,#17244b); gap:16px; }
.cfa-search-form input[type=search] { appearance:none; box-sizing:border-box; width:100%; min-width:0; flex:1; border:0; border-radius:0; background:transparent; color:inherit; padding:16px 0; min-height:54px; font:inherit; font-size:17px; }
.cfa-search-form input::placeholder { color:#626776; opacity:1; }
.cfa-search-form button { flex-shrink:0; display:flex; gap:24px; align-items:center; padding:0 16px; border:0; border-radius:0; background:var(--navy,#17244b); color:#fff; font:inherit; font-size:13px; font-weight:600; cursor:pointer; min-height:48px; }
.cfa-search-form button span { font-size:26px; }
.cfa-search-help { font-size:13px; line-height:1.8; color:#555c6b; margin:22px 0 0; }
.cfa-search-page { background:var(--paper,#f8f5ef); color:var(--navy,#17244b); min-height:60vh; }
.cfa-search-wrap { width:min(1240px,calc(100% - 64px)); margin-inline:auto; }
.cfa-search-intro { padding:72px 0 52px; border-bottom:1px solid rgb(23 36 75 / 16%); }
.cfa-search-intro h1 { font:400 clamp(48px,7vw,96px)/1 var(--serif,Crimson,Georgia,serif); letter-spacing:-.035em; margin:0 0 36px; }
.cfa-search-results { padding-block:44px 80px; }
.cfa-search-results-heading { display:flex; align-items:baseline; justify-content:space-between; gap:24px; margin-bottom:28px; }
.cfa-search-results-heading h2 { font:400 clamp(27px,3vw,38px)/1.2 var(--serif,Crimson,Georgia,serif); margin:0; overflow-wrap:anywhere; }
.cfa-search-results-heading p { font-size:12px; flex-shrink:0; }
.cfa-search-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.cfa-search-card { min-width:0; border:1px solid rgb(23 36 75 / 14%); background:#fffdf8; }
.cfa-search-card > a { display:flex; box-sizing:border-box; flex-direction:column; height:100%; padding:28px; color:inherit; text-decoration:none; }
.cfa-search-card h3 { font:400 30px/1.12 var(--serif,Crimson,Georgia,serif); letter-spacing:-.02em; margin:0 0 18px; overflow-wrap:anywhere; }
.cfa-search-excerpt { font-size:13px; line-height:1.8; color:#4c5262; margin:0 0 24px; }
.cfa-search-card-cta { display:flex; justify-content:space-between; align-items:center; margin-top:auto; border-top:1px solid rgb(23 36 75 / 14%); padding-top:16px; font-size:12px; font-weight:600; }
.cfa-search-card-cta > span { font-size:25px; }
.cfa-search-card a:hover .cfa-search-card-cta { color:#94491f; }
.cfa-search-page .pagination { margin-top:40px; }
.cfa-search-page .nav-links { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.cfa-search-page .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:8px 14px; box-sizing:border-box; border:1px solid rgb(23 36 75 / 25%); color:inherit; text-decoration:none; font-size:13px; }
.cfa-search-page .page-numbers.current { background:var(--navy,#17244b); color:var(--paper,#f8f5ef); }
.cfa-search-empty { padding:24px 0 48px; line-height:1.8; }
.cfa-search-suggestions { display:flex; flex-wrap:wrap; gap:24px; }
.cfa-search-suggestions a { color:inherit; font-size:13px; }
.cfa-search-page a:focus-visible,#search-dialog :focus-visible { outline:3px solid #b87142; outline-offset:4px; }
@media(max-width:960px) { .cfa-search-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { #search-dialog.cfa-search-overlay { padding:24px; width:calc(100% - 28px); } .cfa-search-wrap { width:calc(100% - 36px); } .cfa-search-intro { padding:44px 0 36px; } .cfa-search-grid { grid-template-columns:minmax(0,1fr); gap:18px; } .cfa-search-results-heading { align-items:start; flex-direction:column; gap:8px; } .cfa-search-input-row { gap:8px; } .cfa-search-form input[type=search] { font-size:16px; } .cfa-search-form button { gap:8px; } }

/* Keep card copy calm on hover; the existing Explore color shift is the cue. */
.cfa-search-page .cfa-search-card > a:hover,
.cfa-search-page .cfa-search-card > a:focus-visible { text-decoration:none; }
