/* The four home panels and Collections share the same ink and paper. */
:root { --hd-ink:#193a32; --hd-link:#12483c; --hd-paper:#faf9f4; --hd-line:#bdccc0; --hd-muted:#415b51; --hd-soft:#e8eee4; --hd-focus:#96451e; }
[data-master-search] input { color:#18392f; background:#fffef9; min-width:0; }
[data-master-search] input::placeholder { color:#50655c; opacity:1; }
[data-master-search] :is(button,button:visited), html[data-mp] .mp-field button { background:#17483e; color:white; border:1px solid #17483e; }
[data-master-search] button:hover,html[data-mp] .mp-field button:hover { background:#0c392f; color:white; }
.hd-card, .hd-card * { box-sizing:border-box; }
.hd-display,.hd-display *,.hd-card:link,.hd-card:visited { color:var(--hd-ink); }
.hd-rail { margin:0 0 clamp(1.55rem,4vw,3.1rem); }
.hd-rail h2 { font:600 clamp(1.4rem,2.4vw,2.05rem)/1.17 Georgia,serif; letter-spacing:-.025em; color:var(--hd-ink); margin:.3rem 0 .9rem; }
.hd-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.65rem,1.8vw,1.35rem); }
.hd-grid.hd-lead { grid-template-columns:1.38fr 1fr 1fr; }
.hd-grid>* { min-width:0; }
.hd-card:where(:link,:visited), html .hd-card { display:flex;flex-direction:column; height:100%; overflow:hidden; position:relative; text-decoration:none; background:#fffef9; border:1px solid var(--hd-line); border-radius:.32rem; box-shadow:none; color:var(--hd-link); }
.hd-card:hover { border-color:#366554; background:#f2f5ec; }
.hd-card:focus-visible,[data-master-search] :focus-visible,.hd-jumps a:focus-visible,#master-results button:focus-visible { outline:3px solid var(--hd-focus);outline-offset:3px; }
.hd-art { display:grid;place-items:center;background:#edf0e7;overflow:hidden;aspect-ratio:16/9;border-bottom:1px solid var(--hd-line); }
.hd-art img { width:100%; height:100%; min-height:0; display:block;object-fit:cover;transition:transform .16s ease; }
.hd-card[data-fit="contain"] .hd-art img { object-fit:contain; padding:.35rem; }
.hd-lead .hd-art { height:clamp(115px,15vw,205px);aspect-ratio:auto; }
.hd-text { display:block;padding:.65rem .88rem .8rem; }
.hd-meta { display:flex; flex-wrap:wrap; justify-content:space-between;align-items:baseline;gap:.2rem .45rem;color:var(--hd-muted);font:600 .78rem/1.4 system-ui,sans-serif; }
.hd-meta time { font-variant-numeric:tabular-nums; font-weight:450; }
.hd-title { display:block; font:600 clamp(1.17rem,1.8vw,1.55rem)/1.18 Georgia,serif; margin:.32rem 0 .17rem; color:var(--hd-link); }
.hd-card:hover .hd-title { text-decoration:underline;text-underline-offset:.16em; }
.hd-caption { display:block;font:400 .9rem/1.4 system-ui,sans-serif; color:var(--hd-muted); }
.hd-display .lang-zh,.bidx a .lang-zh { color:inherit; }
.hd-display[data-monolingual] .lang-zh { display:none; }
html[data-mp=home] header.mp-homehero,body.hd-collections .hero { display:block; margin:.6rem 0 1.45rem; padding:0; }
html[data-mp=home] header.mp-homehero>div, body.hd-collections .hero>div { display:grid;grid-template-columns:minmax(0,1fr) minmax(17rem,.9fr);align-items:end;gap:.8rem 2.2rem; }
html[data-mp=home] header.mp-homehero h1,body.hd-collections .hero h1 { margin:0;max-width:none; font-size:clamp(2rem,4.2vw,4.1rem);line-height:1.04;letter-spacing:-.045em; }
html[data-mp=home] header.mp-homehero form,body.hd-collections .hero form { width:100%; margin:0; max-width:none; }
html[data-mp=home] nav.bidx { background:#f6f7ef; border:1px solid var(--hd-line); padding:clamp(.65rem,1.5vw,1.1rem); border-radius:.32rem; }
html[data-mp=home] .bidx .bidx-tier { display:flex; flex-wrap:wrap; align-items:baseline; gap:.38rem; margin:.48rem 0; padding:0; }
html[data-mp=home] .bidx .bidx-t { display:inline-flex;flex-wrap:wrap;align-self:center;color:#385549; flex:0 0 min(17rem,100%); }
html[data-mp=home] .bidx a:where(:link,:visited), html[data-mp=home] .bidx a { display:inline-flex;gap:.3em;flex-wrap:wrap;align-items:center; justify-content:start; max-width:100%; background:#e1ecdf; color:#173d30; border:1px solid #a4bca5; border-radius:.3rem; padding:.35rem .65rem; min-height:2rem; line-height:1.25; font-weight:550; }
html[data-mp=home] .bidx a:hover,html[data-mp=home] .bidx a:active,html[data-mp=home] .bidx a:focus-visible { background:#17483e; color:#fff; border-color:#17483e; }
html[data-mp=home] .bidx a:focus-visible { outline:3px solid var(--hd-focus);outline-offset:2px; }
html[data-mp=home] .bidx a span { color:inherit; }
html[data-mp=home] .bidx a[data-new]::after { background:#f6e3bd;color:#4a3215; border:1px solid #ba9c69; }
html[data-mp=home] .landing-card { min-height:2.6rem; }
.hd-jumps { display:flex;flex-wrap:wrap;gap:.4rem .85rem; margin:1rem 0; }
.hd-jumps a,.hd-references a { color:var(--hd-link);text-underline-offset:.18em; }
#master-results section { scroll-margin-top:1.2rem; }
#master-results h2 { margin-bottom:.45rem; }
#master-results .provider-error {color:#793f26;}
#master-results .hits .info {color:#405a50;}
#master-results mark { background:#f5dda9;color:#253328; }
#master-results button:not(:disabled) { background:#17483e;color:#fff;border:1px solid #17483e; }
body.hd-collections .hero figure {display:none;}
@media(max-width:750px) {
 html[data-mp=home] header.mp-homehero>div,body.hd-collections .hero>div { grid-template-columns:1fr; gap:.9rem; }
 .hd-grid,.hd-grid.hd-lead {grid-template-columns:repeat(2,minmax(0,1fr));}
 .hd-grid>*:first-child:nth-last-child(3) { grid-column:1/-1; }
 .hd-grid>*:first-child:nth-last-child(3) .hd-art { height:clamp(155px,33vw,225px);aspect-ratio:auto; }
 .hd-lead .hd-art {height:clamp(100px,20vw,145px);}
 html[data-mp=home] .bidx .bidx-t {flex:1 0 100%; margin-top:.25rem;}
}
@media(max-width:445px) {
 .hd-grid,.hd-grid.hd-lead {grid-template-columns:1fr;}
 .hd-grid>*:first-child:nth-last-child(3) {grid-column:auto;}
 .hd-grid .hd-card {display:grid;grid-template-columns:minmax(94px,34%) minmax(0,1fr);align-items:stretch;}
 .hd-grid .hd-card .hd-art,.hd-grid>*:first-child:nth-last-child(3) .hd-art {height:100%;min-height:97px;aspect-ratio:auto;border-bottom:0;border-right:1px solid var(--hd-line);}
 .hd-grid>*:first-child:nth-last-child(3) .hd-card {display:flex;}
 .hd-grid>*:first-child:nth-last-child(3) .hd-art {height:143px;border-right:0;border-bottom:1px solid var(--hd-line);}
 .hd-text {padding:.55rem .65rem;}.hd-meta {font-size:.72rem;}
}
@media(prefers-reduced-motion: reduce){.hd-art img{transition:none;}}

.hd-credit { margin:.35rem 0 0;text-align:right;font:400 .75rem/1.45 system-ui,sans-serif; }
.hd-credit a,.hd-credit a:visited {color:#415b51;text-underline-offset:.18em;}
.hd-jumps[hidden] {display:none;}

html[data-mp=home] .mp-links #mwt-host.mwt-tab {position:static!important;inset:auto!important;transform:none!important;z-index:auto!important;box-shadow:none;border:1px solid #9daf9d;border-radius:.25rem;background:#f0f3eb;color:#193d31;font:600 .84rem/1.3 system-ui,sans-serif;padding:.39rem .55rem;white-space:nowrap;}
html[data-mp=home] .mp-links #mwt-host.mwt-tab:is(:hover,:focus-visible) {background:#17483e;color:white;}
html[data-mp=home] .mp-links {flex-wrap:wrap;align-items:center;}
html[data-mp=home] .lang-toggle button {background:#faf9f4;color:#214438;}
html[data-mp=home] .lang-toggle button:is(.active,[aria-pressed="true"]) {background:#17483e;color:#fff;}
html[data-mp=home] .bidx .bidx-tier { display:grid; grid-template-columns:minmax(0,clamp(9rem,20vw,15rem)) minmax(0,1fr);align-items:start;}
.bidx-tier .hd-chip-links {display:flex;flex-wrap:wrap;gap:.35rem;}
.hd-ui-controls {display:flex;align-items:center;gap:.18rem;margin:.45rem 0 .65rem;}
.hd-ui-controls button {border:1px solid #97aa9d;border-radius:.25rem;padding:.3rem .5rem;font:600 .85rem/1.35 system-ui,sans-serif;background:#faf9f4;color:#193d31;}
.hd-ui-controls button[aria-pressed="true"] {background:#17483e;color:white;}
.hd-ui-controls button:focus-visible {outline:3px solid #96451e;outline-offset:2px;}
@media(max-width:750px){html[data-mp=home] .bidx .bidx-tier {grid-template-columns:1fr;}}

#master-results section[hidden],.hd-jumps a[hidden]{display:none;}
#master-results h2 .quantity {display:inline-block;width:auto;margin:0 0 0 .25em;vertical-align:baseline;color:#415b51;font:500 .86rem/1.3 system-ui,sans-serif;}
.hd-jumps {font-size:.94rem;}
html[data-mp=home] .bidx a[data-new]::after {content:attr(data-new);font-variant-numeric:tabular-nums;}
