/* ESS admin shell (Owner-approved redesign, 2026-10-14). Applies only when shell.js adds body.ess-shell (admins). */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ess-navy-900: #0a1730; --ess-navy-800: #0e1f3f; --ess-navy-700: #14295a;
  --ess-gold: #c9a464; --ess-gold-deep: #9b7a43; --ess-gold-soft: #e2c793;
  --ess-side-w: 208px;
}

body.ess-shell { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
body.ess-shell aside.side {
  width: var(--ess-side-w); flex: 0 0 var(--ess-side-w); min-height: 100vh; position: sticky; top: 0; align-self: flex-start;
  max-height: 100vh; overflow-y: auto; padding: 14px 9px 24px; color: #fff;
  background: linear-gradient(180deg, var(--ess-navy-800) 0%, var(--ess-navy-900) 100%);
}
body.ess-shell .ess-brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 2px 0 26px; }
body.ess-shell .ess-mark {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 50px; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(180deg, #f1d79d 0%, #c9a464 55%, #a8853f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.ess-shell .ess-line1 { margin-top: 8px; font-size: 9.5px; letter-spacing: 1.9px; text-transform: uppercase; color: #fff; font-weight: 500; }
body.ess-shell .ess-line2 { margin-top: 3px; font-size: 6.6px; letter-spacing: 1.2px; text-transform: uppercase; color: #dfe4ee; }
body.ess-shell .ess-menu { display: none; }

body.ess-shell .ess-nav { display: flex; flex-direction: column; gap: 4px; }
body.ess-shell .ess-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 4px;
  color: #fff; text-decoration: none; font-size: 13px; white-space: nowrap; font-weight: 500; line-height: 1.2;
}
body.ess-shell .ess-item:hover { background: rgba(255,255,255,.06); }
body.ess-shell .ess-item.on {
  background: linear-gradient(90deg, #8f7140 0%, #a98855 60%, #9a7a47 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(0,0,0,.25);
}
body.ess-shell .ess-item .ess-ic { width: 22px; height: 22px; flex: 0 0 22px; color: #fff; }
body.ess-shell .ess-ic svg { width: 100%; height: 100%; display: block; }
body.ess-shell .ess-sub { display: flex; flex-direction: column; margin: 2px 0 6px 48px; border-left: 1px solid rgba(201,164,100,.35); }
body.ess-shell .ess-subitem { color: #c9d2e3; text-decoration: none; font-size: 12.5px; padding: 6px 10px; }
body.ess-shell .ess-subitem:hover { color: #fff; }
body.ess-shell .ess-subitem.on { color: var(--ess-gold-soft); font-weight: 600; }
body.ess-shell .ess-subitem.ess-tert { padding-left: 20px; font-size: 12px; color: #9fabc2; }

@media (max-width: 900px) {
  body.ess-shell { flex-direction: column; }
  body.ess-shell aside.side { width: auto; flex: none; min-height: 0; max-height: none; position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 10px 16px; }
  body.ess-shell .ess-brand { flex-direction: row; align-items: baseline; gap: 10px; padding: 0; }
  body.ess-shell .ess-mark { font-size: 32px; }
  body.ess-shell .ess-line1 { margin: 0; } body.ess-shell .ess-line2 { display: none; }
  body.ess-shell .ess-menu { display: inline-block; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 5px 12px; font: inherit; }
  body.ess-shell .ess-nav { display: none; width: 100%; margin-top: 10px; }
  body.ess-shell.ess-nav-open .ess-nav { display: flex; }
}
/* Pages' own ".side nav a" rules (admin.css, styles.css) must not paint shell links. */
body.ess-shell .ess-nav a { margin: 0; border-radius: 0; border-top: 0; display: flex; }
body.ess-shell .ess-nav a.ess-item { border-radius: 4px; }
body.ess-shell .ess-nav a.ess-subitem, body.ess-shell .ess-nav a.ess-subitem:hover, body.ess-shell .ess-nav a.ess-subitem.on { background: transparent; }
body.ess-shell .ess-subitem.ess-tert.on { color: var(--ess-gold-soft); font-weight: 600; }
/* ESS brand palette (Owner 2026-10-14: black, gold, white): a black sidebar; the gold active state stays. */
body.ess-shell aside.side { background: #000; }   /* pure black, so the black logo has no visible edge */
body.ess-shell .ess-sub { border-left-color: rgba(201,164,100,.45); }
/* The ESS logo, black version (Owner 2026-10-15: "I think the black logo will look better"), straight on the black sidebar. */
body.ess-shell .ess-brand { padding: 4px 0 18px; }
body.ess-shell .ess-logo { display: block; width: 168px; height: auto; }
@media (max-width: 900px) { body.ess-shell .ess-logo { width: 52px; } }
