/* Search and accession profiles, using the existing YamHub visual language. */
.yh-search-page { background:#fff; }
.yh-search-page .navbar-brand { max-width:170px; }
.yh-search-page .navbar-brand img { width:100%; height:auto; }
.yh-search { --search-green:#1b5e20; --search-title:#28a745; --search-soft:#f0f6ee; --search-line:#dce4d9; color:#555; font:400 16px/1.65 "Roboto",sans-serif; }
.yh-search *, .yh-search *::before, .yh-search *::after { box-sizing:border-box; }
.yh-search-shell { width:calc(100% - 3rem); max-width:1200px; margin:0 auto; }
.yh-search :is(h1,h2,h3) { font-family:"Poppins",sans-serif; font-weight:500; line-height:1.28; letter-spacing:normal; }
.yh-search h1 { margin:.4rem 0 1rem; color:var(--search-title); font-size:clamp(2rem,4vw,3rem); }
.yh-search h2 { color:var(--search-title); font-size:clamp(1.45rem,2.4vw,2rem); margin:0; }
.yh-search h3 { color:#222; font-size:1.1rem; }
.yh-search a { color:var(--search-green); }
.yh-search :is(a,button,input,select,summary):focus-visible { outline:3px solid #28a745; outline-offset:3px; }
.yh-search-hero { padding:3.3rem 0 3rem; background:var(--search-soft); border-bottom:1px solid var(--search-line); }
.yh-search-eyebrow { margin:0 0 .45rem; color:var(--search-green); font-size:.8rem; font-weight:700; letter-spacing:.09em; }
.yh-search-lead { max-width:810px; margin:0; font-size:1.125rem; line-height:1.7; }
.yh-search-content { padding:2.6rem 0 3.2rem; }
.yh-search-tool { padding:1.6rem 1.8rem; border:1px solid var(--search-line); border-top:4px solid #28a745; background:#fff; border-radius:.3rem; box-shadow:0 4px 18px rgba(27,94,32,.035); }
.yh-search-section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.2rem; }
.yh-search-section-heading > a { font-size:.9rem; font-weight:500; text-align:right; }
.yh-search-form { display:grid; grid-template-columns:minmax(200px,1.55fr) minmax(160px,1fr) minmax(160px,1fr) auto; gap:1rem; align-items:end; }
.yh-search-form label { display:block; margin-bottom:.45rem; color:#333; font-size:.9rem; font-weight:600; }
.yh-search-form :is(input[type=search],select) { width:100%; min-height:47px; height:47px; margin:0; padding:.65rem .8rem; border:1px solid #cbd6c8; border-radius:.25rem; background:#fff; color:#333; text-align:left; font:400 .95rem "Roboto",sans-serif; }
.yh-search-form select { padding-right:1.6rem; }
.yh-search .yh-search-button, .yh-search .yh-search-link-button { display:inline-flex; align-items:center; justify-content:center; gap:.65rem; min-height:44px; padding:.65rem 1rem; border:1px solid var(--search-green); border-radius:.25rem; background:var(--search-green); color:#fff; font:500 .9rem/1.5 "Roboto",sans-serif; text-decoration:none; cursor:pointer; }
.yh-search-form .yh-search-button { min-height:47px; }
.yh-search .yh-search-button:hover { background:#134719; border-color:#134719; color:#fff; }
.yh-search .yh-search-link-button { color:var(--search-green); background:#fff; }
.yh-search .yh-search-link-button:hover { background:var(--search-soft); }
.yh-search-form-help { display:flex; align-items:baseline; gap:1.5rem; justify-content:space-between; margin:.9rem 0 0; font-size:.84rem; line-height:1.6; }
.yh-search-form-help p { margin:0; max-width:910px; }
.yh-search-form-help > a { white-space:nowrap; text-decoration:underline; }
.yh-search-results { margin-top:2.6rem; }
.yh-search-total { display:inline-block; padding:.15rem .65rem; margin-left:.4rem; border-radius:1rem; color:var(--search-green); background:var(--search-soft); font:600 1rem/1.5 "Roboto",sans-serif; vertical-align:middle; }
.yh-search-note { margin:0 0 1.3rem; color:#666; font-size:.88rem; line-height:1.65; }
.yh-search-table-wrap { overflow-x:auto; border:1px solid var(--search-line); border-radius:.3rem; }
.yh-search table { width:100%; margin:0; border-collapse:collapse; text-align:left; color:#555; font-size:.9rem; }
.yh-search thead { color:var(--search-green); background:var(--search-soft); }
.yh-search :is(th,td) { padding:.85rem 1rem; border-bottom:1px solid #e8eee6; vertical-align:middle; line-height:1.5; }
.yh-search th { font-weight:600; }
.yh-search tbody tr:last-child :is(th,td) { border-bottom:0; }
.yh-search tbody tr:nth-child(even) { background:#fbfcfa; }
.yh-search-results-table tbody tr:hover { background:#f0f6ee; }
.yh-search-results-table { min-width:720px; }
.yh-search-results-table th:first-child { width:24%; }
.yh-search-results-table th a { display:inline-block; font-weight:600; text-decoration:underline; text-decoration-color:#c3d8bf; text-underline-offset:3px; }
.yh-search-row-id { display:block; margin-top:.15rem; color:#7a8576; font-size:.73rem; font-weight:400; }
.yh-search .yh-search-open { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid #d5e0d1; border-radius:50%; font-size:1.2rem; line-height:1; text-decoration:none; }
.yh-search .yh-search-open:hover { background:#1b5e20; color:white; }
.yh-search-missing { color:#90968d; }
.yh-search-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 0 0; font-size:.85rem; }
.yh-search-pagination[hidden] { display:none; }
.yh-search-pagination label { display:flex; align-items:center; gap:.5rem; margin:0; }
.yh-search-pagination select { border:1px solid #cbd6c8; border-radius:.25rem; min-height:35px; padding:.2rem .4rem; background:#fff; color:#333; }
.yh-search-pagination p { margin:0; }
.yh-search-pagination button { border:1px solid #d2decf; border-radius:.25rem; background:#fff; color:var(--search-green); min-height:36px; padding:.3rem .8rem; cursor:pointer; }
.yh-search-pagination button + button { margin-left:.5rem; }
.yh-search-pagination button:hover:not(:disabled) { background:var(--search-soft); }
.yh-search-pagination button:disabled { opacity:.45; cursor:default; }
.yh-search-message, .yh-search-empty { padding:2.5rem; margin:2rem 0 0; background:var(--search-soft); border:1px solid var(--search-line); border-radius:.3rem; text-align:center; }
.yh-search-empty > i { color:#7f9d77; font-size:2rem; margin-bottom:1rem; }
.yh-search-message h2, .yh-search-empty h3 { margin:0 0 .75rem; }
.yh-search-message p, .yh-search-empty p { margin:0 0 1rem; }
.yh-search-profile { margin-top:2.6rem; }
.yh-search-profile-heading { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin-bottom:1.6rem; }
.yh-search-profile-heading h2 { margin:.25rem 0 .65rem; font-size:clamp(1.8rem,3vw,2.4rem); overflow-wrap:anywhere; }
.yh-search-profile-heading p:last-child { margin:0; font-size:.95rem; }
.yh-search-dot { margin:0 .7rem; color:#879782; }
.yh-search-profile-actions { display:flex; gap:.7rem; flex-shrink:0; }
.yh-search-profile-layout { display:grid; grid-template-columns:minmax(230px, .75fr) minmax(0,2fr); align-items:start; gap:1.6rem; }
.yh-search-identity { border:1px solid var(--search-line); border-radius:.3rem; overflow:hidden; background:#fff; }
.yh-search-profile-photo { display:block; background:var(--search-soft); }
.yh-search-profile-photo img { display:block; width:100%; height:245px; object-fit:contain; }
.yh-search-identity-copy { padding:1.3rem; }
.yh-search-identity-copy h3 { color:var(--search-green); margin:0 0 .9rem; }
.yh-search-identity dl { margin:0; }
.yh-search-identity dl > div { padding:.55rem 0; border-top:1px solid #e9eee6; }
.yh-search-identity dt { font-weight:400; font-size:.8rem; color:#777; }
.yh-search-identity dd { margin:0; color:#333; overflow-wrap:anywhere; font-size:.95rem; }
.yh-search-identity details { margin-top:1rem; border-top:1px solid var(--search-line); padding-top:1rem; font-size:.83rem; }
.yh-search-identity summary { color:var(--search-green); font-weight:500; cursor:pointer; }
.yh-search-identity details p { margin:.7rem 0 0; }
.yh-search-record { min-width:0; border:1px solid var(--search-line); border-radius:.3rem; overflow:hidden; }
.yh-search .yh-search-tabs { display:flex; flex-wrap:wrap; padding:.5rem .65rem 0; border:0; border-bottom:1px solid var(--search-line); background:var(--search-soft); gap:.2rem; }
.yh-search .yh-search-tabs .nav-item { margin-bottom:-1px; }
.yh-search .yh-search-tabs .nav-link { margin:0; padding:.85rem .95rem; border:1px solid transparent; border-bottom:3px solid transparent; border-radius:0; color:#45623e; font:500 .9rem/1.5 "Roboto",sans-serif; background:transparent; }
.yh-search .yh-search-tabs .nav-link.active { border-bottom-color:#28a745; background:#fff; color:#1b5e20; }
.yh-search .yh-search-tabs .nav-link:hover { color:#1b5e20; background:#fff; }
.yh-search-count { display:inline-flex; justify-content:center; min-width:21px; padding:0 .35rem; margin-left:.2rem; color:#1b5e20; background:#e2edde; border-radius:10px; font-size:.73rem; }
.yh-search-tab-content { padding:1.5rem; }
.yh-search .yh-search-tab-title { margin:0 0 .65rem; font-size:1.15rem; color:#333; }
.yh-search-photo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.yh-search-photo-card { display:block; min-width:0; border:1px solid var(--search-line); border-radius:.25rem; overflow:hidden; background:#f5f7f3; text-decoration:none; }
.yh-search-photo-card img { display:block; width:100%; height:220px; object-fit:contain; transition:transform .2s ease; }
.yh-search-photo-card:hover img { transform:scale(1.02); }
.yh-search-photo-card > span { display:flex; align-items:center; justify-content:space-between; gap:.5rem; min-height:51px; padding:.7rem .85rem; border-top:1px solid var(--search-line); background:white; color:#1b5e20; font-size:.83rem; font-weight:500; }
.yh-search-photo-card > span i { font-size:.73rem; opacity:.65; }
.yh-search-photo-missing > div { min-height:220px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#8a9785; font-size:.85rem; }
.yh-search-photo-missing > div > i { font-size:2rem; margin-bottom:.6rem; }
.yh-search-photo-missing p { margin:0; }
.yh-search-inline-link { margin:1.4rem 0 0; font-size:.88rem; }
.yh-search-passport { margin:1.1rem 0 1.3rem; }
.yh-search-passport > div { display:grid; grid-template-columns:minmax(140px,.8fr) minmax(0,1fr); gap:1rem; padding:.85rem 0; border-bottom:1px solid #e3eade; }
.yh-search-passport dt { color:#666; font-size:.88rem; font-weight:400; }
.yh-search-passport dd { margin:0; color:#333; font-size:.95rem; overflow-wrap:anywhere; }
.yh-search-traits-table th { max-width:360px; width:62%; overflow-wrap:anywhere; }
.yh-search-trait-code { display:block; margin-top:.15rem; color:#7a8576; font-size:.73rem; font-weight:400; }
.yh-search-traits-table td { overflow-wrap:anywhere; }
.yh-search-pdf { display:block; width:100%; min-height:580px; border:1px solid var(--search-line); background:#f5f7f4; }
.yh-search-empty-sheet { padding:2rem 1rem; text-align:center; background:var(--search-soft); border-radius:.25rem; }
.yh-search-empty-sheet > i { margin-bottom:1rem; color:#7f9d77; font-size:2rem; }
.yh-search-empty-sheet p { max-width:500px; margin:0 auto; font-size:.95rem; }
.yh-search-explore { display:grid; grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr)); gap:1.2rem; align-items:center; margin-top:3rem; padding-top:2.2rem; border-top:1px solid var(--search-line); }
.yh-search-explore h2 { font-size:1.35rem; }
.yh-search-explore p { margin:.6rem 0 0; font-size:.9rem; }
.yh-search-explore > a { display:flex; align-items:center; gap:.8rem; padding:1.2rem; min-height:83px; background:var(--search-soft); border:1px solid var(--search-line); border-radius:.3rem; font-size:.9rem; font-weight:500; text-decoration:none; }
.yh-search-explore > a > i { font-size:1.3rem; color:#4b8c42; }
.yh-search-explore > a > span:last-child { margin-left:auto; }
.yh-search-explore > a:hover { border-color:#86b17d; }
.yh-search [hidden] { display:none !important; }
@media (max-width:1100px) {
    .yh-search-form { grid-template-columns:minmax(200px,1.5fr) minmax(160px,1fr) minmax(150px,1fr); }
    .yh-search-form > button { grid-column:1/-1; justify-self:start; }
    .yh-search-profile-layout { grid-template-columns:minmax(210px,.7fr) minmax(0,1.7fr); gap:1.1rem; }
    .yh-search .yh-search-tabs .nav-link { padding:.8rem .65rem; font-size:.84rem; }
    .yh-search-photo-card img, .yh-search-photo-missing > div { height:180px; min-height:180px; }
}
@media (max-width:800px) {
    .yh-search-shell { width:calc(100% - 2rem); }
    .yh-search-hero { padding:2.3rem 0; }
    .yh-search-tool { padding:1.3rem; }
    .yh-search-section-heading { align-items:flex-start; flex-direction:column; gap:.7rem; }
    .yh-search-section-heading > a { text-align:left; }
    .yh-search-form { grid-template-columns:1fr 1fr; }
    .yh-search-term { grid-column:1/-1; }
    .yh-search-profile-heading { align-items:flex-start; flex-direction:column; }
    .yh-search-profile-layout { grid-template-columns:1fr; }
    .yh-search-identity { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(0,1fr); }
    .yh-search-profile-photo { height:100%; }
    .yh-search-profile-photo img { height:100%; max-height:330px; min-height:240px; }
    .yh-search-explore { grid-template-columns:1fr 1fr; }
    .yh-search-explore > div { grid-column:1/-1; }
}
@media (max-width:480px) {
    .yh-search h1 { font-size:2rem; }
    .yh-search-lead { font-size:1rem; }
    .yh-search-content { padding-top:1.5rem; }
    .yh-search-tool { padding:1rem; }
    .yh-search-form { grid-template-columns:1fr; }
    .yh-search-term { grid-column:auto; }
    .yh-search-form > button { width:100%; }
    .yh-search-form-help { align-items:flex-start; flex-direction:column; gap:.5rem; }
    .yh-search-identity { display:block; }
    .yh-search-profile-photo img { height:230px; min-height:0; }
    .yh-search-profile-actions { flex-wrap:wrap; }
    .yh-search .yh-search-tabs { padding:.4rem .3rem 0; }
    .yh-search .yh-search-tabs .nav-link { padding:.7rem .55rem; font-size:.78rem; }
    .yh-search-tab-content { padding:1rem; }
    .yh-search-photo-grid { gap:.7rem; }
    .yh-search-photo-card img, .yh-search-photo-missing > div { height:145px; min-height:145px; }
    .yh-search-photo-card > span { padding:.6rem; font-size:.75rem; }
    .yh-search-passport > div { grid-template-columns:1fr; gap:.3rem; }
    .yh-search-explore { grid-template-columns:1fr; }
    .yh-search-message, .yh-search-empty { padding:1.5rem; }
}
@media (prefers-reduced-motion:reduce) { .yh-search-photo-card img { transition:none; } }
