/* Yadgar Encyclopedia 1.0 — private self-hosted styles, RTL-first, progressive enhancement. */
:root{--ye-ink:#223c30;--ye-moss:#294d3d;--ye-gold:#b08a50;--ye-paper:#fffdf8;--ye-cream:#f6f2e8;--ye-line:#e1d8c8;--ye-muted:#627069;--ye-shadow:0 14px 40px rgba(28,51,42,.07)}
.ye-container{width:min(1280px,calc(100% - 40px));margin-inline:auto}.ye-container *{box-sizing:border-box}.ye-container a{text-decoration:none}.ye-overline{display:block;color:#947140;font-weight:700;font-size:12px;letter-spacing:.4px}.ye-crumb{display:flex;gap:10px;align-items:center;font-size:12px;flex-wrap:wrap;padding:25px 0 15px;color:var(--ye-muted)}.ye-crumb a{color:var(--ye-moss)}
.ye-search{background:linear-gradient(145deg,#fffcf5,#f8f4e9);border:1px solid #ded5c1;border-top:4px solid #ae8a4e;border-radius:16px;padding:28px;box-shadow:var(--ye-shadow);margin:24px 0 32px}.ye-search-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.ye-search-title>div>span{font-size:12px;color:#9a7741;font-weight:700}.ye-search-title h2{font-size:29px;color:#1d4030;margin:4px 0 8px;line-height:1.45}.ye-search-title p{color:#68756b;font-size:13px;margin:0}.ye-search-emblem{width:70px;height:70px;border-radius:50%;border:1px solid #c7ad7c;background:#eee8d7;display:grid;place-items:center;font-size:40px;color:#97733e;flex:none}.ye-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.ye-field{display:flex;flex-direction:column;gap:7px;min-width:0}.ye-field span{font-weight:650;color:#3b5144;font-size:13px}.ye-field input,.ye-field select{display:block;width:100%;min-width:0;min-height:44px;background:white;border:1px solid #dadbce;border-radius:8px;padding:8px 11px;color:#213c2e;font:inherit;font-size:13px;transition:border-color .15s ease,box-shadow .15s ease}.ye-field input:focus,.ye-field select:focus{border-color:#a98b4e;outline:2px solid #d8c59a;outline-offset:1px}.ye-more-filters{margin-top:16px;border-top:1px dashed #d0c4ae;padding-top:15px}.ye-more-filters summary{font-weight:700;font-size:13px;color:#355b49;cursor:pointer;padding:6px 2px}.ye-more-filters[open] .ye-filter-grid{margin-top:18px}.ye-form-actions{display:flex;gap:13px;align-items:center;margin-top:24px;flex-wrap:wrap}.ye-primary-button,.ye-soft-button{border:0;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 23px;border-radius:7px;font-weight:700;font-size:13px;transition:background .15s ease,transform .15s ease}.ye-primary-button{background:var(--ye-moss);color:#fff!important}.ye-primary-button:hover{background:#173d2c;transform:translateY(-1px)}.ye-soft-button{background:#eee8d9;color:#335341!important}.ye-soft-button:hover{background:#e1d6ba}.ye-form-actions>a{color:#7c6343;font-weight:600;font-size:13px}
.ye-archive-heading{padding:36px 0 8px}.ye-archive-heading .ye-overline{font-size:13px}.ye-archive-heading h1{font-size:clamp(29px,3.1vw,44px);margin:9px 0 8px;color:var(--ye-ink);line-height:1.5}.ye-archive-heading p{margin:0;color:var(--ye-muted);font-size:15px}.ye-results-header{display:flex;justify-content:space-between;align-items:center;margin:28px 0 17px;border-bottom:1px solid var(--ye-line);padding:0 0 12px}.ye-results-header h2{font-size:23px;color:var(--ye-ink);margin:0}.ye-results-header span{font-size:12px;color:var(--ye-muted)}.ye-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:36px}.ye-result-card{display:grid;grid-template-columns:132px minmax(0,1fr);gap:18px;align-items:stretch;background:var(--ye-paper);border:1px solid var(--ye-line);border-radius:13px;overflow:hidden;box-shadow:0 10px 30px rgba(30,50,38,.05);min-height:204px}.ye-result-picture{display:block;background:#e8e4d8;min-height:200px}.ye-result-picture img{width:100%;height:100%;object-fit:cover}.ye-photo-empty{height:100%;display:grid;place-items:center;color:#a28c67;font-size:60px}.ye-result-info{padding:17px 0 15px 17px}.ye-result-info h3{margin:0 0 7px;font-size:20px;line-height:1.6}.ye-result-info h3 a{color:#234d39}.ye-result-info p{margin:4px 0;font-size:12px;color:#617268}.ye-result-tags{display:flex;gap:5px;flex-wrap:wrap;margin:10px 0}.ye-result-tags span{background:#e9eee7;border:1px solid #d9e2d4;border-radius:30px;padding:4px 8px;color:#436047;font-size:10px}.ye-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.ye-result-actions a{font-size:12px;font-weight:700;color:#345b45;border-bottom:1px solid #c7ad78;padding-bottom:3px}.ye-result-actions a:last-child{color:#956f36}.ye-pages{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;padding:20px}.ye-pages a{border:1px solid #d9cebc;border-radius:8px;padding:6px 12px;color:#355542}.ye-pages a[aria-current]{background:#2a4f3e;color:#fff}.ye-empty{padding:32px;background:#fffdf7;border:1px solid #ded6c6;border-radius:10px;color:#596f5f}
.ye-profile-hero{display:grid;grid-template-columns:270px minmax(0,1fr);gap:36px;align-items:center;border-radius:18px;overflow:hidden;background:linear-gradient(125deg,#f4efdf 0%,#fcfaf4 70%);border:1px solid #d8cbb4;position:relative;padding:30px;margin-bottom:30px;box-shadow:var(--ye-shadow)}.ye-profile-hero:before{content:'✧';font-size:360px;line-height:1;color:rgba(160,138,87,.07);position:absolute;left:0;top:-120px;pointer-events:none}.ye-hero-photo{position:relative;isolation:isolate;max-height:370px;aspect-ratio:4/5;overflow:hidden;border-radius:9px;box-shadow:0 18px 32px rgba(35,52,39,.18);border:7px solid #fffdf7;background:#e8e2d3}.ye-hero-photo img{width:100%;height:100%;object-fit:cover}.ye-photo-placeholder{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;color:#837450;font-size:13px;text-align:center;padding:20px}.ye-photo-placeholder>span:first-child{font-size:74px}.ye-hero-detail{position:relative}.ye-hero-detail h1{font-size:clamp(33px,4vw,54px);line-height:1.42;color:#254536;margin:8px 0 14px}.ye-key-dates{font-size:13px;color:#5c705f;line-height:2}.ye-hero-summary{font-size:15px;color:#465b4c;line-height:2.1;max-width:650px}.ye-hero-actions{margin-top:20px;display:flex;gap:10px;flex-wrap:wrap}.ye-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px;margin-bottom:55px;align-items:start}.ye-main-stack,.ye-side-stack,.ye-memorial-layout{display:flex;flex-direction:column;gap:24px;min-width:0}.ye-panel{background:var(--ye-paper);border:1px solid var(--ye-line);border-radius:14px;padding:28px;box-shadow:0 11px 35px rgba(30,50,38,.035);min-width:0}.ye-section-title{margin-bottom:20px;position:relative;border-bottom:1px solid #e2dbc9;padding-bottom:14px}.ye-section-title:before{content:'';height:2px;width:68px;background:#bb995f;position:absolute;right:0;bottom:-1px}.ye-section-title>span{font-size:11px;color:#a07d48}.ye-section-title h2{margin:5px 0 0;color:#274b39;font-size:25px;line-height:1.6}.ye-facts dl,.ye-grave-facts{display:grid;grid-template-columns:1fr;gap:0;margin:0}.ye-facts dl>div,.ye-grave-facts>div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid #eee7db;padding:12px 0;gap:12px}.ye-facts dt,.ye-grave-facts dt{color:#6b786c;font-size:12px;flex:0 0 auto}.ye-facts dd,.ye-grave-facts dd{margin:0;color:#2b4b3b;font-weight:700;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.ye-article-body{font-size:17px;color:#34473d;line-height:2.35;overflow-wrap:anywhere;text-align:justify}.ye-article-body p{margin:0 0 16px}.ye-doc-list{display:flex;flex-direction:column;gap:9px}.ye-document-row{display:flex;gap:13px;align-items:center;padding:12px 14px;background:#f7f3ea;border-radius:9px;border:1px solid #e7decf;color:#345040}.ye-document-row>span:nth-child(2){flex:1}.ye-document-row strong{display:block;font-size:13px}.ye-document-row small{display:block;font-size:11px;color:#738078;margin-top:5px}.ye-doc-ico{font-size:27px;color:#b48c51}.ye-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.ye-media-card{border:1px solid #e5ddce;border-radius:10px;overflow:hidden;background:#fffdf8;min-width:0}.ye-media-thumb{height:170px;background:#e9e4d9;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#887752;gap:4px;font-size:11px}.ye-media-thumb>span:first-child{font-size:39px}.ye-media-thumb img{height:100%;width:100%;object-fit:cover}.ye-media-description{padding:12px}.ye-media-description h3{font-size:13px;color:#314d3e;margin:0 0 7px}.ye-media-description p{font-size:11px;color:#68766b;line-height:1.9}.ye-media-description a{font-weight:700;font-size:11px;color:#9c733c}.ye-family-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.ye-family-card{background:#f8f5ed;border:1px solid #e8decf;border-radius:9px;padding:17px}.ye-family-card>span{font-size:11px;color:#a27c43}.ye-family-card h3{font-size:18px;margin:8px 0;color:#2e503d}.ye-family-story{font-size:13px;line-height:2.1;color:#405648}.ye-family-card small{display:block;font-size:11px;color:#68756d}.ye-grave-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.ye-map-note{margin:15px 0 0;font-size:12px;line-height:1.85;color:#7a7464}.ye-navigation{margin-top:24px;border:1px solid #dce5da;background:#f1f6ed;padding:18px;border-radius:9px}.ye-navigation p{margin:0 0 10px;color:#456247;font-size:12px}.ye-coordinates{font-size:13px;letter-spacing:1px;display:inline-block;background:white;border:1px solid #dce3d6;padding:8px;border-radius:6px;color:#366046}.ye-map-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.ye-map-actions a{border:1px solid #a8bfab;color:#2e674c;padding:9px 12px;border-radius:6px;font-size:12px;font-weight:700;background:white}.ye-source-panel p{color:#627166;font-size:13px;line-height:2.1}
.ye-memorial .ye-memorial-hero{background:radial-gradient(circle at 90% 10%,#4d6e54,#1e4235 70%);border:1px solid #385942}.ye-memorial .ye-memorial-hero:before{color:rgba(222,196,134,.10)}.ye-memorial .ye-memorial-hero .ye-hero-detail h1{color:#fbf4de}.ye-memorial .ye-memorial-hero .ye-overline{color:#d9c18e}.ye-memorial .ye-memorial-hero .ye-key-dates,.ye-memorial .ye-memorial-hero .ye-hero-summary{color:#e1e9d9}.ye-memorial .ye-memorial-hero .ye-soft-button{background:#eae6d6}.ye-memorial-quote{margin:0 0 25px;border-right:4px solid #b58d50;background:#f7f3e9;padding:24px 30px;border-radius:10px;color:#425c48;font-size:17px;line-height:2.2}.ye-memorial-layout{margin-bottom:60px}.ye-memorial-layout .ye-media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.ye-memorial-layout .ye-facts dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}
.ye-home-search-band{padding:32px 0}.ye-home-search-inner{background:linear-gradient(110deg,#254c3b,#173b30);color:#faf8ef;border-radius:13px;padding:25px 30px;display:flex;justify-content:space-between;align-items:center;gap:20px}.ye-home-search-inner h2{color:#fff6df;font-size:25px;margin:5px 0}.ye-home-search-inner p{font-size:13px;color:#d4e1d7;margin:0}.ye-home-search-inner>a{color:#264b37!important;border-radius:7px;background:#e3c996;padding:12px 18px;white-space:nowrap;font-size:13px;font-weight:700}
@media(max-width:1100px){.ye-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ye-page-layout{grid-template-columns:minmax(0,1fr) 290px}.ye-memorial-layout .ye-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.ye-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ye-results-grid{grid-template-columns:1fr}.ye-page-layout{grid-template-columns:1fr}.ye-profile-hero{grid-template-columns:210px minmax(0,1fr);gap:19px}.ye-memorial-layout .ye-facts dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.ye-container{width:min(100% - 28px,1280px)}.ye-search{padding:18px 14px;border-radius:10px}.ye-search-title h2{font-size:24px}.ye-search-emblem{width:45px;height:45px;font-size:27px}.ye-filter-grid{grid-template-columns:1fr}.ye-profile-hero{grid-template-columns:1fr;padding:19px;gap:20px}.ye-hero-photo{width:190px;margin-inline:auto}.ye-hero-detail{text-align:center}.ye-hero-detail h1{font-size:34px}.ye-hero-actions{justify-content:center}.ye-panel{padding:20px 15px}.ye-section-title h2{font-size:21px}.ye-result-card{grid-template-columns:95px minmax(0,1fr);gap:10px;min-height:155px}.ye-result-picture{min-height:155px}.ye-result-info{padding:11px 0 10px 9px}.ye-result-info h3{font-size:16px}.ye-result-info p{font-size:10px}.ye-result-actions a{font-size:10px}.ye-media-grid,.ye-memorial-layout .ye-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ye-media-thumb{height:125px}.ye-family-grid,.ye-grave-facts,.ye-memorial-layout .ye-facts dl{grid-template-columns:1fr}.ye-home-search-inner{flex-direction:column;text-align:center;padding:25px}.ye-memorial-quote{font-size:14px;padding:18px}.ye-article-body{font-size:15px}}
@media(prefers-reduced-motion:reduce){.ye-primary-button,.ye-soft-button,.ye-field input,.ye-field select{transition:none!important}}
/* Theme dark-mode compatibility */
html[data-am-theme="dark"] .ye-search,html[data-am-theme="dark"] .ye-panel,html[data-am-theme="dark"] .ye-result-card,html[data-am-theme="dark"] .ye-memorial-quote{background:#253b2e;border-color:#4d624d;color:#e6eade}
html[data-am-theme="dark"] .ye-search-title h2,html[data-am-theme="dark"] .ye-archive-heading h1,html[data-am-theme="dark"] .ye-section-title h2,html[data-am-theme="dark"] .ye-result-info h3 a,html[data-am-theme="dark"] .ye-hero-detail h1,html[data-am-theme="dark"] .ye-facts dd{color:#ebf1df}
html[data-am-theme="dark"] .ye-profile-hero{background:linear-gradient(120deg,#284837,#1d3229);border-color:#415a47}html[data-am-theme="dark"] .ye-article-body{color:#e0e8db}html[data-am-theme="dark"] .ye-field input,html[data-am-theme="dark"] .ye-field select{background:#1d3529;color:#eef4e7;border-color:#56705b}html[data-am-theme="dark"] .ye-crumb a,html[data-am-theme="dark"] .ye-field span{color:#dae3d0}
