/* demo-posts.css (E2, 24 Nov 2026): the "+ New blog post" / "Edit post" form of the demo, in the dashboard's look (her green, gold, cream; Newsreader for the title, Inter for the rest).
   Loaded by /admin/ and, with the edit-hint cookie, by /blog/view/. Square corners, hairlines, no shadow. Every colour has a fallback so it reads the same on both. */
.olp { --i: var(--eh-ink, #242424); --p: var(--eh-paper, #FAF6F0); --w: var(--eh-wash, #E9E2D8); --l: var(--eh-line, #CFC6B8); --m: var(--eh-mute, #505148); --e: var(--eh-err, #A3201A);
  --g: var(--ol-green, #355144); --gd: var(--ol-green-deep, #263B31); --au: var(--eh-gold, #BABA67); --f: var(--eh-font, "Inter", "Segoe UI", Arial, sans-serif); --s: var(--eh-serif, "Newsreader", Georgia, serif);
  padding: 0; border: 1px solid var(--g); width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); background: var(--p); color: var(--i); overflow: hidden; border-radius: 0; font-family: var(--f); }
.olp::backdrop { background: rgba(38, 59, 49, .5); }
.olp[open] { display: flex; flex-direction: column; }
.olp__in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: inherit; margin: 0; }
.olp__hd { flex: none; padding: 20px 26px 14px; border-bottom: 1px solid var(--l); }
.olp__body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 18px 26px 22px; display: grid; align-content: start; gap: 18px; }
.olp__ft { flex: none; padding: 12px 26px 16px; border-top: 1px solid var(--l); display: grid; gap: 10px; background: var(--p); }
.olp__t { margin: 0; font: 400 32px/1.1 var(--s); overflow-wrap: anywhere; }
.olp__p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--m); }
.olp__f { display: grid; gap: 6px; min-width: 0; }
.olp__f > label, .olp__lab { font: 600 14px/1.3 var(--f); color: var(--i); }
.olp__f input[type="text"], .olp__f textarea, .olp__f select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #B9B2A2; background: #fff; color: var(--i); font: 400 16px/1.45 var(--f); border-radius: 0; }
.olp__f select { height: 44px; }
.olp__f textarea { resize: vertical; min-height: 84px; }
.olp__f input:focus-visible, .olp__f textarea:focus-visible, .olp__f select:focus-visible, .olp__b:focus-visible, .olp__ph:focus-visible { outline: 2px solid var(--g); outline-offset: 1px; }
.olp__f [aria-invalid="true"] { border-color: var(--e); }
.olp__h { margin: 0; font-size: 13px; line-height: 1.45; color: var(--m); }
.olp__err { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--e); }
.olp__err[hidden] { display: none; }
.olp__pic { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.olp__pic img { width: 132px; height: 88px; object-fit: cover; border: 1px solid var(--l); background: var(--w); display: block; }
.olp__pic img[hidden] { display: none; }
.olp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 8px; border: 1px solid var(--l); background: var(--w); max-height: 280px; overflow-y: auto; }
.olp__grid[hidden] { display: none; }
.olp__ph { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 0; }
.olp__ph img { width: 100%; height: 68px; object-fit: cover; display: block; }
.olp__ph[aria-pressed="true"] { border-color: var(--g); }
.olp__btns { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.olp__sp { flex: 1 1 auto; }
.olp__b { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 1px solid var(--g); background: transparent; color: var(--g); font: 600 14px/1 var(--f); cursor: pointer; border-radius: 0; box-sizing: border-box; }
.olp__b:hover { background: var(--g); color: #FAF6F0; }
.olp__b--go { background: var(--au); border-color: var(--au); color: var(--eh-gold-ink, #1D2A23); font-weight: 700; }
.olp__b--go:hover { background: var(--eh-gold-hi, #D8D88F); border-color: var(--eh-gold-hi, #D8D88F); color: var(--eh-gold-ink, #1D2A23); }
.olp__b--del { border-color: transparent; color: var(--e); text-decoration: underline; padding: 0 8px; }
.olp__b--del:hover { background: transparent; color: var(--e); }
@media (max-width: 480px) { .olp__hd { padding: 16px 16px 12px; } .olp__body { padding: 14px 16px 18px; gap: 16px; } .olp__ft { padding: 10px 16px 14px; } .olp__t { font-size: 28px; } .olp__btns .olp__b:not(.olp__b--del) { flex: 1 1 auto; padding: 0 10px; } }
@media (max-height: 560px) { .olp__t { font-size: 24px; } .olp__hd { padding-block: 12px 10px; } .olp__body { padding-block: 12px 14px; gap: 14px; } .olp__b { height: 38px; } }
