/* Clone-specific glue on top of notion.css: document scrolling, hover-only atomic classes, popups. */
html,
body {
  background: var(--c-bacPri);
}
.notion-app-inner {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.notion-frame {
  flex-grow: 1;
}
a {
  -webkit-tap-highlight-color: transparent;
}

/* layout variants Notion switches between (phone user agents, full-width pages) */
.layout.layout-phone { --content-width: 1fr; --margin-width: 18px }
.layout.layout-wide { --content-width: 1fr; --margin-width: 96px }

/* Notion's mobile scroller is its own compositing layer (affects text antialiasing) */
.notion-mobile .notion-scroller {
  transform: translate(0, 0);
  will-change: scroll-position, transform;
}

/* atomic classes that Notion only renders on hover / in popups */
@layer priority4 {
  .x1c1uobl { padding-inline-start: 0 }
  .xyri2b { padding-inline-end: 0 }
  .xxs79tx { row-gap: 0 }
  .x1o1pmfc { column-gap: 0 }
  .xixxii4 { position: fixed }
  .x47corl { pointer-events: none }
  .x10l6tqk { position: absolute }
  .x13vifvy { top: 0 }
  .x1o0tod { inset-inline-start: 0 }
  .x1n2onr6 { position: relative }
}
@layer priority5 {
  .xvy4d1p { width: 24px }
  .x14atkfc { width: auto }
  .xlup9mm { height: 16px }
  .x5yr21d { height: 100% }
}

/* image block hover: actions pill */
.notion-image-frame:hover .notion-image-menu,
.notion-image-menu.open,
.notion-image-menu:focus-within {
  opacity: 1 !important;
}
@media (hover: none) {
  .notion-image-menu { display: none }
}

/* popups (image actions menu, toc panel, mobile breadcrumb) */
.ey-portal {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.ey-menu {
  position: fixed;
  pointer-events: auto;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  border-radius: 10px;
  background: var(--c-popBac, var(--c-bacEle));
  box-shadow: var(--c-shaOutLg);
  outline: 1px solid #0000;
  padding: 4px 0;
  color: var(--c-texPri);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: normal;
  user-select: none;
  animation: ey-pop-in 120ms ease;
}
@keyframes ey-pop-in {
  from { opacity: 0; transform: scale(0.98) }
  to { opacity: 1; transform: none }
}
.ey-menu-label {
  padding: 8px 14px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-texSec);
}
.ey-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0 4px;
  padding: 0 10px 0 8px;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.ey-menu-item:hover,
.ey-menu-item.active {
  background: var(--ca-bacIntTra, var(--ca-bacTerTra));
}
.ey-menu-item svg {
  width: 20px;
  height: 20px;
  fill: var(--c-icoPri);
  flex-shrink: 0;
}
.ey-menu-item .ey-kbd {
  margin-inline-start: auto;
  color: var(--c-texTer);
  font-size: 12px;
}

/* full-screen image viewer */
.ey-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 15, 0.92);
  animation: ey-fade 150ms ease;
  cursor: zoom-out;
}
@keyframes ey-fade {
  from { opacity: 0 }
}
.ey-viewer img {
  max-width: calc(100vw - 96px);
  max-height: calc(100vh - 96px);
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: default;
}
.ey-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.ey-viewer-close svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.9);
}
.ey-viewer-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
@media (max-width: 600px) {
  .ey-viewer img {
    max-width: 100vw;
    max-height: 100vh;
  }
}

/* floating table of contents: dash strip */
.notion-toc-dash {
  background-color: var(--ca-graBacTerTra);
  box-shadow: none;
}
.notion-toc-dash.active {
  background-color: var(--c-palGra800);
}
.notion-dark-theme .notion-toc-dash.active {
  box-shadow: 0px 0px 3px var(--c-palGra800);
}
@media (prefers-color-scheme: dark) {
  :root:not(.notion-light-theme) .notion-toc-dash.active {
    box-shadow: 0px 0px 3px var(--c-palGra800);
  }
}

/* floating table of contents panel */
.ey-toc-panel {
  position: fixed;
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  width: 258px;
  padding-inline-start: 16px;
  cursor: default;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", "Noto Sans Arabic", "Noto Sans Hebrew", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  letter-spacing: normal;
  line-height: 1.5;
  transition: opacity 200ms ease, transform 200ms ease;
}
.ey-toc-card {
  width: 242px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 12px 0;
  margin-inline-end: 10px;
  background-color: var(--c-bacPri);
  box-shadow: var(--c-shaOutLg);
  border-radius: 14px;
  position: relative;
  overflow-y: auto;
}
.ey-toc-list {
  padding: 6px;
  max-width: 500px;
  width: 100%;
  cursor: default;
}
.ey-toc-entry {
  display: block;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  color: var(--c-texSec);
  user-select: none;
}
.ey-toc-entry.active {
  color: var(--c-bluTexAccPri);
}
.ey-toc-entry:last-child {
  padding-bottom: 12px;
}
.ey-toc-entry > div {
  display: flex;
  align-items: center;
}
.ey-toc-entry:hover > div {
  background: var(--ca-bacTerTra);
  border-radius: 4px;
  color: var(--c-texPri);
}
.ey-toc-entry span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ey-toc-entry > div > div {
  font-size: 13px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  padding: 4px;
}

/* toggle blocks on the public site */
.notion-toggle-button:hover {
  background: var(--ca-bacTerTra);
}

/* briefly mark a block reached through a #link */
.ey-flash {
  animation: ey-flash 1.6s ease;
  border-radius: 4px;
}
@keyframes ey-flash {
  0%, 40% { background: var(--ca-bluBacTerTra, rgba(35, 131, 226, 0.14)) }
  100% { background: transparent }
}
