/* ===== Bible page base, scoped to the LC menu (zero specificity via :where, so lc-nav rules below win exactly as on Bible) ===== */
:where(.lcn-edge-tab, .lcn-trigger, .lcn-backdrop, .lcn-drawer, .lcn-edge-strip),
:where(.lcn-edge-tab, .lcn-trigger, .lcn-drawer) *,
:where(.lcn-edge-tab, .lcn-trigger, .lcn-drawer) *::before,
:where(.lcn-edge-tab, .lcn-trigger, .lcn-drawer) *::after,
:where(.lcn-edge-tab, .lcn-trigger, .lcn-drawer)::before,
:where(.lcn-edge-tab, .lcn-trigger, .lcn-drawer)::after { box-sizing: border-box; }
:where(.lcn-drawer) {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px; font-weight: 400; font-style: normal; letter-spacing: normal;
  color: #1a1614; line-height: 1.4;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(button.lcn-edge-tab, button.lcn-trigger) {
  font: 400 16px/1.4 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1a1614; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  cursor: pointer; border: none; background: none; padding: 0; margin: 0;
}
:where(.lcn-drawer) :where(button, input) { font: inherit; color: inherit; }
:where(.lcn-drawer) :where(button) { cursor: pointer; border: none; background: none; padding: 0; margin: 0; }
:where(.lcn-drawer) :where(a) { color: #7a2e3a; text-decoration: none; }
:where(.lcn-drawer) :where(a:hover) { text-decoration: underline; }
:where(.lcn-drawer) :where(h2) { margin-top: 0; }

/* LC Features & Platforms drawer — class prefix lcn-
   Tokens: CTO + Sphere (navy / cream / gold) + Rigo purple tab chrome. */
:root {
  --lcn-ink: #0b1220;
  --lcn-navy: #1a2744;
  --lcn-navy-mid: #243556;
  --lcn-cream: #f7f1e8;
  --lcn-cream-2: #efe6d8;
  --lcn-cream-soft: #fbf7f1;
  --lcn-gold: #c9a227;
  --lcn-gold-soft: #e8d48a;
  --lcn-gold-deep: #a8841a;
  --lcn-muted: #8a93a6;
  --lcn-drawer-w: min(1120px, 94vw);
  --lcn-ease: cubic-bezier(.22, .61, .36, 1);
  --lcn-z-backdrop: 10000;
  --lcn-z-drawer: 10010;
  --lcn-z-edge: 10005;
  --lcn-tab-purple: #292477; /* exact closed-ref rgb(41,36,119) */
  --lcn-tab-purple-hover: #3230a0;
  --lcn-tab-purple-deep: #30288a;
  --lcn-edge-navy: #0a122a; /* retained for LC mark circle only */
  --lcn-edge-chrome: #f6f1e7; /* parchment closed-chrome — no black page edges (Rigo) */
  --lcn-edge-chrome-soft: #fbf8f2;
  --lcn-header-lav: #d1cde4;
  --lcn-label: #2a2a3a;
  --lcn-tab-w: 40px;
  --lcn-tab-radius: 20px; /* half width → true semicircular left edge on right-side tab */
  --lcn-strip-w: 40px;    /* parchment edge strip (no black/navy gutters) */
  --lcn-font: "Inter", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.lcn-on .shell > .side {
  position: relative;
  z-index: 1;
}

.mi {
  font-family: "Material Icons Outlined", "Material Icons", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

/* —— Closed chrome: RIGHT edge, parchment strip (Rigo: no black Bible chrome) ——
   40px purple pill, left-only radius 20px (smooth semicircle into parchment),
   soft glow, white SHOW label, < chevrons. */
.lcn-edge-strip {
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  bottom: 0;
  width: var(--lcn-strip-w);
  background: var(--lcn-edge-chrome);
  box-sizing: border-box;
  z-index: var(--lcn-z-edge);
  pointer-events: none;
}
.lcn-edge-tab {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--lcn-z-edge) + 1);
  width: var(--lcn-tab-w);
  height: min(530px, 88vh);
  min-height: 400px;
  padding: 20px 0 22px;
  border: none;
  /* Left-only fully rounded — bubble curve into parchment; right flush to viewport */
  border-radius: var(--lcn-tab-radius) 0 0 var(--lcn-tab-radius);
  background: var(--lcn-tab-purple);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* Soft glow — not a hard drop shadow */
  box-shadow:
    0 0 18px rgba(41, 36, 119, .55),
    0 0 6px rgba(41, 36, 119, .4),
    -2px 0 14px rgba(26, 22, 20, .12);
  transition: background .18s ease, box-shadow .18s ease, opacity .2s var(--lcn-ease), visibility .2s;
  font-family: var(--lcn-font);
}
.lcn-edge-tab:hover {
  background: var(--lcn-tab-purple-hover);
  box-shadow:
    0 0 22px rgba(50, 48, 160, .6),
    0 0 8px rgba(41, 36, 119, .45),
    -2px 0 16px rgba(26, 22, 20, .14);
}
.lcn-edge-tab:focus-visible {
  outline: 2px solid var(--lcn-gold);
  outline-offset: 2px;
}
.lcn-edge-tab-chev {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-family: var(--lcn-font);
  text-shadow: 0 0 6px rgba(255, 255, 255, .35);
}
.lcn-edge-tab-label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: none; /* right-edge tab: top→bottom */
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  font-family: var(--lcn-font);
  text-shadow: 0 0 6px rgba(255, 255, 255, .25);
}
body.lcn-drawer-open .lcn-edge-strip,
body.lcn-drawer-open .lcn-edge-tab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Optional hamburger — hidden; SHOW tab is primary */
.lcn-trigger {
  display: none !important;
}

/* Backdrop */
.lcn-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--lcn-z-backdrop);
  background: rgba(11, 18, 32, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--lcn-ease), visibility .22s;
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.lcn-backdrop.lcn-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* —— Drawer (open): white panel + LC header + grids + HIDE tab —— */
.lcn-drawer {
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  bottom: 0;
  z-index: var(--lcn-z-drawer);
  width: var(--lcn-drawer-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--lcn-label);
  box-shadow: -12px 0 48px rgba(11, 18, 32, .35);
  transform: translateX(105%);
  transition: transform .28s var(--lcn-ease);
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  font-family: var(--lcn-font);
}
.lcn-drawer.lcn-open { transform: translateX(0); }

/* Lavender LC header */
.lcn-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--lcn-header-lav);
  border-bottom: 1px solid rgba(255, 255, 255, .85);
  min-height: 56px;
  box-sizing: border-box;
}
.lcn-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lcn-edge-navy); /* dark navy circle + white LC */
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  flex: none;
  font-family: var(--lcn-font);
}
.lcn-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.lcn-brand-title {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.lcn-brand-title strong,
.lcn-brand strong {
  position: relative;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: var(--lcn-navy); /* bold navy title on lavender header */
  letter-spacing: .01em;
  line-height: 1.2;
}
/* Header title: hover = underline ONLY; click = Directory MOS hub when href is live preview */
.lcn-brand-title:hover strong::after,
.lcn-brand-title:focus-visible strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--lcn-gold);
  border-radius: 1px;
}
.lcn-brand-title:focus-visible {
  outline: 2px solid var(--lcn-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.lcn-brand span { display: none; } /* screenshot: single title line */
.lcn-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1f1f2e; /* Rigo ref charcoal glyph rgb(31,31,46) */
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.lcn-close:hover {
  background: rgba(31, 31, 46, .08);
}
.lcn-close .mi { font-size: 22px; }

/* Header collapse control — exact Rigo glyph: vertical bar + left arrow */
.lcn-collapse-ico {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}


.lcn-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 28px 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 36, 119, .35) transparent;
  background: #fff;
}

/* Section titles — centered, clear hierarchy */
.lcn-sec {
  margin-bottom: 36px;
}
.lcn-sec:last-child { margin-bottom: 12px; }
.lcn-sec-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--lcn-tab-purple-deep);
  letter-spacing: .01em;
  font-family: var(--lcn-font);
}
.lcn-sec-title::after { display: none; }

/* Hide old platforms toggle chrome */
.lcn-sec-toggle,
.lcn-sec-meta,
.lcn-collapse[hidden] { display: none !important; }
.lcn-collapse:not([hidden]) {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Grid of circular thumbs + labels — cells must fit full labels (e.g. Communications) */
.lcn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px 16px;
  align-items: start;
}
.lcn-grid-features {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.lcn-grid-platforms {
  /* Was 7×minmax(0,1fr) — cells shrank and clipped "Communications" */
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
@media (max-width: 640px) {
  .lcn-grid-features,
  .lcn-grid-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lcn-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  min-width: 0;
  padding: 6px 6px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--lcn-label);
  overflow: visible;
  transition: background .15s ease, box-shadow .15s ease;
}
/* Hover = gold underline on label only (no navigation). Click = follow href only if real preview URL. */
.lcn-tile:hover,
.lcn-tile:focus-visible {
  background: transparent;
  box-shadow: none;
}
.lcn-tile:focus-visible {
  outline: 2px solid var(--lcn-gold);
  outline-offset: 2px;
}
.lcn-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(11, 18, 32, .12),
    0 2px 8px rgba(11, 18, 32, .18);
  position: relative;
  overflow: hidden;
}
.lcn-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, .42);
  border-radius: 50%;
}
.lcn-thumb .mi {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  line-height: 1;
}
.lcn-tile-label {
  position: relative;
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--lcn-label);
  font-family: var(--lcn-font);
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Hover = underline ONLY on Feature / Platform labels (no nav on hover; click follows real preview href) */
.lcn-tile:hover .lcn-tile-label::after,
.lcn-tile:focus-visible .lcn-tile-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--lcn-gold);
  border-radius: 1px;
}


/* Unconnected / reserved tiles — hover underline stays; click blocked in JS when href is # */
.lcn-tile.lcn-tile--nobot,
.lcn-tile[data-status="no-bot"] {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}
.lcn-tile.lcn-tile--nobot:hover,
.lcn-tile.lcn-tile--nobot:focus-visible,
.lcn-tile[data-status="no-bot"]:hover,
.lcn-tile[data-status="no-bot"]:focus-visible {
  background: transparent;
  box-shadow: none;
}
.lcn-tile[data-status="awaiting-preview"] {
  opacity: 0.85;
  cursor: default;
}
.lcn-tile[data-status="excluded"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.lcn-tile[data-status="connected"] {
  opacity: 1;
  cursor: pointer;
}

/* Row dividers between grid visual rows (subtle) */
.lcn-sec-features .lcn-grid,
.lcn-sec-platforms .lcn-grid {
  padding-bottom: 4px;
}

/* Footer strip (minimal — screenshot has no logout; keep compact note optional) */
.lcn-foot {
  display: none;
}

/* HIDE tab — on left edge of open (right-side) drawer; curve into parchment */
.lcn-hide-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--lcn-tab-w);
  background: var(--lcn-edge-chrome);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}
.lcn-hide-tab {
  position: absolute;
  top: 50%;
  /* Sit on the left edge of the drawer; curve bubbles into parchment gutter */
  left: 0;
  right: auto;
  transform: translateY(-50%);
  width: var(--lcn-tab-w);
  height: min(530px, 88vh);
  min-height: 400px;
  padding: 20px 0 22px;
  border: none;
  border-radius: var(--lcn-tab-radius) 0 0 var(--lcn-tab-radius);
  background: var(--lcn-tab-purple);
  color: #fff;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
  z-index: 3;
  font-family: var(--lcn-font);
  box-shadow:
    0 0 18px rgba(41, 36, 119, .55),
    0 0 6px rgba(41, 36, 119, .4);
  transition: background .18s ease, box-shadow .18s ease;
}
.lcn-drawer.lcn-open .lcn-hide-tab { display: flex; }
.lcn-hide-tab:hover {
  background: var(--lcn-tab-purple-hover);
  box-shadow:
    0 0 22px rgba(50, 48, 160, .6),
    0 0 8px rgba(41, 36, 119, .45);
}
.lcn-hide-tab:focus-visible {
  outline: 2px solid var(--lcn-gold);
  outline-offset: 2px;
}

/* Pad drawer content so it doesn't sit under HIDE rail (left edge) */
.lcn-drawer.lcn-open .lcn-scroll,
.lcn-drawer.lcn-open .lcn-head {
  padding-left: calc(28px + var(--lcn-tab-w));
}
.lcn-drawer.lcn-open .lcn-head {
  padding-left: calc(16px + var(--lcn-tab-w));
}

body.lcn-drawer-open { /* overflow unchanged */ }

body.lcn-drawer-open .leaflet-container,
body.lcn-drawer-open .leaflet-pane,
body.lcn-drawer-open .leaflet-top,
body.lcn-drawer-open .leaflet-bottom,
body.lcn-drawer-open .leaflet-control-container {
  z-index: 0 !important;
}
body.lcn-drawer-open header.top {
  z-index: 0;
  position: relative;
}

/* —— Bible copy only: resizable drawer (grip on inner, page-facing edge) —— */
.lcn-resize-grip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lcn-tab-w); /* right-side drawer: just inside the HIDE rail on the left edge */
  right: auto;
  width: 14px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  background: var(--lcn-cream-soft);
  border-left: 1px solid var(--lcn-cream-2);
  border-right: 1px solid var(--lcn-cream-2);
  box-sizing: border-box;
  transition: background .15s ease;
}
.lcn-drawer[data-lcn-side="left"] .lcn-resize-grip {
  left: auto;
  right: 0;
}
.lcn-drawer.lcn-open .lcn-resize-grip { display: flex; }
.lcn-resize-grip:hover,
.lcn-drawer.lcn-resizing .lcn-resize-grip {
  background: var(--lcn-cream-2);
}
.lcn-resize-grip:focus-visible {
  outline: 2px solid var(--lcn-gold);
  outline-offset: -2px;
}
.lcn-resize-grip__dots {
  width: 6px;
  height: 44px;
  border-radius: 3px;
  background:
    radial-gradient(circle, var(--lcn-gold-deep) 1.3px, transparent 1.6px) 0 0 / 6px 7px repeat-y;
  opacity: .75;
}
.lcn-drawer.lcn-resizing { transition: none; user-select: none; }
.lcn-drawer.lcn-resizing * { cursor: ew-resize !important; }
/* keep content clear of the grip */
.lcn-drawer.lcn-open:not([data-lcn-side="left"]) .lcn-scroll {
  padding-left: calc(28px + var(--lcn-tab-w) + 14px);
}
.lcn-drawer.lcn-open:not([data-lcn-side="left"]) .lcn-head {
  padding-left: calc(16px + var(--lcn-tab-w) + 14px);
}
.lcn-width-reset {
  flex: none;
  margin-left: auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--lcn-cream-2);
  border-radius: 8px;
  background: var(--lcn-cream-soft);
  color: var(--lcn-navy);
  font: 600 12px/1 var(--lcn-font);
  letter-spacing: .02em;
  cursor: pointer;
}
.lcn-width-reset:hover { background: var(--lcn-cream); border-color: var(--lcn-gold-soft); }
.lcn-width-reset:focus-visible { outline: 2px solid var(--lcn-gold); outline-offset: 2px; }
.lcn-width-reset + .lcn-close { margin-left: 0; }
/* Narrow drawer: header wraps so Reset / collapse never overlap the title */
.lcn-drawer.lcn-narrow .lcn-head { flex-wrap: wrap; row-gap: 8px; }
.lcn-drawer.lcn-narrow .lcn-brand { flex: 1 1 calc(100% - 60px); }
.lcn-drawer.lcn-narrow .lcn-width-reset { margin-left: auto; }

/* —— Bible copy only (Rigo): NOTHING in the top/bottom corners of the LC edge chrome ——
   - no full-height cream strips (closed .lcn-edge-strip, open .lcn-hide-rail): page/drawer shows through
   - SHOW/HIDE tabs are plain square vertical bars in the middle band only (no rounded caps, no corner chevrons, no glow)
   - drawer pinned by top/bottom (no 100dvh gap that let the dark backdrop show as a bottom band) */
.lcn-edge-strip,
.lcn-hide-rail {
  display: none !important;
  background: transparent !important;
  pointer-events: none !important;
}
.lcn-edge-tab,
.lcn-hide-tab {
  border-radius: 0;
  height: min(420px, calc(100vh - 240px));
  min-height: 0;
  padding: 12px 0;
  justify-content: center;
  box-shadow: none;
}
.lcn-edge-tab:hover,
.lcn-hide-tab:hover {
  box-shadow: none;
}
.lcn-edge-tab .lcn-edge-tab-chev,
.lcn-hide-tab .lcn-edge-tab-chev {
  display: none;
}
.lcn-drawer {
  height: auto;
  top: 0;
  bottom: 0;
  box-shadow: -10px 0 32px rgba(41, 36, 119, .12);
}
/* resize grip: middle band only, never in the drawer's corners */
.lcn-resize-grip {
  top: 120px;
  bottom: 120px;
  border-radius: 0;
}

/* Rigo: tabs not sharp — rounded corners (page-facing side 18px, screen-edge side softer 6px).
   Tab stays mid-height; corners of the screen/drawer stay clear. */
.lcn-edge-tab {
  border-radius: 18px 6px 6px 18px; /* right-edge tab: left side faces the page */
}
.lcn-hide-tab {
  border-radius: 18px 6px 6px 18px; /* sits on the drawer's left (page-facing) edge */
}
/* Open drawer: soften its page-facing corners */
.lcn-drawer:not([data-lcn-side="left"]) { border-radius: 14px 0 0 14px; }
.lcn-drawer[data-lcn-side="left"] { border-radius: 0 14px 14px 0; }

/* —— Bible copy: movable LC tab + drawer (anywhere; docks when dropped near an edge) —— */
/* closed tab: draggable; grip of dots = "drag me" hint (mid-tab, never in a corner) */
.lcn-edge-tab { touch-action: none; cursor: grab; }
.lcn-edge-tab.lcn-tab-dragging { cursor: grabbing; transition: none; opacity: .92; }
.lcn-edge-tab[data-lcn-edge="right"] { border-radius: 18px 6px 6px 18px; }
.lcn-edge-tab[data-lcn-edge="left"]  { border-radius: 6px 18px 18px 6px; }
.lcn-edge-tab[data-lcn-edge="float"] { border-radius: 18px; }
.lcn-tab-grip {
  flex: none;
  width: 12px;
  height: 16px;
  margin-bottom: 6px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .85) 1.3px, transparent 1.6px) 0 0 / 6px 6px;
  opacity: .9;
}

/* closed drawer slides off toward its anchored side */
.lcn-drawer[data-lcn-side="right"]:not(.lcn-open) { transform: translateX(110vw); }
.lcn-drawer[data-lcn-side="left"]:not(.lcn-open)  { transform: translateX(-110vw); }

/* header is the move handle */
.lcn-head { cursor: grab; touch-action: none; user-select: none; }
.lcn-head a, .lcn-head button { cursor: pointer; }
.lcn-drawer.lcn-moving { transition: none; }
.lcn-drawer.lcn-moving .lcn-head { cursor: grabbing; }

/* corners: docked right → round left; docked left → round right; floating → all round */
.lcn-drawer[data-lcn-dock="left"] { border-radius: 0 14px 14px 0; box-shadow: 10px 0 32px rgba(41, 36, 119, .12); }
.lcn-drawer[data-lcn-dock="right"] { border-radius: 14px 0 0 14px; }
.lcn-drawer[data-lcn-dock="float"] { border-radius: 14px; box-shadow: 0 16px 48px rgba(41, 36, 119, .18); }

/* page-facing edge when anchored LEFT: HIDE tab + grip move to the drawer's right edge */
.lcn-drawer[data-lcn-side="left"] .lcn-hide-tab {
  left: auto;
  right: 0;
  border-radius: 6px 18px 18px 6px;
}
.lcn-drawer[data-lcn-side="left"] .lcn-resize-grip {
  left: auto;
  right: var(--lcn-tab-w);
}
.lcn-drawer.lcn-open[data-lcn-side="left"] .lcn-scroll {
  padding-left: 28px;
  padding-right: calc(28px + var(--lcn-tab-w) + 14px);
}
.lcn-drawer.lcn-open[data-lcn-side="left"] .lcn-head {
  padding-left: 16px;
  padding-right: calc(16px + var(--lcn-tab-w) + 14px);
}
/* floating card: keep grip in its middle band */
.lcn-drawer[data-lcn-dock="float"] .lcn-resize-grip { top: 90px; bottom: 60px; }

/* —— Bible copy: resizable closed tab (corner grip bottom-right); content adapts to size —— */
.lcn-edge-tab {
  position: fixed;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  max-width: 120px;
  max-height: 520px;
  gap: 6px;
  box-sizing: border-box;
}
.lcn-edge-tab.lcn-tab-resizing { transition: none; }
.lcn-tab-lc {
  flex: none;
  font: 800 11px/1 var(--lcn-font);
  letter-spacing: .04em;
  color: #fff;
}
.lcn-tab-chev {
  flex: none;
  font: 700 15px/1 var(--lcn-font);
  color: #fff;
}
.lcn-edge-tab .lcn-edge-tab-label { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.lcn-edge-tab.lcn-tab-compact .lcn-edge-tab-label { display: none; }
.lcn-edge-tab.lcn-tab-compact { padding: 6px 0 10px; gap: 3px; }
.lcn-edge-tab.lcn-tab-tiny { padding: 3px 0 6px; gap: 1px; }
.lcn-edge-tab.lcn-tab-tiny .lcn-tab-grip { height: 8px; margin-bottom: 1px; background-size: 6px 4px; }
.lcn-edge-tab.lcn-tab-tiny .lcn-tab-lc { font-size: 9px; }
.lcn-edge-tab.lcn-tab-tiny .lcn-tab-chev { font-size: 12px; }
.lcn-tab-rz {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  touch-action: none;
  z-index: 2;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.8) 48% 56%, transparent 56% 70%,
      rgba(255,255,255,.8) 70% 78%, transparent 78%);
}
.lcn-edge-tab[data-lcn-edge="right"] .lcn-tab-rz { border-bottom-right-radius: 6px; }
.lcn-edge-tab[data-lcn-edge="left"] .lcn-tab-rz,
.lcn-edge-tab[data-lcn-edge="float"] .lcn-tab-rz { border-bottom-right-radius: 18px; }
/* Closed (off-screen) drawer casts no shadow onto the screen edge */
.lcn-drawer:not(.lcn-open) { box-shadow: none !important; }
