/* Dictionary-only styles; shared Mercury navigation and theme remain unchanged. */
.dict-hero{background:linear-gradient(135deg,var(--forest,#253640),var(--forest2,#344c58));padding:3.5rem 1.5rem 2.5rem;text-align:center;color:#fff}
.dict-hero .dh-inner{max-width:780px!important;width:100%!important;margin:auto}
.dict-hero .dh-label{font-size:.75rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#ffda83;margin:0 0 .7rem}
.dict-hero .dh-title{color:#fff;font-size:clamp(2rem,4vw,3rem);margin:0 0 1rem}
.dict-hero .dh-sub{font-size:1rem;color:#e0e8e8;line-height:1.7;margin:0 auto 1.5rem;max-width:630px}
.dh-search{display:flex;max-width:600px;margin:auto;gap:.6rem}
.dh-search input{min-width:0;flex:1;padding:.85rem 1rem;border-radius:10px;border:1px solid #9bacb2;background:#fff;color:#26343d}
.dh-search button{padding:.85rem 1.2rem;border-radius:10px;background:#ffc44c;color:#202a34;font-weight:700;border:0;cursor:pointer;min-height:46px}
.dict-hero .search-hint{font-size:.82rem;color:#d7e1e4;margin:.75rem 0 0}
.filter-bar{max-width:1120px;margin:auto;padding:1.3rem 1rem;display:flex;align-items:end;gap:1rem;flex-wrap:wrap;border-bottom:1px solid var(--border2,#d7dedf)}
.filter-field{display:flex;flex-direction:column;gap:.3rem;flex:1 1 250px;max-width:410px}
.filter-field label{font-size:.8rem;font-weight:700;color:var(--slate,#52616b)}
.filter-field select{width:100%;border:1px solid #94a6af;border-radius:10px;background:white;color:#26343d;padding:.75rem;min-height:46px}
.filter-bar button,.no-results button,.dictionary-pagination button{border:1px solid #94a6af;border-radius:10px;background:#fff;color:#26343d;padding:.65rem 1rem;font-size:.9rem;font-weight:700;min-height:46px;cursor:pointer}
.filter-bar a{font-size:.85rem;padding:.65rem 0;color:#97500b}
body.mercury-modernized .dict-layout{padding-top:1.5rem!important;padding-bottom:2rem!important}
.dict-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:1.75rem;max-width:1120px;margin:auto}
.dict-sidebar{padding:1rem;background:#fff;border:1px solid var(--border2,#d7dedf);border-radius:14px;align-self:start;position:sticky;top:1rem}
.dict-sidebar .alpha-title{font-size:1rem;letter-spacing:0;margin:0 0 .6rem}
.alpha-help{font-size:.75rem;color:var(--slate,#52616b);line-height:1.5;margin:0 0 .8rem}
.alphabet{display:grid;grid-template-columns:repeat(3,1fr);gap:.35rem}
.alpha-link{display:block;min-height:44px;border:1px solid var(--border2,#d7dedf);background:#fff;color:#344c58;border-radius:8px;font-weight:700;cursor:pointer;font-size:.88rem;padding:.25rem}
.alpha-link.all-letters{grid-column:1/-1;font-size:.78rem}
.alpha-link[aria-pressed=true]{background:var(--forest,#253640);color:#fff;border-color:var(--forest,#253640)}
.alpha-link:disabled{opacity:.35;cursor:default}
.dict-entries{min-width:0}
.results-heading{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.results-heading h2{font-size:1.25rem;margin:0}
#resultCount{margin:0;color:var(--slate,#52616b);font-size:.85rem}
.entry{background:#fff;border:1px solid var(--border2,#d7dedf);border-radius:var(--r,18px);padding:1.35rem;margin-bottom:.85rem;scroll-margin-top:1.5rem;box-shadow:0 2px 12px #202a3408}
.entry:target{border-color:#aa5c0b;box-shadow:0 0 0 2px #ffc44c}
.entry-top{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:.45rem}
.entry .entry-en{font-size:1.17rem;margin:0;line-height:1.4;overflow-wrap:anywhere}
.entry-permalink{color:var(--ink,#202a34);text-decoration:none}
.entry-permalink:hover{text-decoration:underline}
.entry-tag{font-size:.66rem;font-weight:700;padding:.2rem .6rem;border-radius:99px;background:#e8f0eb;color:#3e604d;flex-shrink:0;max-width:40%;text-align:center;line-height:1.5}
.entry .entry-es{font-size:.84rem;color:#97500b;margin:0 0 .85rem;overflow-wrap:anywhere}
.translation-label{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--slate,#52616b)}
.entry-definitions{display:flex;flex-direction:column;gap:.6rem}
.entry .entry-short{font-size:.9rem;color:var(--slate,#52616b);line-height:1.7;margin:0}
.definition-label{font-size:.61rem;font-weight:700;letter-spacing:.05em;color:#3f555f;background:#eef2ef;border-radius:4px;padding:.15rem .3rem;vertical-align:middle}
html[lang=es] .definition-es{order:-1}
.entry-details{margin-top:.85rem;border-top:1px solid var(--border2,#d7dedf);padding-top:.5rem}
.entry-details summary{color:#42604f;font-weight:700;font-size:.78rem;cursor:pointer;min-height:36px;padding:.45rem 0}
.entry-detail-body{font-size:.8rem;color:var(--slate,#52616b);overflow-wrap:anywhere}
.entry-detail-body p{margin:.4rem 0}
.entry-detail-body ul{padding-left:1.2rem;margin:.4rem 0}
.entry-detail-body a{color:#97500b}
.dictionary-pagination{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 0}
.dictionary-pagination button:disabled{opacity:.45;cursor:default}
#pageStatus{font-size:.85rem;color:var(--slate,#52616b);text-align:center}
.no-results,.dict-notice{padding:1.5rem;background:#fff;border:1px solid var(--border2,#d7dedf);border-radius:14px;color:var(--slate,#52616b)}
.dictionary-sources{width:min(1120px,calc(100% - 32px));margin:0 auto 3rem;padding:1.5rem;border:1px solid var(--border2,#d7dedf);border-radius:14px;background:#eaf0ed;color:#435660;scroll-margin-top:1rem}
.dictionary-sources h2{font-size:1.3rem;margin:0 0 .8rem}
.dictionary-sources p{font-size:.88rem;line-height:1.75;margin:.7rem 0}
.dictionary-sources a{color:#97500b}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:720px){.dict-layout{grid-template-columns:minmax(0,1fr);gap:1rem}.dict-sidebar{position:static;padding:.85rem}.alphabet{grid-template-columns:repeat(7,minmax(0,1fr))}.alpha-link.all-letters{grid-column:span 2}.alpha-help{margin-bottom:.55rem}.dict-hero{padding:2.5rem 1rem 2rem}.entry{padding:1rem}.entry-top{flex-direction:column;gap:.5rem}.entry-tag{max-width:100%}.dictionary-pagination button{padding:.65rem .6rem;font-size:.8rem}.dh-search{gap:.4rem}.dh-search button{padding:.75rem .7rem}.filter-bar{padding:1rem}.filter-field{max-width:none}.filter-bar a{flex-basis:100%;padding:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
@media print{.dict-hero{color:#000;background:white;padding:1rem}.dict-hero :is(.dh-title,.dh-sub,.dh-label){color:#000}.dh-search,.search-hint,.filter-bar,.dict-sidebar,.dictionary-pagination,.site-header,.mercury-connect-bar{display:none!important}.dict-layout{display:block}.entry{break-inside:avoid}.entry-details{display:none}.dictionary-sources{break-before:auto}}
/* Keep the full static dictionary wide when scripting is unavailable. */
.dict-layout:has(.dict-sidebar[hidden]){grid-template-columns:minmax(0,1fr)}

/* Preserve Mercury navigation contrast against higher-specificity legacy rules. */
body.mercury-modernized:has(.dict-hero) .site-header .nav-links{background:#202a34!important}
