/* dashboard-skin.css: the kit's Content dashboard (assets/editor/dashboard.css, unchanged) wearing Oliver Law Office's look. The editor's layout, cleanliness and flow;
   her colours (tokens.css: green #355144, gold #BABA67, cream #FAF6F0, tint #E9E2D8) and her faces (Newsreader for the big words, Inter for everything else). Loaded ONLY by
   /admin/ in the demo, after dashboard.css, so a visitor never gets it. Square corners, hairlines, no shadows beyond the account menu. */
:root {
  --eh-ink: #242424; --eh-paper: #FAF6F0; --eh-wash: #E9E2D8; --eh-line: #CFC6B8; --eh-mute: #505148; --eh-err: #A3201A;
  --eh-bar: #355144; --eh-bar-line: #263B31; --eh-bar-btn: #4C6A5B; --eh-bar-text: #FAF6F0; --eh-bar-mute: #C1C1B8;
  --eh-gold: #BABA67; --eh-gold-hi: #D8D88F; --eh-gold-ink: #1D2A23;
  --eh-live: #2b6a3c; --eh-live-bg: #E3EDE0; --eh-draft: #6B5A1F; --eh-draft-bg: #F0EBC9; --eh-err-bg: #F5E4E0;
  --eh-font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --eh-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ol-green: #355144; --ol-green-deep: #263B31;
}
body { font: 400 14px/1.45 var(--eh-font); }
#eh-dash, #eh-dash button, #eh-dash input, #eh-dash a { font-family: var(--eh-font); }

/* top bar: sticky, her J mark, her name, CONTENT small in gold */
.ehd-top { position: sticky; top: 0; z-index: 30; }
.ehd-brand { align-items: center; gap: 10px; font-family: var(--eh-serif); font-weight: 400; font-size: 22px; letter-spacing: 0; text-transform: none; }
.ehd-brand::before { content: ""; flex: none; width: 30px; height: 30px; background: url(/icon.svg) center / contain no-repeat; }
.ehd-brand small { align-self: center; padding-left: 4px; font-family: var(--eh-font); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--eh-gold-hi); }
.ehd-acct-btn:hover, .ehd-acct-btn[aria-expanded=true] { background: #2B4439; }
.ehd-menu { box-shadow: 0 10px 28px rgba(36, 36, 36, .22); }

/* the sidebar is full height and scrolls on its own (the page behind it does not move while the wheel is over it) */
.ehd-shell { align-items: start; min-height: 0; }
.ehd-rail { position: sticky; top: 56px; height: calc(100vh - 56px); height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; }
.ehd-rail button:hover { background: var(--eh-line); }
.ehd-rail button[aria-current=page], .ehd-rail button[aria-current=page]:hover { background: var(--ol-green); color: #FAF6F0; }
.ehd-rail button[aria-current=page] .n { color: var(--eh-gold-hi); }
.ehd-foot { font-size: 12px; }
.ehd-foot .ol-demo-foot { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--eh-line); }
.ehd-col { min-height: calc(100vh - 56px); }

/* the work area */
.ehd-t { font-family: var(--eh-serif); font-weight: 400; font-size: 46px; line-height: 1.1; letter-spacing: -.01em; }
.ehd-lede { font-size: 16px; }
.ehd-card .num { font-family: var(--eh-serif); font-weight: 400; font-size: 60px; letter-spacing: -.02em; }
.ehd-card h3 { font-size: 18px; font-weight: 700; }
.ehd-btn.solid { background: var(--ol-green); border-color: var(--ol-green); color: #FAF6F0; }
.ehd-btn.solid:hover:not(:disabled) { background: var(--ol-green-deep); border-color: var(--ol-green-deep); }
.ehd-btn:hover:not(:disabled):not(.solid):not(.gold):not(.danger) { background: var(--ol-green); border-color: var(--ol-green); color: #FAF6F0; }
.ehd-card .act { min-width: 0; }
.ehd-card .act a, .ehd-card .act button { max-width: 100%; box-sizing: border-box; white-space: normal; text-align: left; height: auto; min-height: 36px; line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
.ehd-s { font-weight: 700; letter-spacing: .12em; }
.ehd-list .ti { font-size: 15px; font-weight: 700; }
.ehd-list .ad { font: 500 13px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ehd-list .row.hd { font-weight: 700; letter-spacing: .1em; }
/* a post written in the demo is tagged under its title (demo-api.js) */
.ehd-list .ol-tag { display: block; margin-top: 3px; font: 700 11px/1.3 var(--eh-font); letter-spacing: .1em; text-transform: uppercase; color: var(--eh-draft); }
/* the kit's focus ring (gold-hi) is far too pale on her cream; on the light parts of the dashboard and the sign-in it is her ink (the green top bar keeps the light ring) */
#eh-dash :focus-visible { outline: 2px solid var(--eh-ink); outline-offset: 2px; }
#eh-dash .ehd-top :focus-visible, #eh-dash .ehd-toast :focus-visible { outline-color: var(--eh-gold-hi); }

/* sign-in: static markup inside #eh-dash, written by make_demo.py; demo-api.js wakes it up when nobody is signed in and empties #eh-dash when somebody is.
   The head line of /admin/ puts ol-js on <html> when JavaScript runs and ol-in when the edit-hint cookie is set: a signed-in visitor never sees the form flash,
   and with JavaScript on the button never shows its written-disabled dimming before the script enables it (with JavaScript off it keeps the kit's dimming). */
.ol-in .ol-sign { display: none; }
.ol-js .ol-sign__go:disabled { opacity: 1; cursor: pointer; }
.ol-sign__f .form-noscript { margin: 0; font-size: 14px; font-weight: 500; color: var(--eh-mute); }
.ol-sign { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--eh-paper); }
.ol-sign__box { width: min(440px, 100%); background: #fff; border: 1px solid var(--eh-line); padding: 36px 36px 30px; }
.ol-sign__brand { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; font-family: var(--eh-serif); font-size: 24px; line-height: 1.1; color: var(--ol-green); }
.ol-sign__j { display: block; flex: none; width: 40px; height: 40px; }
.ol-sign__brand small { margin-left: 2px; font-family: var(--eh-font); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--eh-mute); }
.ol-sign__t { margin: 0; font-family: var(--eh-serif); font-size: 40px; font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.ol-sign__lead { margin: 12px 0 0; font-size: 16px; color: var(--eh-mute); text-wrap: balance; }
.ol-sign__ok { margin: 18px 0 0; padding: 10px 14px; background: var(--eh-wash); color: var(--eh-ink); font-size: 14px; font-weight: 500; }
.ol-sign__f { display: grid; gap: 8px; margin-top: 26px; }
.ol-sign__f label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--eh-mute); }
.ol-sign__f input { height: 48px; padding: 0 14px; border: 1px solid var(--eh-line); background: #fff; color: var(--eh-ink); font: 400 16px var(--eh-font); border-radius: 0; }
.ol-sign__f input:focus-visible { outline: 2px solid var(--eh-ink); outline-offset: 1px; }
.ol-sign__f input[aria-invalid="true"] { border-color: var(--eh-err); }
.ol-sign__err { margin: 0; font-size: 14px; font-weight: 500; color: var(--eh-err); }
.ol-sign__go { margin-top: 18px; width: 100%; height: 50px; font-size: 16px; }
.ol-sign__demo { margin: 18px 0 0; font-size: 14px; color: var(--eh-mute); }

/* history: only a deleted entry has a button (Bring it back); the other rows keep the column empty so the columns line up */
/* (E1b: the three columns are for a wide screen only; below the kit's own 760px break the kit stacks a row in one column, and this rule used to override that and
   squeezed the words of a History row to one letter per line on a phone. The empty last column is then not drawn at all.) */
@media (min-width: 761px) {
  .ehd-list.hist .row { grid-template-columns: minmax(0, 3fr) 200px 170px; }
  .ehd-list.hist .ac { display: flex; }
  .ehd-list.hist .row:not([data-del]) .ac { visibility: hidden; }
  .ehd-list.hist .row.hd > div:last-child { display: block; }
}
@media (max-width: 760px) {
  .ehd-list.hist .row:not([data-del]) .ac { display: none; }
}

/* a post written in the demo has no web address of its own (FIX-DEMO-5): up to 1100px wide the kit prints the row's address under the title from its data-path, so that line is replaced here
   too (above 1100px the Web address column says it, demo-api.js) */
@media (max-width: 1100px) {
  .ehd-list .row[data-path^="/blog/view/"] .ti::after { content: "In this browser only"; }
}
@media (max-width: 1100px) {
  .ehd-top { padding: 0 16px; }
  .ehd-rail { position: static; height: auto; overflow: visible; }
  .ehd-t { font-size: 38px; }
}
@media (max-width: 480px) {
  .ol-sign__box { padding: 28px 22px 24px; }
}
/* on a phone her full name stays whole in the top bar: a smaller name and no ellipsis; the small CONTENT label stays */
@media (max-width: 640px) {
  .ehd-brand { font-size: 18px; gap: 8px; flex: none; }
  .ehd-brand::before { width: 26px; height: 26px; }
  .ehd-sitename { overflow: visible; text-overflow: clip; }
  .ehd-brand small { font-size: 10px; }
  .ehd-top { gap: 6px; }
}
/* the Overview has one card (Pages): it spans a comfortable width instead of leaving the kit's four columns empty */
@media (min-width: 1101px) { .ehd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
