.farm-history{margin:24px 0;padding:28px;border:1px solid var(--line,#ddd2bd);border-radius:18px;background:#fcf8ef}.history-heading,.history-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.history-heading h2{margin:8px 0}.history-heading p{margin:6px 0 22px}.history-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.history-filters button{border:1px solid #d9cdb9;background:transparent;border-radius:24px;padding:8px 14px;color:#16201e;font:inherit;cursor:pointer}.history-filters button[aria-pressed=true]{background:#16201e;border-color:#16201e;color:#fff9ee}.history-dates{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid #ded5c5}.history-dates label{display:grid;gap:6px;font-size:13px}.history-dates input{font:inherit;border:1px solid #c9bda6;border-radius:6px;padding:8px;background:#fffcf4}.history-list{margin:8px 0 20px}.history-event{display:grid;grid-template-columns:16px minmax(0,1fr) minmax(100px,160px);gap:18px;padding:24px 0;border-bottom:1px solid #e5dccb}.history-event.has-photo{grid-template-columns:16px 140px minmax(0,1fr) minmax(100px,160px)}.history-marker{font-size:24px;color:#a05c20}.history-event h3{margin:6px 0}.history-event h3 button,.history-detail-link{font:inherit;border:0;background:none;padding:0;text-align:left;color:inherit;cursor:pointer}.history-event h3 button{text-decoration:underline;text-decoration-color:#d1b38e;text-underline-offset:5px}.history-event-copy p{font-size:14px;margin:8px 0}.history-detail-link{color:#80501d;font-size:14px;margin-top:8px}.history-state{font-size:12px;color:#52645b}.history-state small{display:block;font-family:Mono,monospace;font-size:10px;margin-top:8px;overflow-wrap:anywhere}.history-tags{display:flex;flex-wrap:wrap;gap:5px}.history-tags span{background:#efe9dc;font-size:12px;padding:4px 7px;border-radius:4px}.history-photo{position:relative;border:1px solid #d1bea3;background:#eae2d2;color:#73502e;border-radius:12px;overflow:hidden;min-height:110px;cursor:pointer}.history-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.history-photo span{font:inherit;font-size:13px}.history-sources{font-size:13px;color:#536156;margin-top:20px}.history-sources summary{cursor:pointer}.history-sources ul{display:grid;grid-template-columns:1fr 1fr;gap:8px}.history-error,.history-gap{padding:12px 16px;background:#f3e5cd;border-left:3px solid #bf853d;font-size:13px}.history-dialog{box-sizing:border-box;width:min(1120px,94vw);max-height:92vh;border:1px solid #d1c2a8;border-radius:20px;background:#fcf8ef;color:#16201e;padding:28px;font-family:Familjen,sans-serif;overflow:auto}.history-dialog::backdrop{background:#16201ed9}.history-dialog-head{position:sticky;top:-28px;background:#fcf8ef;z-index:1;border-bottom:1px solid #ded2be;padding:18px 0}.history-dialog-head h2{margin:5px 0;font-size:28px}.history-dialog-head p{font-size:13px}.history-dialog-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:30px}.history-dialog section{padding:16px 0;border-bottom:1px solid #e1d8c9}.history-full-photo{margin-top:22px;background:#e9e3d7;padding:12px;border-radius:12px;text-align:center}.history-full-photo img{max-width:100%;max-height:65vh;object-fit:contain}.history-full-photo p{font-size:13px}.history-facts{margin:0;font-size:14px}.history-facts>div{padding:10px 0;border-bottom:1px solid #e7decf;display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:12px}.history-facts dt{color:#536156}.history-facts dt small{display:block;font-size:11px;margin-top:5px}.history-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.history-related{display:block;width:100%;background:#efe9dc;text-align:left;border:1px solid #d7c9b2;padding:12px;margin:7px 0;font:inherit;border-radius:7px;cursor:pointer}.history-table{overflow-x:auto}.history-table table{width:100%;border-collapse:collapse;font-size:13px}.history-table caption{text-align:left;margin:10px 0}.history-table th,.history-table td{padding:10px 6px;text-align:left;border-bottom:1px solid #ded3bf}.history-table small{display:block;font-size:10px}.farm-history button:focus-visible,.history-dialog button:focus-visible{outline:3px solid #92652c;outline-offset:3px}
@media(max-width:850px){.history-event.has-photo{grid-template-columns:14px 110px minmax(0,1fr)}.history-state{grid-column:3}.history-dialog-grid{grid-template-columns:1fr}.history-sources ul{grid-template-columns:1fr}.history-heading{flex-wrap:wrap}.farm-history{padding:20px}}
@media(max-width:520px){.farm-history{padding:16px 12px}.history-event{gap:10px;grid-template-columns:12px minmax(0,1fr)}.history-event.has-photo{grid-template-columns:12px 86px minmax(0,1fr)}.history-state{grid-column:2 / -1}.history-dialog{padding:16px;width:96vw}.history-dialog-head{top:-16px}.history-facts>div{grid-template-columns:1fr;gap:5px}.history-dates input{max-width:145px}.history-filters{gap:6px}.history-filters button{padding:7px 10px;font-size:13px}}
