:root {
  --notion-font: var(--font-sans);
  --fg-color: rgb(55, 53, 47);
  --fg-color-0: rgba(55, 53, 47, 0.09);
  --fg-color-1: rgba(55, 53, 47, 0.16);
  --fg-color-2: rgba(55, 53, 47, 0.4);
  --fg-color-3: rgba(55, 53, 47, 0.6);
  --fg-color-4: #000;
  --fg-color-5: #e6e5e3;
  --fg-color-6: rgba(55, 53, 47, 0.8);
  --fg-color-7: rgba(55, 53, 47, 0.5);
  --fg-color-icon: var(--fg-color);

  --bg-color: #fff;
  --bg-color-0: rgba(135, 131, 120, 0.15);
  --bg-color-1: rgb(247, 246, 243);
  --bg-color-2: rgba(135, 131, 120, 0.15);

  --select-color-0: rgb(46, 170, 220);
  --select-color-1: rgba(45, 170, 219, 0.3);
  --select-color-2: #d9eff8;

  /* Notion 2025 color palette — extracted from live Notion CSS variables */
  --notion-red: #cf5148;
  --notion-pink: #c14c8a;
  --notion-blue: #387dc9;
  --notion-purple: #9a6bb4;
  --notion-teal: #50946e;
  --notion-yellow: #cb9434;
  --notion-orange: #d27b2d;
  --notion-brown: #9f765a;
  --notion-gray: #7d7a75;

  --notion-red_background: #fce9e7;
  --notion-pink_background: #fae9f1;
  --notion-blue_background: #e5f2fc;
  --notion-purple_background: #f3ebf9;
  --notion-teal_background: #e8f1ec;
  --notion-yellow_background: #f9f3dc;
  --notion-orange_background: #fbebde;
  --notion-brown_background: #f5ede9;
  --notion-gray_background: #f0efed;

  --notion-red_background_co: #f7d9d5;
  --notion-pink_background_co: #f4d8e4;
  --notion-blue_background_co: #cee3f7;
  --notion-purple_background_co: #e8dbf2;
  --notion-teal_background_co: #d7e6dd;
  --notion-yellow_background_co: #f2e3b7;
  --notion-orange_background_co: #f3ddcb;
  --notion-brown_background_co: #ebdfd7;
  --notion-gray_background_co: #e6e5e3;

  --notion-item-blue: rgba(0, 120, 223, 0.2);
  --notion-item-orange: rgba(245, 93, 0, 0.2);
  --notion-item-green: rgba(0, 135, 107, 0.2);
  --notion-item-pink: rgba(221, 0, 129, 0.2);
  --notion-item-brown: rgba(140, 46, 0, 0.2);
  --notion-item-red: rgba(255, 0, 26, 0.2);
  --notion-item-yellow: rgba(233, 168, 0, 0.2);
  --notion-item-default: rgba(206, 205, 202, 0.5);
  --notion-item-purple: rgba(103, 36, 222, 0.2);
  --notion-item-gray: rgba(155, 154, 151, 0.4);

  --notion-max-width: 720px;
  --notion-header-height: 45px;
}

.dark-mode {
  --fg-color: rgba(255, 255, 255, 0.9);
  --fg-color-0: var(--fg-color);
  --fg-color-1: var(--fg-color);
  --fg-color-2: var(--fg-color);
  --fg-color-3: var(--fg-color);
  --fg-color-4: var(--fg-color);
  --fg-color-5: rgba(255, 255, 255, 0.7);
  --fg-color-6: #fff;
  --fg-color-icon: #fff;

  --bg-color: #2f3437;
  --bg-color-0: rgb(71, 76, 80);
  --bg-color-1: rgb(63, 68, 71);
  --bg-color-2: rgba(135, 131, 120, 0.15);

  --notion-red: rgb(255, 115, 105);
  --notion-pink: rgb(226, 85, 161);
  --notion-blue: rgb(82, 156, 202);
  --notion-purple: rgb(154, 109, 215);
  --notion-teal: rgb(77, 171, 154);
  --notion-yellow: rgb(255, 220, 73);
  --notion-orange: rgb(255, 163, 68);
  --notion-brown: rgb(147, 114, 100);
  --notion-gray: rgba(151, 154, 155, 0.95);
  --notion-red_background: rgb(89, 65, 65);
  --notion-pink_background: rgb(83, 59, 76);
  --notion-blue_background: rgb(54, 73, 84);
  --notion-purple_background: rgb(68, 63, 87);
  --notion-teal_background: rgb(53, 76, 75);
  --notion-yellow_background: rgb(89, 86, 59);
  --notion-orange_background: rgb(89, 74, 58);
  --notion-brown_background: rgb(67, 64, 64);
  --notion-gray_background: rgb(69, 75, 78);
  --notion-red_background_co: rgba(89, 65, 65, 0.3);
  --notion-pink_background_co: rgba(83, 59, 76, 0.3);
  --notion-blue_background_co: rgba(120, 162, 187, 0.3);
  --notion-purple_background_co: rgba(68, 63, 87, 0.3);
  --notion-teal_background_co: rgba(53, 76, 75, 0.3);
  --notion-yellow_background_co: rgba(89, 86, 59, 0.3);
  --notion-orange_background_co: rgba(89, 74, 58, 0.3);
  --notion-brown_background_co: rgba(67, 64, 64, 0.3);
  --notion-gray_background_co: rgba(69, 75, 78, 0.3);
}

.notion * {
  box-sizing: border-box;
}

.notion {
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-color);
  caret-color: var(--fg-color);
  font-family: var(--notion-font);
}

.notion > * {
  padding: 3px 0;
}

.notion * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.notion *::selection {
  background: var(--select-color-1);
}

.notion *,
.notion *:focus {
  outline: 0;
}

.notion-page img {
  filter: none !important;
  background: none !important;
}

.notion-page-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1300px) and (min-height: 300px) {
  .notion-page-content-has-aside {
    display: flex;
    flex-direction: row;
    width: calc((100vw + var(--notion-max-width)) / 2);
  }

  .notion-page-content-has-aside .notion-aside {
    display: flex;
  }

  .notion-page-content-has-aside .notion-page-content-inner {
    width: var(--notion-max-width);
    max-width: var(--notion-max-width);
  }
}

.notion-page-content-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.notion-aside {
  position: sticky;
  top: 148px;
  z-index: 101;
  /* top: calc((100vh - 48px - 100%) / 2); */

  align-self: flex-start;
  flex: 1;

  display: none;
  flex-direction: column;
  align-items: center;
}

.notion-aside-table-of-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: calc(100vh - 148px - 16px);
  min-width: 222px;
  overflow: auto;
  background: var(--bg-color);
  border-radius: 4px;
}

.notion-aside-table-of-contents-header {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.1em;
  word-break: break-word;
}

.notion-aside-table-of-contents .notion-table-of-contents-item {
  line-height: 1;
}

.notion-aside-table-of-contents
  .notion-table-of-contents-item-indent-level-0:first-of-type {
  margin-top: 0;
}

.notion-aside-table-of-contents .notion-table-of-contents-item-indent-level-0 {
  margin-top: 0.25em;
}

.notion-aside-table-of-contents .notion-table-of-contents-item-indent-level-1 {
  font-size: 13px;
}

.notion-aside-table-of-contents .notion-table-of-contents-item-indent-level-2 {
  font-size: 12px;
}

.notion-aside-table-of-contents .notion-table-of-contents-item-body {
  border: 0 none;
}

.notion-table-of-contents-active-item {
  color: var(--select-color-0) !important;
}

.notion-app {
  position: relative;
  background: var(--bg-color);
  min-height: 100vh;
}

.notion-viewport {
  position: relative;
  padding: 0px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.medium-zoom-overlay {
  z-index: 300;
}

.medium-zoom-image {
  border-radius: 0;
}

.medium-zoom-image--opened {
  margin: unset !important;
  min-width: unset !important;
  min-height: unset !important;
  z-index: 301;
}

.notion-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
}

.notion-page-scroller {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  min-height: calc(100vh - var(--notion-header-height));
}

.notion-red,
.notion-red_co {
  color: var(--notion-red);
}
.notion-pink,
.notion-pink_co {
  color: var(--notion-pink);
}
.notion-blue,
.notion-blue_co {
  color: var(--notion-blue);
}
.notion-purple,
.notion-purple_co {
  color: var(--notion-purple);
}
.notion-teal,
.notion-teal_co {
  color: var(--notion-teal);
}
.notion-yellow,
.notion-yellow_co {
  color: var(--notion-yellow);
}
.notion-orange,
.notion-orange_co {
  color: var(--notion-orange);
}
.notion-brown,
.notion-brown_co {
  color: var(--notion-brown);
}
.notion-gray,
.notion-gray_co {
  color: var(--notion-gray);
}
.notion-red_background {
  background-color: var(--notion-red_background);
}
.notion-pink_background {
  background-color: var(--notion-pink_background);
}
.notion-blue_background {
  background-color: var(--notion-blue_background);
}
.notion-purple_background {
  background-color: var(--notion-purple_background);
}
.notion-teal_background {
  background-color: var(--notion-teal_background);
}
.notion-yellow_background {
  background-color: var(--notion-yellow_background);
}
.notion-orange_background {
  background-color: var(--notion-orange_background);
}
.notion-brown_background {
  background-color: var(--notion-brown_background);
}
.notion-gray_background {
  background-color: var(--notion-gray_background);
}
.notion-red_background_co {
  background-color: var(--notion-red_background_co);
}
.notion-pink_background_co {
  background-color: var(--notion-pink_background_co);
}
.notion-blue_background_co {
  background-color: var(--notion-blue_background_co);
}
.notion-purple_background_co {
  background-color: var(--notion-purple_background_co);
}
.notion-teal_background_co {
  background-color: var(--notion-teal_background_co);
}
.notion-yellow_background_co {
  background-color: var(--notion-yellow_background_co);
}
.notion-orange_background_co {
  background-color: var(--notion-orange_background_co);
}
.notion-brown_background_co {
  background-color: var(--notion-brown_background_co);
}
.notion-gray_background_co {
  background-color: var(--notion-gray_background_co);
}

.notion-item-blue {
  background-color: var(--notion-item-blue);
  color: var(--notion-item-text-blue);
}
.notion-item-orange {
  background-color: var(--notion-item-orange);
  color: var(--notion-item-text-orange);
}
.notion-item-green {
  background-color: var(--notion-item-green);
  color: var(--notion-item-text-green);
}
.notion-item-pink {
  background-color: var(--notion-item-pink);
  color: var(--notion-item-text-pink);
}
.notion-item-brown {
  background-color: var(--notion-item-brown);
  color: var(--notion-item-text-brown);
}
.notion-item-red {
  background-color: var(--notion-item-red);
  color: var(--notion-item-text-red);
}
.notion-item-yellow {
  background-color: var(--notion-item-yellow);
  color: var(--notion-item-text-yellow);
}
.notion-item-default,
.notion-item-default-inferred {
  background-color: var(--notion-item-default);
  color: var(--notion-item-text-default);
}
.notion-item-purple {
  background-color: var(--notion-item-purple);
  color: var(--notion-item-text-purple);
}
.notion-item-gray {
  background-color: var(--notion-item-gray);
  color: var(--notion-item-text-gray);
}

.notion-item-bullet-blue {
  background-color: var(--notion-item-bullet-blue);
}
.notion-item-bullet-orange {
  background-color: var(--notion-item-bullet-orange);
}
.notion-item-bullet-green {
  background-color: var(--notion-item-bullet-green);
}
.notion-item-bullet-pink {
  background-color: var(--notion-item-bullet-pink);
}
.notion-item-bullet-brown {
  background-color: var(--notion-item-bullet-brown);
}
.notion-item-bullet-red {
  background-color: var(--notion-item-bullet-red);
}
.notion-item-bullet-yellow {
  background-color: var(--notion-item-bullet-yellow);
}
.notion-item-bullet-default {
  background-color: var(--notion-item-bullet-default);
}
.notion-item-bullet-default-inferred {
  background-color: var(--notion-item-bullet-gray);
}
.notion-item-bullet-purple {
  background-color: var(--notion-item-bullet-purple);
}
.notion-item-bullet-gray {
  background-color: var(--notion-item-bullet-gray);
}

.notion b {
  font-weight: 600;
}

.notion-title {
  width: 100%;
  font-size: 2.5em;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.notion-h {
  position: relative;
  display: inline-block;

  font-weight: 600;
  line-height: 1.3;
  padding: 3px 2px;
  margin-bottom: 1px;

  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.notion-h1 {
  font-size: 1.875em;
  margin-top: 1.08em;
}

.notion-header-anchor {
  position: absolute;
  top: -54px;
  left: 0;
}

.notion-title + .notion-h1,
.notion-title + .notion-h2,
.notion-title + .notion-h3 {
  margin-top: 0;
}
/* TODO: notion-page-content */
.notion-h1:first-child {
  margin-top: 0;
}
/* .notion-h1:first-of-type {
  margin-top: 2px;
} */
.notion-h2 {
  font-size: 1.5em;
  margin-top: 1.1em;
}
.notion-h3 {
  font-size: 1.25em;
  margin-top: 1em;
}

.notion-h:hover .notion-hash-link {
  opacity: 1;
}

/* Add specific styles for headings in sync blocks */
.notion-sync-block .notion-h {
  display: block;
}

/* Preserve original styles for toggle headings */
details.notion-toggle .notion-h {
  display: inline;
}

.notion-hash-link {
  opacity: 0;
  text-decoration: none;
  float: left;
  margin-left: -20px;
  padding-right: 4px;
  fill: var(--fg-color-icon);
}

.notion-page-cover {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 30vh !important;
  min-height: 30vh !important;
  max-height: 30vh !important;
  padding: 0;
}

.notion-page-cover-wrapper {
  width: 100%;
  height: 30vh;
  min-height: 30vh;
  max-height: 30vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notion-collection-card-cover {
  overflow: hidden;
}

.notion-collection-card-cover span,
.notion-collection-card-cover img {
  min-height: 100% !important;
  max-height: 100% !important;
}

.notion-page-cover-wrapper span,
.notion-page-cover-wrapper img {
  width: 100% !important;
  height: 30vh !important;
  min-height: 30vh !important;
  max-height: 30vh !important;
}

.notion-page {
  position: relative;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}

.notion-full-page {
  padding-bottom: calc(max(10vh, 120px));
}

.notion-page-no-cover {
  margin-top: 48px !important;
  padding-top: 96px;
}

.notion-page-no-cover.notion-page-no-icon {
  padding-top: 0;
}

.notion-page-no-cover.notion-page-has-image-icon {
  padding-top: 148px;
}

.notion-page-has-cover.notion-page-no-icon {
  padding-top: 48px;
}

.notion-page-has-cover {
  padding-top: 96px;
}

.notion-page-has-cover.notion-page-has-icon.notion-page-has-text-icon {
  padding-top: 64px;
}

.notion-page-icon-hero {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.notion-page-icon-hero.notion-page-icon-image {
  width: 124px;
  height: 124px;
  margin-left: -62px;
}

.notion-page-icon-hero.notion-page-icon-span {
  height: 78px;
  width: 78px;
  margin-left: -39px;
}

.notion-page-icon-hero .notion-page-icon {
  position: relative;
  display: block;
}

.notion-page-has-cover .notion-page-icon-hero.notion-page-icon-image {
  top: -62px;
}

.notion-page-has-cover .notion-page-icon-hero.notion-page-icon-span {
  top: -42px;
}

.notion-page-icon-hero.notion-page-icon-span .notion-page-icon {
  font-size: 78px;
  line-height: 1.1;
  margin-left: 0;
  color: var(--fg-color-icon);
}

.notion-page-icon-hero.notion-page-icon-image .notion-page-icon {
  display: block;
  border-radius: 3px;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.notion-page-icon-hero.notion-page-icon-image img {
  object-fit: cover;
}

.notion-page-icon {
  font-family:
    "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Noto Color Emoji",
    "Segoe UI Symbol", "Android Emoji", EmojiSymbols;
  font-size: 1.1em;
  fill: var(--fg-color-6);
  color: var(--fg-color-icon);
}

.notion-search .notion-page-icon {
  fill: var(--fg-color-6);
  color: var(--fg-color);
}

img.notion-page-icon,
svg.notion-page-icon {
  display: block;
  object-fit: fill;
  border-radius: 3px;
  max-width: 100%;
  max-height: 100%;
}

.notion-page-icon-inline {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  margin: 0 4px;
}

.notion-page-icon-inline span {
  max-width: 100%;
  max-height: 100%;
}

.notion-page-icon-inline img {
  object-fit: cover;
}

.notion-page {
  box-sizing: border-box;
  width: var(--notion-max-width);
  padding-left: calc(min(16px, 8vw));
  padding-right: calc(min(16px, 8vw));
}

.notion-full-width {
  box-sizing: border-box;
  --notion-max-width: calc(min(1920px, 98vw));
  padding-left: calc(min(96px, 8vw));
  padding-right: calc(min(96px, 8vw));
}

.notion-small-text {
  font-size: 14px;
}

.notion-quote {
  display: block;
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  border-left: 3px solid currentcolor;
  padding: 0.2em 0.9em;
  margin: 6px 0;
  font-size: 1.2em;
}

.notion-hr {
  width: 100%;
  margin: 6px 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--bg-color-0);
}

.notion-link {
  color: inherit;
  word-break: break-word;
  text-decoration: inherit;
  border-bottom: 0.05em solid;
  border-color: var(--fg-color-2);
  opacity: 0.7;
  transition:
    border-color 100ms ease-in,
    opacity 100ms ease-in;
}

.notion-link:hover {
  border-color: var(--fg-color-6);
  opacity: 1;
}

.notion-collection .notion-link {
  opacity: 1;
}

.notion-blank {
  width: 100%;
  min-height: 1rem;
  padding: 3px 2px;
  margin-top: 1px;
  margin-bottom: 1px;
}

.notion-page-link {
  display: flex;
  color: var(--fg-color);
  text-decoration: none;
  width: 100%;
  height: 30px;
  margin: 1px 0;
  transition: background 120ms ease-in 0s;
}

.notion-page-link:hover {
  background: var(--bg-color-0);
}

.notion-collection-card .notion-page-link {
  height: unset;
  margin: 0;
  transition: unset;
}
.notion-collection-card .notion-page-link {
  background: unset;
}

.notion-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--fg-color-icon);
}

.notion-page-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  line-height: 1.3;
  border-bottom: 1px solid var(--fg-color-1);
  margin: 4px 0;
}

.notion-inline-code {
  /* color: #eb5757; */
  padding: 0.2em 0.4em;
  background: var(--bg-color-2);
  border-radius: 3px;
  font-size: 85%;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.notion-inline-underscore {
  text-decoration: underline;
}

.notion-list {
  margin: 0;
  margin-block-start: 0.6em;
  margin-block-end: 0.6em;
}

.notion-list-disc {
  list-style-type: disc;
  padding-inline-start: 1.7em;
  margin-top: 0;
  margin-bottom: 0;
}
.notion-list-numbered {
  list-style-type: decimal;
  padding-inline-start: 1.6em;
  margin-top: 0;
  margin-bottom: 0;
}

.notion-list-disc li {
  padding-left: 0.1em;
}

.notion-list-numbered li {
  padding-left: 0.2em;
}

.notion-list li {
  padding: 6px 0;
  white-space: pre-wrap;
}

.notion-asset-wrapper {
  margin: 0.5rem 0;
  max-width: 100vw;
  min-width: 100%;
  align-self: center;
  display: flex;
  flex-direction: column;
}

.notion-asset-wrapper div {
  height: auto !important;
}

.notion-asset-wrapper-image {
  max-width: 100%;
}

.notion-asset-wrapper-full {
  max-width: 100vw;
}

.notion-asset-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.notion-asset-wrapper iframe {
  border: none;
  background: rgb(247, 246, 245);
}

.notion-text {
  width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 3px 2px;
  margin: 1px 0;
}

.notion-text:first-child {
  margin-top: 2px;
}

.notion-text-children {
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
}

.notion .notion-code {
  font-size: 85%;
}

.notion-code {
  position: relative;
  width: 100%;
  padding: 1em;
  margin: 4px 0;
  border-radius: 3px;
  tab-size: 2;
  display: block;
  box-sizing: border-box;
  overflow: auto;
  background: var(--bg-color-1);
  font-family:
    SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.notion-code-copy {
  position: absolute;
  top: 1em;
  right: 1em;
  user-select: none;
  z-index: 9;
  transition: opacity 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}

.notion-code-copy-button {
  display: inline-block;
  padding: 0.6em;
  font-size: 1.25em;
  line-height: 1em;
  cursor: pointer;

  transition:
    background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1),
    color 0.2s cubic-bezier(0.3, 0, 0.5, 1),
    border-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  box-shadow:
    0 1px 0 rgba(27, 31, 36, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background-color: #f6f8fa;

  color: #24292f;
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 6px;
}

.notion-code-copy-button:hover {
  background-color: #f3f4f6;
  border-color: rgba(27, 31, 36, 0.15);
  transition-duration: 0.1s;
}

.notion-code-copy-button:active {
  background: hsla(220, 14%, 93%, 1);
  border-color: rgba(27, 31, 36, 0.15);
  transition: none;
}

.notion-code .notion-code-copy {
  opacity: 0;
}

.notion-code:hover .notion-code-copy {
  opacity: 1;
}

.notion-code-copy-button svg {
  display: block;
}

.notion-code-copy-tooltip {
  pointer-events: none;
  position: absolute;
  bottom: -38px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  z-index: 99;
  font-size: 14px;
}

.notion-code-copy-tooltip > div {
  padding: 6px 8px;
  background: #222;
  color: #fff;
  border-radius: 6px;
}

.notion-column {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  padding-bottom: 12px;
}

.notion-column > *:first-child {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
}

.notion-column > *:last-child {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}

.notion-row {
  display: flex;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .notion-row {
    flex-direction: column;
  }

  .notion-row .notion-column {
    width: 100% !important;
  }

  .notion-row .notion-spacer {
    display: none;
  }
}

.notion-bookmark {
  margin: 4px 0;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  border: 1px solid var(--fg-color-1);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  user-select: none;
}

.dark-mode .notion-bookmark {
  border-color: var(--bg-color-0);
}

.notion-bookmark > div:first-child {
  flex: 4 1 180px;
  padding: 12px 14px 14px;
  overflow: hidden;
  text-align: left;
  color: var(--fg-color);
}

.notion-bookmark-title {
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 24px;
  margin-bottom: 2px;
}

.notion-bookmark-description {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
  height: 32px;
  overflow: hidden;
}

.notion-bookmark-link {
  display: flex;
  margin-top: 6px;
}

.notion-bookmark-link-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-right: 6px;
}

.notion-bookmark-link-text {
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-bookmark-link-icon img {
  max-width: 100%;
  max-height: 100%;
}

.notion-bookmark-image {
  flex: 1 1 180px;
  position: relative;
}

.notion-bookmark-image > * {
  position: absolute !important;
  width: 100%;
  height: 100%;
}

.notion-bookmark-image span {
  width: 100% !important;
  height: 100% !important;
  max-height: 100%;
}

.notion-column .notion-bookmark-image {
  display: none;
}

.notion-spacer {
  width: calc(min(32px, 4vw));
}

.notion-spacer:last-child {
  display: none;
}

.notion-asset-object-fit {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 1px;
}

.notion-image {
  display: block;
  width: 100%;
  border-radius: 1px;
}

.notion-asset-caption {
  padding: 6px 0 6px 2px;
  white-space: pre-wrap;
  word-break: break-word;
  caret-color: var(--fg-color);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg-color-3);
}

.notion-callout {
  padding: 16px 16px 16px 12px;
  display: inline-flex;
  width: 100%;
  border-radius: 3px;
  border-width: 1px;
  align-items: center;
  box-sizing: border-box;
  margin: 4px 0;
  border: 1px solid var(--fg-color-0);
}

.dark-mode .notion-callout {
  border-color: var(--bg-color-2);
}

.notion-callout .notion-page-icon-inline {
  align-self: flex-start;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 1.3em;
}

.notion-callout-text {
  margin-left: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  width: 100%;
}

.notion-callout-text > *:first-child {
  margin-top: 0;
  padding-top: 0;
}

.notion-toggle {
  width: 100%;
  padding: 3px 2px;
}
.notion-toggle > summary {
  cursor: pointer;
  outline: none;
}
.notion-toggle > div {
  margin-left: 1.1em;
}

.notion-collection {
  align-self: center;
  min-width: 100%;
}

.notion-collection-header {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 4px 2px;
  white-space: nowrap;
  overflow: hidden;
}

.notion-collection-header-title {
  display: inline-flex;
  align-items: center;
  font-size: 1.25em;
  line-height: 1.2;
  font-weight: 600;
  white-space: pre-wrap;
  word-break: break-word;
  margin-right: 0.5em;
}

.notion-collection-view-dropdown {
  cursor: pointer;
  padding: 6px 8px;
  border: 0 none;
  border-radius: 3px;
  transition: background 120ms ease-in 0s;
  background: transparent;
}

.notion-collection-view-dropdown:hover {
  background: var(--bg-color-0);
}

.notion-collection-view-dropdown-icon {
  position: relative;
  top: 2px;
  margin-left: 4px;
}

.notion-collection-view-type {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.notion-collection-view-type-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  /* fill: var(--fg-color); */
  fill: rgba(55, 53, 47);
  margin-right: 6px;
}

.notion-collection-view-type-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-color);
}

.notion-table {
  width: 100vw;
  max-width: 100vw;
  align-self: center;
  overflow: auto hidden;
}

.notion-table-view {
  position: relative;
  float: left;
  min-width: var(--notion-max-width);
  padding-left: 0;
  transition: padding 200ms ease-out;
}

.notion-table-header {
  display: flex;
  position: absolute;
  z-index: 82;
  height: 33px;
  color: var(--fg-color-3);
  min-width: var(--notion-max-width);
}

.notion-table-header-inner {
  width: 100%;
  display: inline-flex;
  border-top: 1px solid var(--fg-color-1);
  border-bottom: 1px solid var(--fg-color-1);
  /* box-shadow: white -3px 0 0, rgba(55, 53, 47, 0.16) 0 1px 0; */
}

.notion-table-header-placeholder {
  height: 34px;
}

.notion-table-th {
  display: flex;
  position: relative;
}

.notion-table-view-header-cell {
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
  height: 32px;
  font-size: 14px;
  padding: 0;
}

.notion-table-view-header-cell-inner {
  user-select: none;
  display: flex;
  width: 100%;
  height: 100%;
  padding-left: 8px;
  padding-right: 8px;
  border-right: 1px solid var(--fg-color-0);
}

.notion-table-th:last-child .notion-table-view-header-cell-inner {
  border-right: 0 none;
}

.notion-collection-column-title {
  display: flex;
  align-items: center;
  line-height: 120%;
  min-width: 0;
  font-size: 14px;
}

.notion-collection-column-title-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  fill: var(--fg-color-2);
  margin-right: 6px;
}

.notion-collection-column-title-body {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-table-body {
  position: relative;
  min-width: var(--notion-max-width);
}

.notion-table-row {
  display: flex;
  border-bottom: 1px solid var(--fg-color-1);
}

.notion-table-cell {
  min-height: 32px;
  padding: 5px 8px 6px;
  font-size: 14px;
  line-height: 1;
  white-space: normal;
  overflow: hidden;
  word-break: break-word;
  border-right: 1px solid var(--fg-color-1);
}

.notion-table-cell:last-child {
  border-right: 0 none;
}

.notion-table-cell-title {
  font-weight: 500;
}

.notion-table-cell-text {
  white-space: pre-wrap;
}

.notion-table-cell-text,
.notion-table-cell-number,
.notion-table-cell-url,
.notion-table-cell-email,
.notion-table-cell-phone_number {
  line-height: 1.5;
}

.notion-table-cell-number {
  white-space: pre-wrap;
}

.notion-table-cell-select,
.notion-table-cell-multi_select {
  padding: 7px 8px 0;
}

.notion-table-cell-auto_increment_id {
  color: var(--fg-color-7);
}

.notion-property-select,
.notion-property-status,
.notion-property-multi_select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.notion-property-select-item,
.notion-property-status-item,
.notion-property-multi_select-item {
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 3px;
  height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 120%;
}

.notion-property-status-item {
  border-radius: 20px;
}

.notion-property-file {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.notion-property-file img {
  max-height: 24px;
  max-width: 100%;
  margin-right: 6px;
}

.notion-collection-card-cover .notion-property-file {
  height: 100%;
}

.notion-collection-card-cover .notion-property-file img {
  width: 100%;
  margin: 0;
  max-height: 100%;
}

.notion-collection-card .notion-property-checkbox-container {
  display: flex;
}

.notion-property-checkbox-text {
  display: none;
}

.notion-collection-card .notion-property-checkbox-text {
  display: inline-block;
  margin-left: 6px;
}

.notion-property-checkbox {
  width: 16px;
  height: 16px;
}

.notion-property-checkbox-checked {
  width: 16px;
  height: 16px;
  background: var(--select-color-0);
}

.notion-property-checkbox-checked svg {
  position: relative;
  display: block;
  /* top: -3px; */
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  fill: #fff;
}

.notion-property-checkbox-unchecked {
  width: 16px;
  height: 16px;
  border: 1.3px solid var(--fg-color);
}

.notion-gallery {
  align-self: center;
}

.notion-gallery-view {
  position: relative;
  padding-left: 0;
  transition: padding 200ms ease-out;
}

.notion-gallery-grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  border-top: 1px solid var(--fg-color-1);
  padding-top: 16px;
  padding-bottom: 4px;
}

.notion-gallery-grid-size-small {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.notion-gallery-grid-size-large {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.notion-collection-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  text-decoration: none;
  box-shadow:
    rgba(15, 15, 15, 0.1) 0 0 0 1px,
    rgba(15, 15, 15, 0.1) 0 2px 4px;
  border-radius: 3px;
  background: var(--bg-color);
  color: var(--fg-color);
  transition: background 100ms ease-out 0s;

  user-select: none;
  cursor: pointer;
}

.notion-collection-card:hover {
  background: var(--bg-color-0);
}

.notion-collection-card-cover {
  position: relative;
  width: 100%;
  height: 190px;
  border-bottom: 1px solid var(--fg-color-0);
  overflow: hidden;
}

.notion-collection-card-cover img {
  width: 100%;
  height: 100%;
  border-radius: 1px 1px 0 0;
  /* object-fit: cover; */
}

.notion-collection-card-cover .notion-collection-card-cover-empty {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  background: var(--fg-color-5);
  box-shadow: var(--fg-color-0) 0 -1px 0 0 inset;
  padding: 8px 8px 0;
}

.notion-collection-card-size-small .notion-collection-card-cover {
  height: 124px;
}

.notion-collection-card-body {
  display: flex;
  flex-direction: column;
  padding: 4px 10px;
}

.notion-collection-card-property {
  padding: 4px 0;
  white-space: nowrap;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.notion-collection-card-property:first-child {
  font-size: 14px;
  font-weight: 500;
}

.notion-collection-card-property:not(:first-child) {
  white-space: nowrap;
  text-overflow: clip;
}

.notion-collection-card-property img {
  max-height: 18px;
}

.notion-list-collection {
  align-self: center;
}

.notion-list-collection {
  width: 100%;
  max-width: 100%;
}

.notion-list-view {
  position: relative;
  padding-left: 0;
  transition: padding 200ms ease-out;
  max-width: 100%;
}

.notion-list-body {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--fg-color-1);
  padding-top: 8px;
  max-width: 100%;
  overflow: hidden;
}

.notion-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin: 1px 0;
  max-width: 100%;
  overflow: hidden;
}

.notion-list-item-title {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  line-height: 1.3;
}

.notion-list-item-body {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.notion-list-item-property {
  /* display: flex;
  align-items: center; */
  margin-left: 14px;
  font-size: 14px;
}

.notion-list-item-property .notion-property-date,
.notion-list-item-property .notion-property-created_time,
.notion-list-item-property .notion-property-last_edited_time,
.notion-list-item-property .notion-property-url {
  display: inline-block;
  color: var(--fg-color-3);
  font-size: 12px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-board {
  width: 100vw;
  max-width: 100vw;
  align-self: center;
  overflow: auto hidden;
}

.notion-board-view {
  position: relative;
  float: left;
  min-width: 100%;
  padding-left: 0;
  transition: padding 200ms ease-out;
}

.notion-board-header {
  display: flex;
  position: absolute;
  z-index: 82;
  height: 44px;
  min-width: 100%;
}

.notion-board-header-inner {
  display: inline-flex;
  border-top: 1px solid var(--fg-color-1);
  border-bottom: 1px solid var(--fg-color-1);
}

.notion-board-header-placeholder {
  height: var(--notion-header-height);
}

.notion-board-th {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding-right: 16px;
  box-sizing: content-box;
  flex-shrink: 0;
}

.notion-board-th-body {
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
  padding-left: 2px;
  padding-right: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.notion-board-th-count {
  color: var(--fg-color-3);
  font-weight: 500;
  padding: 0 8px;
}

.notion-board-th-empty {
  margin-right: 4px;
  position: relative;
  top: 2px;
}

.notion-board-body {
  display: inline-flex;
}

.notion-board-group {
  flex: 0 0 auto;
  padding-right: 16px;
  box-sizing: content-box;
}

.notion-board-group-card {
  margin-bottom: 8px;
}

.notion-board-view .notion-board-th,
.notion-board-view .notion-board-group {
  width: 260px;
}

.notion-board-view-size-small .notion-board-th,
.notion-board-view-size-small .notion-board-group {
  width: 180px;
}

.notion-board-view-size-large .notion-board-th,
.notion-board-view-size-large .notion-board-group {
  width: 320px;
}

.notion-board-view .notion-collection-card .notion-collection-card-cover {
  height: 148px;
}

.notion-board-view-size-small
  .notion-collection-card
  .notion-collection-card-cover {
  height: 100px;
}

.notion-board-view-size-large
  .notion-collection-card
  .notion-collection-card-cover {
  height: 180px;
}

.notion-collection-page-properties {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.notion-table-of-contents {
  width: 100%;
  margin: 4px 0;
}

.notion-table-of-contents-item {
  color: var(--fg-color);
  opacity: 0.7;
  transition:
    background 100ms ease-in,
    opacity 100ms ease-in;

  text-decoration: none;
  user-select: none;
  transition: background 20ms ease-in 0s;
  cursor: pointer;
  width: 100%;

  padding: 6px;
  font-size: 14px;
  line-height: 1.3;
  display: flex;
  align-items: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-table-of-contents-item:hover {
  background: var(--bg-color-0);
  opacity: 1;
}

.notion-table-of-contents-item-body {
  border-bottom: 1px solid var(--fg-color-1);
}

.notion-to-do {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.notion-to-do-item {
  width: 100%;
  display: flex;
  align-items: center;
  width: 100%;
  padding-left: 2px;
  min-height: calc(1.5em + 3px + 3px);
}

.notion-to-do-children {
  padding-left: 1.5em;
}

.notion-to-do-checked .notion-to-do-item {
  text-decoration: line-through;
  opacity: 0.375;
}

.notion-to-do-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.notion-to-do-item .notion-property-checkbox {
  margin-right: 8px;
}

.notion-google-drive {
  width: 100%;
  align-self: center;
  margin: 4px 0;
}

.notion-google-drive-link {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border: 1px solid var(--fg-color-1);
  border-radius: 3px;

  user-select: none;
  transition: background 20ms ease-in 0s;
  cursor: pointer;
}

.notion-google-drive-link:hover {
  background: var(--bg-color-0);
}

.notion-google-drive-preview {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 55%;
  overflow: hidden;
}

.notion-google-drive-preview img {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  object-fit: cover;
  object-position: center top;
}

.notion-google-drive-body {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px 14px;
  overflow: hidden;
  border-top: 1px solid var(--fg-color-1);
}

.notion-google-drive-body-title {
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.notion-google-drive-body-modified-time {
  font-size: 12px;
  line-height: 1.3;
  color: var(--fg-color-3);
  max-height: 32px;
  overflow: hidden;
}

.notion-google-drive-body-source {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.notion-google-drive-body-source-icon {
  flex-shrink: 0;
  background-size: cover;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.notion-google-drive-body-source-domain {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-file {
  width: 100%;
  margin: 1px 0;
}

.notion-file-link {
  display: flex;
  align-items: center;
  padding: 3px 2px;
  border-radius: 3px;
  transition: background 20ms ease-in 0s;
  color: inherit;
  text-decoration: none;
}

.notion-file-link:hover {
  background: var(--bg-color-0);
}

.notion-file-icon {
  margin-right: 2px;
  width: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 0;
  flex-shrink: 0;
  min-height: calc(1.5em + 3px + 3px);
  height: 1.35em;
}

.notion-file-info {
  display: flex;
  align-items: baseline;
}

.notion-file-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-file-size {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-color-3);
  font-size: 12px;
  line-height: 16px;
  margin-left: 6px;
}

.notion-audio {
  width: 100%;
}

.notion-audio audio {
  width: 100%;
}

.notion-equation {
  position: relative;
  display: inline-flex;
  color: inherit;
  fill: inherit;
  user-select: none;
  border-radius: 3px;
  transition: background 20ms ease-in 0s;
}

.notion-equation-inline {
  -webkit-user-select: all;
  -moz-user-select: all;
  user-select: all;
}

.notion-equation-block {
  display: flex;
  flex-direction: column;
  overflow: auto;
  width: 100%;
  max-width: 100%;
  padding: 4px 8px;
  margin: 4px 0;
  cursor: pointer;
}

.notion-equation:hover {
  background: var(--bg-color-0);
}

.notion-equation:active,
.notion-equation:focus {
  background: var(--select-color-2);
}

.notion-frame .katex-display .katex {
  padding-right: 32px;
}

.notion-frame .katex > .katex-html {
  white-space: normal;
}

.notion-page-title {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  line-height: 1.3;
  transition: background 120ms ease-in 0s;
}

.notion-page-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  border-radius: 3px;
  flex-shrink: 0;
}

.notion-page-title .notion-page-icon-inline {
  margin-left: 2px;
  margin-right: 6px;
}

.notion-collection-card-property .notion-link {
  border-bottom: 0 none;
}

.notion-collection-card-property .notion-page-title {
  transition: none;
}

.notion-collection-card-property .notion-page-title:hover {
  background: unset;
}

.notion-collection-card-property .notion-page-title-icon {
  margin-left: 0;
  height: 18px;
  width: 18px;
}

.notion-collection-card-property .notion-page-title-text {
  border-bottom: 0 none;
}

.notion-collection-card-property
  .notion-property-relation
  .notion-page-title-text {
  border-bottom: 1px solid;
}

.notion-page-title-text {
  position: relative;
  top: 1px;
  border-bottom: 1px solid var(--fg-color-1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* removes double underline with links */
.notion-link .notion-page-title-text {
  border-bottom: 0 none;
}

.notion-collection-row {
  width: 100%;
  padding: 4px 0 8px;
  border-bottom: 1px solid var(--fg-color-0);
  margin-bottom: 1em;
}

.notion-collection-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notion-collection-row-property {
  display: flex;
  align-items: center;
}

.notion-collection-row-value {
  flex: 1;
  padding: 6px 8px 7px;
  font-size: 14px;
}

.notion-collection-row-property .notion-collection-column-title {
  display: flex;
  align-items: center;
  width: 160px;
  height: 34px;
  color: var(--fg-color-3);
  padding: 0 6px;
}

.notion-collection-row-property .notion-property {
  width: 100%;
}

.notion-collection-row-property .notion-property-auto_increment_id {
  color: var(--fg-color-7);
}

.notion-collection-row-property .notion-collection-column-title-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}

.notion-collection-row-property .notion-link {
  border-bottom: 0 none;
}

.notion-collection-row-property
  .notion-property-relation
  .notion-page-title-text {
  border-bottom: 1px solid;
}

.notion-user {
  display: block;
  object-fit: cover;
  border-radius: 100%;
  width: 20px;
  height: 20px;
}

.notion-list-item-property .notion-property-multi_select-item {
  margin-bottom: 0;
  flex-wrap: none;
}

.notion-list-item-property .notion-property-multi_select-item:last-of-type {
  margin-right: 0;
}

.notion-toggle .notion-collection-header,
.notion-toggle .notion-table-view,
.notion-toggle .notion-board-view,
.notion-column .notion-collection-header,
.notion-column .notion-table-view,
.notion-column .notion-board-view {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.notion-toggle .notion-table,
.notion-toggle .notion-board,
.notion-column .notion-table,
.notion-column .notion-board {
  width: 100% !important;
  max-width: 100% !important;
}

@media only screen and (max-width: 730px) {
  .notion-asset-wrapper {
    max-width: 100%;
  }

  .notion-asset-wrapper-full {
    max-width: 100vw;
  }
}

@media (max-width: 640px) {
  .notion-bookmark-image {
    display: none;
  }
}

.lazy-image-wrapper {
  position: relative;
  overflow: hidden;
}

.lazy-image-wrapper img {
  position: absolute;
  /* top: 0;
  left: 0; */
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;
  min-width: 100%;
  min-height: 100%;
}

.lazy-image-preview {
  filter: blur(20px);
  transform: scale(1.1);

  opacity: 1;
  transition: opacity 400ms ease-in !important;
  transition-delay: 100ms;
  will-change: opacity;
}

.lazy-image-wrapper img.lazy-image-real {
  position: relative;
}

.lazy-image-real {
  opacity: 0;
  transition: opacity 400ms ease-out !important;
  will-change: opacity;
}

.lazy-image-real.medium-zoom-image {
  transition:
    transform 0.3s cubic-bezier(0.2, 0, 0.2, 1),
    opacity 400ms ease-out !important;
  will-change: opacity, transform;
}

.medium-zoom-image--opened {
  object-fit: cover;
  opacity: 1;
}

/*
  NOTE: if we hide the preview image, there's a weird bug with react hydration where
  the image will sometimes flicker to show the background during initial page load.
  So I'm removing this `opacity: 0` for now, but it will cause issues if the real
  image is transparent.
 */
.lazy-image-loaded .lazy-image-preview {
  opacity: 0;
}

.lazy-image-loaded .lazy-image-real {
  opacity: 1;
}

.notion-page-cover.lazy-image-wrapper {
  padding: 0 !important;
}

.notion-collection-card-cover .lazy-image-wrapper {
  padding: 0 !important;
  height: 100%;
}

.notion-page-cover .lazy-image-preview,
.notion-page-cover .lazy-image-real {
  will-change: unset !important;
}

.notion-page-cover .lazy-image-loaded .lazy-image-preview {
  opacity: 1;
}

.notion-lite {
  overflow-y: auto;
}

.notion-lite .notion-page {
  width: 100%;
  padding: 0;
  /* padding: calc(max(2vmin, 8px)); */
}

.notion-lite .notion-collection-header,
.notion-lite .notion-table-view,
.notion-lite .notion-board-view {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.notion-lite .notion-board,
.notion-lite .notion-table {
  width: 100% !important;
}

.notion-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 200;

  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  height: var(--notion-header-height);
  min-height: var(--notion-header-height);

  background: var(--bg-color);
}

.notion-header .notion-nav-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  text-size-adjust: 100%;
  line-height: 1.5;
  line-height: 1.2;
  font-size: 14px;
  gap: 12px;
}

.notion-header .breadcrumbs {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  flex-grow: 0;
  min-width: 0;
}

.notion-header .breadcrumb {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;

  color: var(--fg-color);
  text-decoration: none;
  margin: 1px 0px;
  padding: 4px 6px;
  border-radius: 3px;
  transition: background 120ms ease-in 0s;
  user-select: none;
  background: transparent;
  cursor: pointer;
}

.notion-header .breadcrumb .notion-page-icon-inline {
  font-size: 18px;
  line-height: 1.1;
  margin: 0 6px 0 0;
}

.notion-header .breadcrumb .notion-page-icon-span {
  position: relative;
  top: 1px;
}

.notion-header .searchIcon {
  width: 14px;
  height: 14px;
  color: var(--fg-color);
  fill: var(--fg-color);
}

.notion-search-button {
  gap: 8px;
}

.notion-header .breadcrumb:not(.active):hover {
  background: var(--bg-color-0);
}

.notion-header .breadcrumb:not(.active):active {
  background: var(--bg-color-1);
}

.notion-header .breadcrumb.active {
  cursor: default;
}

.notion-header .spacer {
  margin: 0 2px;
  color: var(--fg-color-2);
}

.notion-header .button {
  padding: 12px;
}

.notion-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 15, 0.6);

  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1001;
}

.notion-search {
  box-shadow:
    rgba(15, 15, 15, 0.05) 0px 0px 0px 1px,
    rgba(15, 15, 15, 0.1) 0px 5px 10px,
    rgba(15, 15, 15, 0.2) 0px 15px 40px;
  border-radius: 3px;
  background: var(--bg-color);

  position: relative;
  top: 90px;
  max-width: 600px;
  min-height: 50px;
  max-height: 80vh;
  width: 75%;
  overflow: hidden;
  outline: none;

  font-size: 16px;
  line-height: 1.5;
  color: rgb(55, 53, 47);
  caret-color: rgb(55, 53, 47);
  font-family: var(--notion-font);
}

.notion-search input {
  background-color: var(--bg-color);
}

.notion-search .quickFindMenu {
  display: flex;
  flex-direction: column;
  min-width: 100%;
  max-width: calc(100vw - 24px);
  height: 100%;
  max-height: 80vh;
  min-height: 50px;
}

.notion-search .searchBar {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 52px;
  box-shadow: rgba(55, 53, 47, 0.09) 0px 1px 0px;
  font-size: 18px;
  line-height: 27px;
  padding: 16px;
}

.notion-search .searchInput {
  resize: none;
  white-space: nowrap;
  border: none;
  outline: none;
  flex: 1;

  line-height: inherit;
  font-size: inherit;
}

.notion-search .inlineIcon {
  margin-right: 10px;
  fill: var(--fg-color-2);
}

.notion-search .clearButton {
  user-select: none;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 8px;
}

.notion-search .clearIcon {
  width: 14px;
  height: 14px;
  fill: var(--fg-color-2);
}

.notion-search .clearButton:hover .clearIcon {
  fill: var(--fg-color-3);
}

.notion-search .clearButton:active .clearIcon {
  fill: var(--fg-color-6);
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.notion-search .loadingIcon {
  animation: spinner 0.6s linear infinite;
}

.notion-search .noResultsPane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
}

.notion-search .noResults {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(55, 53, 47, 0.6);
}

.notion-search .noResultsDetail {
  font-size: 14px;
  margin-top: 2px;
  color: rgba(55, 53, 47, 0.4);
}

.notion-search .resultsFooter {
  box-shadow: rgba(55, 53, 47, 0.09) 0px -1px 0px;
  margin-top: 1px;
  font-size: 12px;
  min-height: 28px;
  color: var(--fg-color-2);
  user-select: none;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notion-search .resultsCount {
  font-weight: 500;
  color: var(--fg-color-3);
}

.notion-search .resultsPane {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  overflow: auto;
}

.notion-search .resultsPane .result {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.06);
  font-size: 14px;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--fg-color);
  text-decoration: none;
}

.notion-search .resultsPane .result:hover {
  background: var(--bg-color-2) !important;
}

.notion-search .resultsPane .result:active {
  background: var(--fg-color-1) !important;
}

.notion-search .resultsPane .result {
  min-height: unset;
  height: unset;
}

.notion-search .resultsPane .result .notion-page-title {
  display: flex;
}

.notion-search .resultsPane .result .notion-search-result-highlight {
  font-size: 90%;
  margin: 4px 0 0 30px;
}

.notion-sync-block {
  width: 100%;
}

.notion-collection-group {
  margin-bottom: 1em;
}

.notion-collection-group > summary {
}

.notion-collection-group > summary > div {
  transform: scale(0.85);
  transform-origin: 0% 50%;
  display: inline-flex;
  align-items: center;
}

.notion-simple-table {
  font-size: 14px;
}

/* simple table header */
/* row header */
.notion-simple-table-header-row td {
  font-weight: 600;
  background: var(--bg-color-0);
}

/* column header */
.notion-simple-table-header-cell {
  font-weight: 600;
  background: var(--bg-color-0);
}

.notion-simple-table td {
  border: 1px solid var(--fg-color-5);
  padding: 8px 8px;
  white-space: pre-wrap;
}

.notion-external {
  border-radius: 3px;
  transition: background 120ms ease-in 0s;
  text-decoration: none;
}

.notion-external:hover {
  background: var(--bg-color-0);
}

.notion-external-block {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--fg-color-1);
  padding: 6px 6px;
  display: flex;
}

.notion-external-mention {
  display: inline-flex;
  padding: 0 4px;
  align-items: center;
  position: relative;
  top: 3px;
}

.notion-external-image {
  width: 32px;
  height: 32px;
  margin: 3px 12px 3px 4px;
}

.notion-external-mention .notion-external-image {
  display: inline-flex;
  align-items: center;
  width: 16px;
  height: 16px;
  margin: 0;
  margin-right: 0.3em;
}

.notion-external-mention .notion-external-image svg {
  width: 100%;
  height: 100%;
}

.notion-external-description {
  display: flex;
  flex-direction: column;
}

.notion-external-mention .notion-external-description {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.notion-external-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-color-4);
}

.notion-external-mention .notion-external-title {
  display: inline;
  font-size: 16px;
  border-bottom: 0.05em solid var(--fg-color-1);
}

.notion-external-subtitle {
  font-size: 12px;
  color: var(--fg-color-3);
}

.notion-external-block-desc {
  color: rgba(55, 53, 47, 0.65);
  font-size: 12px;
  white-space: nowrap;
  padding-top: 4px;
}

.notion-external-mention .notion-external-subtitle {
  display: none;
  position: absolute;
  top: 28px;
  left: 0;
  width: 260px;
  background: var(--bg-color);
  z-index: 999;
  padding: 8px;
  box-shadow:
    rgba(15, 15, 15, 0.1) 0 0 0 1px,
    rgba(15, 15, 15, 0.1) 0 2px 4px;
}

.notion-external-mention .notion-external-subtitle-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  line-height: 1.5;
  padding: 4px 0;
}

.notion-external-mention .notion-external-subtitle-item-name {
  flex: none;
  width: 70px;
  font-weight: 500;
}

.notion-external-mention .notion-external-subtitle-item-desc {
  flex: 1;
}

.notion-external-description:hover .notion-external-subtitle {
  display: block;
}

.notion-preview-card-domain-warp {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.notion-preview-card-domain-warp .notion-preview-card-domain {
  padding-left: 4px;
}
.notion-preview-card-domain-warp .notion-preview-card-logo {
  width: 14px;
  height: 14px;
}

.notion-preview-card-title {
  font-size: 16px;
  line-height: 1.5;
  padding: 4px 0;
  font-weight: 500;
  color: var(--fg-color-4);
}

.notion-preview-card-github-shields img {
  margin-right: 4px;
  padding: 4px 0;
}

.notion-yt-lite {
  background-color: #000;
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
}

.notion-yt-lite::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==);
  background-position: top;
  background-repeat: repeat-x;
  width: 100%;
  height: 60px;
  padding-bottom: 50px;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}

.notion-yt-lite > iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.notion-yt-playbtn {
  width: 68px;
  height: 48px;
  position: absolute;
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0);
  top: 50%;
  left: 50%;
  z-index: 1;
  background-color: transparent;
  /* YT's actual play button svg */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
  filter: grayscale(100%);
  transition: filter 0.1s cubic-bezier(0, 0, 0.2, 1);
  border: none;
}
.notion-yt-lite:hover > .notion-yt-playbtn,
.notion-yt-youtube .notion-yt-playbtn:focus {
  filter: none;
}

.notion-yt-initialized {
  cursor: unset;
}
.notion-yt-initialized::before,
.notion-yt-initialized > .notion-yt-playbtn {
  opacity: 0;
  pointer-events: none;
}

.notion-yt-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notion-collection-view-dropdown-content {
  font-family: var(--notion-font);
  min-width: 220;
  background: #fff;
  border-radius: 6;
  padding: 0;
  box-shadow:
    0px 10px 38px -10px rgba(22, 23, 24, 0.35),
    0px 10px 20px -15px rgba(22, 23, 24, 0.2);
  animation-duration: 400ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

.notion-collection-view-tabs-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 120%;
}

.notion-collection-view-tabs-content-item {
  all: unset;
  position: relative;
  height: 25px;
  padding: 7px 10px 7px 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  user-select: none;
  cursor: pointer;
  color: rgb(55, 53, 47);
  font-size: 14px;
}

.notion-collection-view-tabs-content-item:hover {
  background-color: var(--fg-color-1);
  border-radius: 3px;
}

.notion-collection-view-tabs-content-item-active {
  border-bottom: solid 2px #000;
  font-weight: bold;
}

@media only screen and (max-width: 730px) {
  .notion-collection-view-tabs-row {
    width: 100%;
  }
}

@keyframes slideDownAndFade {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.notion-collection-view-dropdown-content[data-state="open"] {
  animation-name: slideDownAndFade;
}

.nested-form-link {
  background: none !important;
  border: none;
  padding: 0 !important;
  text-decoration: underline;
  cursor: pointer;
}

/* Link Mention Styles */
.notion-link-mention {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.notion-link-mention-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.notion-link-mention-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
}

.notion-link-mention-provider {
  font-size: 0.875rem;
  color: var(--fg-color);
}

.notion-link-mention-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-color);
}

/* Preview card (appears on hover) */
.notion-link-mention-preview {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  z-index: 100000;
}

.notion-link-mention:hover .notion-link-mention-preview {
  display: block;
}

.notion-link-mention-card {
  width: 18rem;
  height: 15rem;
  background: var(--bg-color);
  border-radius: 0.75rem;
  border: 1px solid rgba(27, 31, 36, 0.15);
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.notion-link-mention-preview-thumbnail {
  width: 100%;
  height: 55%;
  object-fit: cover;
}

.notion-link-mention-preview-content {
  display: flex;
  flex-direction: column;
  height: 45%;
  padding: 0.5rem 1rem;
  gap: 0.125rem;
}

.notion-link-mention-preview-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fg-color);
  margin: 0;
}

.notion-link-mention-preview-description {
  font-size: 0.875rem;
  color: var(--fg-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.notion-link-mention-preview-footer {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-bottom: 0.5rem;
}

.notion-link-mention-preview-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
}

.notion-link-mention-preview-provider {
  font-size: 0.875rem;
  color: var(--fg-color-2);
}
:root {
  --font-sans:
    "IBM Plex Sans", /* Hangul */ "Pretendard Variable", "Pretendard",
    "-apple-system", "BlinkMacSystemFont", "system-ui", "Roboto",
    "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "sans-serif", "Pretendard", "-apple-system", "BlinkMacSystemFont",
    "system-ui", "Roboto", "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "sans-serif";
  --font-serif:
    "IBM Plex Serif", /* Hangul  */ "Pretendard Variable", "Pretendard",
    "-apple-system", "BlinkMacSystemFont", "system-ui", "Roboto",
    "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "sans-serif";
  --font-code:
    "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    Courier, monospace;

  --font-size-mobile: 17px;
  --line-height-mobile: 29px;
  --font-size-desktop: 19px;
  --line-height-desktop: 34px;
}

.notion,
.tiptap {
  /* font-family: var(--font-sans); */
  word-break: break-word;
  font-weight: 400;
  /* 본문 기본 글자색은 컨테이너에만 둔다. 요소마다 지정하면
     .post-content-style-enabled 의 var(--inblog-post-text-color, inherit) 가
     specificity에서 이겨 커스텀 색상 블로그에서 상속이 끊긴다.
     Notion 은 react-notion-x 의 .notion { color: var(--fg-color) } 를,
     Tiptap 은 body 의 --foreground 를 여기서 함께 덮는다. */
  color: #242424;
  /* word-break: keep-all;
  word-wrap: break-word;
  white-space: pre-line; */
  overflow-wrap: break-word;
  max-width: 100%;
}

.notion-page {
  padding: 0;
  max-width: 720px;
  width: 100%;
}

/* Text */
.notion-text,
.tiptap p {
  /* font-family: var(--font-sans); */
  margin: 2px 0px;
  padding: 0px 0px;
  word-break: break-word;
  /* word-break: keep-all;
  word-wrap: break-word;
  white-space: pre-line; */
}
.tiptap p {
  color: #242424;
  margin: 4px 0px;
}
/** Legacy */
/* .tiptap p span {
  color: #242424 !important;
} */
/* 1) p 태그 중 클래스에 text-color- 가 포함되지 않은 경우 */
/* 2) span 태그 중 클래스에 text-color- 가 포함되지 않은 경우 */
.tiptap p:not([class*="text-color-"]),
.tiptap p span:not([class*="text-color-"]) {
  /* !important 는 에디터가 남긴 인라인 색을 덮기 위한 것이다. 값을 상수로 두면
     커스텀 글자색을 지정한 블로그에서 본문 문단만 색이 안 바뀌므로 변수를 쓴다. */
  color: var(--inblog-post-text-color, #242424) !important;
}
.notion-blank {
  margin: 3px 0px;
}
.tiptap p.is-empty {
  /* font-family: var(--font-sans); */
}
.notion-text b,
.tiptap p strong {
  font-weight: 600;
}
@media only screen and (max-width: 759.98px) {
  .notion-text,
  .tiptap p {
    font-size: var(--font-size-mobile);
    line-height: var(--line-height-mobile);
    min-height: var(--line-height-mobile);
    margin-top: 0px;
    margin-bottom: 20px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-text,
  .tiptap p {
    font-size: var(--font-size-desktop);
    line-height: var(--line-height-desktop);
    min-height: var(--line-height-desktop);
    margin-top: 0px;
    margin-bottom: 24px;
  }
}

.notion-inline-underscore {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* a tag */
.tiptap a,
.tiptap a span,
.notion-link {
  color: #1a73e8 !important;
  text-underline-offset: 3px;
  transition-property:
    color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;

  /* notion override */
  border-bottom: none;
  transition: none;
  border-color: transparent;
  opacity: 1;
  word-break: break-word;
  /* word-break: keep-all;
  word-wrap: break-word;
  white-space: pre-line; */
}
.tiptap a:hover,
.notion-link:hover {
  color: #216cce;
  text-decoration: underline;
}

.post-content-style-enabled .tiptap,
.post-content-style-enabled .notion {
  /* fallback을 inherit로 두면 글자색을 지정하지 않은 커스텀 UI 블로그가
     body 색(#09090b)을 물려받아 기본 블로그와 어긋난다. 기본색을 직접 쓴다. */
  color: var(--inblog-post-text-color, #242424);
}

.post-content-style-enabled .tiptap p,
.post-content-style-enabled .tiptap li,
.post-content-style-enabled .tiptap td,
.post-content-style-enabled .tiptap th,
.post-content-style-enabled .notion-text {
  color: var(--inblog-post-text-color, inherit);
}

.post-content-style-enabled .tiptap h1,
.post-content-style-enabled .tiptap h2,
.post-content-style-enabled .tiptap h3,
.post-content-style-enabled .tiptap h4,
.post-content-style-enabled .notion-h1,
.post-content-style-enabled .notion-h2,
.post-content-style-enabled .notion-h3 {
  color: var(--inblog-post-heading-color, inherit);
}

.post-content-style-enabled .tiptap blockquote,
.post-content-style-enabled .notion-quote {
  border-left-color: var(--inblog-post-quote-accent-color, #44403c);
}

.post-content-style-enabled .tiptap code,
.post-content-style-enabled .notion-inline-code {
  color: var(--inblog-post-code-text-color, inherit);
  background: var(--inblog-post-code-background-color, #f5f2f0);
}

.post-content-style-enabled .tiptap pre,
.post-content-style-enabled pre.notion-code {
  background: var(--inblog-post-code-background-color, #f5f2f0);
}

.post-content-style-enabled .tiptap pre code,
.post-content-style-enabled pre.notion-code code,
.post-content-style-enabled pre.notion-code code span {
  color: var(--inblog-post-code-text-color, inherit);
  background: transparent;
}

.post-content-style-enabled .tiptap table td,
.post-content-style-enabled .tiptap table th,
.post-content-style-enabled .notion-simple-table td,
.post-content-style-enabled .notion-simple-table th {
  border-color: var(--inblog-post-table-border-color, rgb(233, 233, 231));
}

.post-content-style-enabled .tiptap table th,
.post-content-style-enabled .notion-simple-table th,
.post-content-style-enabled .notion-simple-table-header-row td,
.post-content-style-enabled .notion-simple-table-header-cell {
  background-color: var(
    --inblog-post-table-header-background-color,
    rgb(247, 246, 243)
  );
}

.post-content-style-enabled .tiptap figure figcaption,
.post-content-style-enabled .notion-asset-caption {
  color: var(--inblog-post-caption-color, #595959);
}

.post-content-style-enabled .tiptap a,
.post-content-style-enabled .tiptap a span,
.post-content-style-enabled .notion-link {
  color: var(--inblog-post-link-color, #1a73e8) !important;
  text-decoration: var(--inblog-post-link-decoration, none);
  font-weight: var(--inblog-post-link-font-weight, inherit);
  font-style: var(--inblog-post-link-font-style, inherit);
}

.post-content-style-enabled .tiptap a:hover,
.post-content-style-enabled .tiptap a:hover span,
.post-content-style-enabled .notion-link:hover {
  color: var(--inblog-post-link-hover-color, #216cce) !important;
  text-decoration: var(--inblog-post-link-hover-decoration, underline);
}
/* .tiptap a::after {
  content: url(https://s2.svgbox.net/hero-solid.svg?ic=link);
  width: 14px;
  position: absolute;
}
@media only screen and (max-width: 759.98px) {
  .tiptap a::after {
    width: 12px;
    transform: translate(-6px, 10px);
  }
  .tiptap a {
    padding-right: 5px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .tiptap a::after {
    width: 14px;
    transform: translate(-8px, 12px);
  }
  .tiptap a {
    padding-right: 6px;
  }
} */

/* Highlight */
.tiptap mark span {
  background: #e8f3e8 !important;
}
@media only screen and (max-width: 759.98px) {
  .tiptap mark {
    padding: 1px 0px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .tiptap mark {
    padding: 1.5px 0px;
  }
}

/* Heading General */
.notion-h,
.tiptap h {
  word-break: break-word;
  /* word-break: keep-all;
  word-wrap: break-word;
  white-space: pre-line; */
  display: block;
  padding: 0;
}
.tiptap h {
  display: block;
}
.notion-hash-link {
  pointer-events: none;
  display: none;
}

/* Heading 2 */
.notion-h1,
.tiptap h2 {
  /* font-family: var(--font-sans); */
  font-weight: 600;
  line-height: 1.5;
  margin: 0px;
}
.notion-h1 b,
.tiptap h2 strong {
  font-weight: 600;
}
.editor.notion-h1::before,
.editor.tiptap h2::before {
  content: "H2";
  position: absolute;
  transform: translateX(-100%);
  white-space: nowrap;
  margin-top: 12px;
  padding-right: 10px;
  font-size: 14px;
  font-weight: 400;
  /* font-family: var(--font-sans); */
  color: #5e81ac80;
}
@media only screen and (max-width: 759.98px) {
  .notion-h1,
  .tiptap h2 {
    font-size: 26px;
    line-height: 1.4;
    /* padding-top: 60px;
    margin-top: -20px; */
    margin-top: 44px;
    margin-bottom: 14px;
  }
  /* .notion-h1 {
    padding-top: -8px;
    margin-top: 48px;
  } */
  /* .tiptap h2 {
    padding-top: 40px;
  } */
  .notion-h1::before,
  .tiptap h2::before {
    margin-top: 10px;
    margin-right: 10px;
    font-size: 14px;
  }
  .notion-h1:first-child,
  .tiptap h2:first-child {
    margin-top: 10px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-h1,
  .tiptap h2 {
    font-size: 34px;
    line-height: 1.3;
    /* padding-top: 70px;
    margin-top: -10px; */
    margin-top: 60px;
    margin-bottom: 20px;
  }
  /* .notion-h1 {
    padding-top: 16px;
    margin-top: 44px;
  } */
  /* .tiptap h2 {
    padding-top: 60px;
  } */
  .notion-h1::before,
  .tiptap h2::before {
    margin-top: 3px;
    margin-right: 10px;
    font-size: 20px;
  }
  .notion-h1:nth-child(2),
  .tiptap h2:first-child {
    margin-top: 15px;
  }
}

/* Heading 3 */
.notion-h2,
.tiptap h3 {
  /* font-family: var(--font-sans); */
  font-weight: 600;
  line-height: 1.5;
  margin: 0px;
}
.notion-h2 b,
.tiptap h3 strong {
  font-weight: 600;
}
.editor.notion-h2::before,
.editor.tiptap h3::before {
  content: "H3";
  position: absolute;
  transform: translateX(-100%);
  white-space: nowrap;
  font-weight: 400;
  /* font-family: var(--font-sans); */
  color: #5e81ac80;
}
@media only screen and (max-width: 759.98px) {
  .notion-h2,
  .tiptap h3 {
    font-size: 21px;
    line-height: 1.4;
    /* padding-top: 60px;
    margin-top: -40px; */
    margin-top: 30px;
    margin-bottom: 8px;
  }
  .notion-h2::before,
  .tiptap h3::before {
    margin-top: 4px;
    padding-right: 10px;
    font-size: 14px;
  }
  .notion-h2:first-child,
  .tiptap h3:first-child {
    margin-top: 5px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-h2,
  .tiptap h3 {
    font-size: 24px;
    line-height: 1.35;
    /* padding-top: 80px;
    margin-top: -60px; */
    margin-top: 36px;
    margin-bottom: 8px;
  }
  .notion-h2::before,
  .tiptap h3::before {
    margin-top: 7px;
    padding-right: 10px;
    font-size: 14px;
  }
  .notion-h2:first-child,
  .tiptap h3:first-child {
    margin-top: 5px;
  }
}

/* Heading 4 */
.notion-h3,
.tiptap h4 {
  /* font-family: var(--font-sans); */
  font-weight: 600;
  line-height: 1.5;
  margin: 0px;
}
.notion-h3 b,
.tiptap h4 strong {
  font-weight: 600;
}
.editor.notion-h3::before,
.editor.tiptap h4::before {
  content: "H4";
  position: absolute;
  transform: translateX(-100%);
  white-space: nowrap;
  font-weight: 400;
  /* font-family: var(--font-sans); */
  color: #5e81ac80;
}
@media only screen and (max-width: 759.98px) {
  .notion-h3,
  .tiptap h4 {
    font-size: 18px;
    line-height: 1.45;
    margin-top: 22px;
    margin-bottom: 6px;
  }
  .notion-h3::before,
  .tiptap h4::before {
    margin-top: 3px;
    padding-right: 10px;
    font-size: 14px;
  }
  .notion-h3:first-child,
  .tiptap h4:first-child {
    margin-top: 2px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-h3,
  .tiptap h4 {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 26px;
    margin-bottom: 8px;
  }
  .notion-h3::before,
  .tiptap h4::before {
    margin-top: 5px;
    padding-right: 10px;
    font-size: 14px;
  }
  .notion-h3:first-child,
  .tiptap h4:first-child {
    margin-top: 2px;
  }
}

/* Notion callout */
.notion-callout {
  display: flex;
  align-items: center;
  padding: 16px;
  margin: 32px 0;
}
.notion-callout.notion-gray_background_co,
.tiptap call-out {
  background-color: #f5f5f5;
}
.notion-callout > * {
  min-width: 0;
}
.notion-callout-text {
  word-break: break-word;
}
.notion-callout .notion-text {
  margin: 0;
}
@media only screen and (max-width: 759.98px) {
  .notion-callout-text {
    font-size: var(--font-size-mobile);
    line-height: var(--line-height-mobile);
    min-height: var(--line-height-mobile);
  }
  .notion-page-icon-inline {
    margin-top: 4px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-callout-text {
    font-size: var(--font-size-desktop);
    line-height: var(--line-height-desktop);
    min-height: var(--line-height-desktop);
  }
  .notion-page-icon-inline {
    margin-top: 6px;
  }
}

/* react-notion-x renders consecutive top-level items as sibling lists. */
.notion-list-disc + .notion-list-disc,
.notion-list-numbered + .notion-list-numbered {
  margin-top: 0;
}
/* BlockQuote */
.notion-quote,
.tiptap blockquote {
  border-left: 4px solid #44403c;
  padding: 0 0 0 12px;
  margin: 20px 0;
  word-break: break-word;
  /* word-break: keep-all;
  word-wrap: break-word;
  white-space: pre-line; */
}
.notion-quote:first-child,
.tiptap blockquote:first-child {
  margin-top: 4px;
}
/* BlockQuote 내부의 리스트 스타일 */
.tiptap blockquote ul,
.tiptap blockquote ol,
.notion-quote ul,
.notion-quote ol {
  margin-top: 8px;
  margin-bottom: 8px;
}
.tiptap blockquote ul li,
.tiptap blockquote ol li,
.notion-quote li {
  margin-left: 0;
}
/* 인용문 안쪽은 본문보다 촘촘하게. 인용은 시각적으로 묶인 블록이라
   본문 문단 간격(20/24px)을 그대로 쓰면 상자 안이 헐거워진다. */
.tiptap blockquote p,
.notion-quote .notion-text {
  margin-bottom: 12px;
}
@media only screen and (max-width: 759.98px) {
  .notion-quote,
  .tiptap blockquote {
    font-size: var(--font-size-mobile);
    line-height: var(--line-height-mobile);
    min-height: var(--line-height-mobile);
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-quote,
  .tiptap blockquote {
    font-size: var(--font-size-desktop);
    line-height: var(--line-height-desktop);
    min-height: var(--line-height-desktop);
  }
}

/* Unordered List */
.notion-list-disc,
.tiptap ul {
  /* font-family: var(--font-sans); */
  width: 100%;
}
.notion-list-disc li,
.tiptap ul li {
  list-style: disc;
  padding: 0px 0px;
}
.notion-list-disc ul li,
.tiptap ul li li {
  list-style: circle;
}
.notion-list-disc ul ul li,
.tiptap ul li li li {
  list-style: square;
}
.notion-list-disc ul ul ul li,
.tiptap ul li li li li {
  list-style: disc;
}
.notion-list-disc ul ul ul ul li,
.tiptap ul li li li li li {
  list-style: circle;
}
.notion-list-disc ul ul ul ul ul li,
.tiptap ul li li li li li li {
  list-style: square;
}
.notion-list-disc ul ul ul ul ul ul li,
.tiptap ul li li li li li li li {
  list-style: disc;
}
.notion-list-disc ul ul ul ul ul ul ul li,
.tiptap ul li li li li li li li li {
  list-style: circle;
}
.notion-list-disc ul ul ul ul ul ul ul ul li,
.tiptap ul li li li li li li li li li {
  list-style: square;
}
.notion-list-disc ul ul ul ul ul ul ul ul ul li,
.tiptap ul li li li li li li li li li li {
  list-style: disc;
}
.notion-list-disc li p,
.tiptap ul li p {
  margin: 0px 0px 0px 0px;
  padding: 0px 0px;
}
@media only screen and (max-width: 759.98px) {
  .notion-list-disc,
  .tiptap ul {
    margin: 4px 0px 0px 0px;
    padding: 0px 0px 0px 16px;
  }
  .notion-list-disc li::marker,
  .tiptap ul li::marker,
  .notion-list-disc li,
  .tiptap ul li {
    margin: 0px 0px 8px 0px;
    font-size: var(--font-size-mobile);
    line-height: var(--line-height-mobile);
    min-height: var(--line-height-mobile);
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-list-disc,
  .tiptap ul {
    margin: 6px 0px 0px 0px;
    padding: 0px 0px 0px 24px;
  }
  .notion-list-disc li::marker,
  .tiptap ul li::marker,
  .notion-list-disc li,
  .tiptap ul li {
    margin: 0px 0px 12px 0px;
    font-size: var(--font-size-desktop);
    line-height: var(--line-height-desktop);
    min-height: var(--line-height-desktop);
  }
}

/* Ordered List */
.notion-list-numbered,
.tiptap ol {
  /* font-family: var(--font-sans); */
  width: 100%;
}
.notion-list-numbered li,
.tiptap ol li {
  list-style: decimal;
  padding: 0px 0px;
}
.notion-list-numbered ol li,
.tiptap ol li li {
  list-style: lower-alpha;
}
.notion-list-numbered ol ol li,
.tiptap ol li li li {
  list-style: lower-roman;
}
.notion-list-numbered ol ol ol li,
.tiptap ol li li li li {
  list-style: decimal;
}
.notion-list-numbered ol ol ol ol li,
.tiptap ol li li li li li {
  list-style: lower-alpha;
}
.notion-list-numbered ol ol ol ol ol li,
.tiptap ol li li li li li li {
  list-style: lower-roman;
}
.notion-list-numbered ol ol ol ol ol ol li,
.tiptap ol li li li li li li li {
  list-style: decimal;
}
.notion-list-numbered ol ol ol ol ol ol ol li,
.tiptap ol li li li li li li li li {
  list-style: lower-alpha;
}
.notion-list-numbered ol ol ol ol ol ol ol ol li,
.tiptap ol li li li li li li li li li {
  list-style: lower-roman;
}
.notion-list-numbered ol ol ol ol ol ol ol ol ol li,
.tiptap ol li li li li li li li li li li {
  list-style: decimal;
}
.notion-list-numbered li p,
.tiptap ol li p {
  margin: 0px 0px 0px 0px;
  padding: 0px 0px;
}
@media only screen and (max-width: 759.98px) {
  .notion-list-numbered,
  .tiptap ol {
    margin: 4px 0px 0px 0px;
  }
  .notion-list-numbered {
    padding: 0px 0px 0px 22px;
  }
  .tiptap ol {
    padding: 0px 0px 0px 16px;
  }
  .notion-list-numbered li::marker,
  .tiptap ol li::marker,
  .notion-list-numbered li,
  .tiptap ol li {
    margin: 0px 0px 8px 0px;
    font-size: var(--font-size-mobile);
    line-height: var(--line-height-mobile);
    min-height: var(--line-height-mobile);
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-list-numbered,
  .tiptap ol {
    margin: 6px 0px 0px 0px;
    padding: 0px 0px 0px 24px;
  }
  .notion-list-numbered li::marker,
  .tiptap ol li::marker,
  .notion-list-numbered li,
  .tiptap ol li {
    margin: 0px 0px 12px 0px;
    font-size: var(--font-size-desktop);
    line-height: var(--line-height-desktop);
    min-height: var(--line-height-desktop);
  }
}

/* inline code */
.notion-inline-code,
.tiptap code {
  font-family: var(--font-code);
  font-weight: 400;
  padding: 3px 7px;
  margin: 0px 2px;
  border-radius: 3px;
  background: #f5f2f0;
}
@media only screen and (max-width: 759.98px) {
  .notion-inline-code,
  .tiptap code {
    font-size: 16px;
    line-height: 28px;
    min-height: 28px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-inline-code,
  .tiptap code {
    font-size: 17px;
    line-height: 32px;
    min-height: 32px;
  }
}

/* code */
.code-toolbar {
  width: 100%;
  display: hidden;
}
pre.notion-code,
.tiptap pre {
  background: #f5f2f0;
  padding: 2rem;
  margin: 0px;
  border-radius: 3px;
  overflow-x: scroll;
}
pre.notion-code code,
pre.notion-code code span,
.tiptap pre code {
  display: inline-block;
  font-family: var(--font-code);
  font-weight: 400;
  padding: 0px 0px 18px 0px;
  margin: 0px 0px;
  background: transparent;
  color: black;
  word-break: break-word;
  /* word-break: keep-all;
  word-wrap: normal;
  white-space: pre; */
}
.notion-code-copy {
  display: none;
}
@media only screen and (max-width: 759.98px) {
  pre.notion-code,
  .tiptap pre {
    margin-bottom: 0px;
  }
  pre.notion-code code,
  pre.notion-code code span,
  .tiptap pre code {
    font-size: 14px;
    line-height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  pre.notion-code,
  .tiptap pre {
    margin-bottom: 0px;
  }
  pre.notion-code code,
  pre.notion-code code span,
  .tiptap pre code {
    font-size: 15px;
    line-height: 24px;
    min-height: 24px;
    margin: 0;
    padding: 0;
  }
}

/* img */

.notion-asset-wrapper-image,
.tiptap img:not(.bookmark-image-inner-container img) {
  display: flex;
  margin: 32px auto;
  padding: 0;
  max-width: 100%;
  height: auto;
}

.tiptap figure {
  display: block;
  margin-top: 32px;
  margin-bottom: 32px;
}

.tiptap figure img {
  margin: 0px auto !important;
}

.tiptap figure[fig-type="resize"] > a {
  display: block;
  width: 100%;
}

.tiptap figure[fig-type="resize"] > img,
.tiptap figure[fig-type="resize"] > a > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tiptap .notion-asset-wrapper-image > div,
.notion-asset-wrapper-image > div {
  width: 100%;
  height: auto !important;
}
.notion-asset-wrapper-image > div img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
}
.tiptap figure figcaption {
  text-align: center;
  font-size: 14px;
  color: #595959;
  margin-top: 4px;
}
.node-imagePlaceholder {
  width: 100%;
  height: 100%;
}
/*
.ProseMirror img {
  display: block;
  margin: 32px auto;
  width: 100%;
  justify-content: center;
  transition: filter 0.1s ease-in-out;

  &:hover {
    cursor: pointer;
    filter: brightness(90%);
  }

  &.ProseMirror-selectednode {
    outline: 3px solid #5abbf7;
    filter: brightness(90%);
  }
}
*/

/* Link Button */
.tiptap link-button {
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Callout */
.tiptap .node-callOut p:first-child {
  margin-top: 0px;
}
.tiptap .node-callOut p:last-child {
  margin-bottom: 0px;
}

/* divider */
.notion-hr,
.tiptap hr {
  border-top: 1px solid #37352f30;
}

@media only screen and (max-width: 759.98px) {
  .notion-hr,
  .tiptap hr {
    margin: 32px 0px 32px 0px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .notion-hr,
  .tiptap hr {
    margin: 40px 0px 40px 0px;
  }
}

/* Editor place holder */
.ProseMirror .is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: var(--novel-stone-400);
  pointer-events: none;
  height: 0;
}
.ProseMirror .is-empty::before {
  content: attr(data-placeholder);
  float: left;
  color: var(--novel-stone-400);
  pointer-events: none;
  height: 0;
}

.ProseMirror {
  padding-inline: 1.5rem;
}

.ProseMirror > * + * {
  margin-top: 0.75em;
}

.drag-handle {
  align-items: center;
  border-radius: 0.25rem;
  cursor: grab;
  display: flex;
  height: 2rem;
  justify-content: center;
  width: 2rem;
  background: white; /* No background by default */
  transition: all 0.2s ease-in-out;
  animation: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.drag-handle:hover {
  background: #f0f0f0; /* Background on hover */
}

/* Unset all styles inside emoji-picker-container */
.emoji-picker-container h2 {
  all: unset; /* Unset any inherited styles for h2 inside EmojiPicker */
  color: #8a8a8a !important;
  position: static; /* Ensure that ::before pseudo-element won't position itself */
  list-style-type: none !important; /* Remove the bullet point */
  font-size: 1rem !important; /* Set the font size */
}

.emoji-picker-container h2::before {
  content: none !important;
}
/* .ProseMirror {
  table {
    border-collapse: collapse;
    margin: 0;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;

    td,
    th {
      border: 2px solid #ced4da;
      box-sizing: border-box;
      min-width: 1em;
      padding: 3px 5px;
      position: relative;
      vertical-align: top;

      > * {
        margin-bottom: 0;
      }
    }

    th {
      background-color: #f1f3f5;
      font-weight: bold;
      text-align: left;
    }

    .selectedCell:after {
      background: rgba(200, 200, 255, 0.4);
      content: "";
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      pointer-events: none;
      position: absolute;
      z-index: 2;
    }

    .column-resize-handle {
      background-color: #adf;
      bottom: -2px;
      position: absolute;
      right: -2px;
      pointer-events: none;
      top: 0;
      width: 4px;
    }

    p {
      margin: 0;
    }
  }
} */

.tiptap {
  /* 테이블을 감싸는 div - 개별 블록 스크롤 */
  > div[style*="overflow-x"] {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
  }

  /* 모바일에서 테이블 wrapper 처리 */
  @media only screen and (max-width: 768px) {
    > div[style*="overflow-x"] {
      margin-left: -1.25rem;
      margin-right: -1.25rem;
      max-width: 100vw;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
  }

  table {
    border-collapse: collapse;
    table-layout: auto; /* auto로 변경하여 내용에 맞게 조정 */
    width: auto;
    min-width: 100%; /* 최소 너비는 100% 유지 */
    margin: 16px 0;

    td,
    th {
      border: 1px solid rgb(233, 233, 231);
      box-sizing: border-box;
      min-width: 120px; /* 최소 너비 보장 */
      padding: 7px 9px;
      position: relative;
      vertical-align: top;
      white-space: normal; /* 텍스트 줄바꿈 허용 */
      word-break: break-word; /* 긴 단어 줄바꿈 */

      > * {
        margin-bottom: 0;
      }
    }

    th {
      background-color: rgb(247, 246, 243);
      font-weight: 500;
      text-align: left;
    }

    .selectedCell {
      /* background: rgba(200, 200, 255, 0.4); */
      background: #5abbf720;
      /* border: 1px solid #5abbf7; */
      /* content: "";
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      pointer-events: none;
      position: absolute;
      z-index: 2; */
    }
    .column-resize-handle {
      background-color: #adf;
      bottom: -2px;
      position: absolute;
      right: -2px;
      pointer-events: none;
      top: 0;
      width: 4px;
    }

    @media only screen and (max-width: 759.98px) {
      p {
        margin: 0;
        font-size: 15px;
        line-height: 22px;
        min-height: 22px;
      }
    }
    @media only screen and (min-width: 760px) and (max-width: 9999px) {
      p {
        margin: 0;
        font-size: 17px;
        line-height: 24px;
        min-height: 24px;
      }
    }
    ul,
    li {
      margin: 0;
    }
  }
}

tr.is-empty::before,
tr.is-editor-empty::before,
td.is-empty::before,
td.is-editor-empty::before {
  content: none !important; /* Remove any content */
  display: none !important; /* Ensure it's not rendered */
}

.tableWrapper {
  overflow-x: auto;
}

.resize-cursor {
  cursor: ew-resize;
  cursor: col-resize;
}
/* Notion table */
.notion-simple-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding: 0;
  margin-top: 16px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 24px;
  /* font-family: var(--font-sans); */
}

.notion-simple-table table {
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.notion-simple-table td,
.notion-simple-table th {
  min-width: 120px; /* 최소 너비 보장 */
  padding: 7px 9px;
  word-break: break-word;
  white-space: normal;
}

.notion-simple-table-header-row td,
.notion-simple-table-header-cell {
  font-weight: 500;
  background: rgb(247, 246, 243);
}

/* 모바일에서 notion 테이블 처리 */
@media only screen and (max-width: 768px) {
  .notion-simple-table {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    max-width: 100vw;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.notion figure:not(.notion-asset-wrapper-image) div {
  width: 100% !important;
}

.image {
  width: fit-content;
  position: relative;
}

.image .alt-text-indicator {
  font-size: 0.9em;
  position: absolute;
  bottom: 4px;
  right: 0px;
  max-width: calc(100% - 20px);
  padding: 0 0.5em;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: black;
}

/*
.image .alt-text-indicator .symbol {
  flex: 0 0 auto;
  font-size: 1.4em;
  font-weight: bold;
}

.image .alt-text-indicator .symbol-positive {
  color: #19961b;
}

.image .alt-text-indicator .symbol-negative {
  color: #961f1f;
}
*/

.image .alt-text-indicator .text {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notion-asset-wrapper-video {
  display: flex;
  height: fit-content !important;
}
.notion-asset-wrapper-video > div {
  height: fit-content !important;
  width: 100% !important;
  position: relative;
  padding-top: 56.25%;
  padding-bottom: 0% !important;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.notion-asset-wrapper-video > div > video {
  /* height: fit-content !important; */
  /* object-fit: cover !important; */
  margin-top: -56.25%;
}

.notion-asset-wrapper-video > div > iframe {
  /* height: fit-content !important; */
  /* object-fit: cover !important; */
}

div[data-youtube-video=""] {
  /* CSS styles go here */
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  padding-bottom: 0% !important;
  height: 0;
  overflow: hidden;
}

div[data-youtube-video] > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.notion-yt-playbtn {
  display: none;
}

.notion-asset-caption {
  color: #595959;
  padding: 0;
  margin-top: 4px;
  text-align: center;
  font-size: 14px;
  line-height: 21px;
}

/* 캡션 크기는 Notion/Tiptap 공통. .notion-asset-caption 기본 규칙보다 뒤에
   두어야 같은 specificity 싸움에서 밀리지 않는다. */
@media only screen and (max-width: 759.98px) {
  .tiptap figure figcaption,
  .notion-asset-caption {
    font-size: 14px;
    line-height: 1.6;
  }
}
@media only screen and (min-width: 760px) and (max-width: 9999px) {
  .tiptap figure figcaption,
  .notion-asset-caption {
    font-size: 15px;
    line-height: 1.6;
  }
}

/* 스크롤시 하이라이트 */
.active-toc-entry {
  color: #1a69ff; /* Highlight color */
  transform: scale(1.05);
}

.has-focus {
  border-radius: 1px;
  box-shadow: 0 0 0 1px #68cef8;
}

.tippy-box {
  background: transparent;
  width: fit-content;
  height: fit-content;
}

.tiptap link-button {
  display: flex;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* Styling for the a tag inside the link-button */
.tiptap link-button a:last-child {
  display: block;
  width: 100%;
  background-color: #000000;
  padding: 8px;
  border-radius: 4px;
  color: #ffffff !important;
  text-decoration: none;
  text-align: center;
  white-space: pre-wrap;
}

.tiptap link-button a:hover {
  text-decoration: none !important;
}

.tiptap call-out {
  display: flex;
  gap: 16px;
  align-items: start !important;
  padding: 16px;
  border-radius: 8px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.tiptap call-out p {
  margin: 0 !important;
  white-space: pre-wrap !important;
}

.custom-code-block {
  margin-top: 32px;
  margin-bottom: 32px;
}

.typeform {
  margin-top: 28px;
  margin-bottom: 28px;
}

.hubspot-form {
  margin-top: 28px;
  margin-bottom: 28px;
}

.tally-form {
  margin-top: 28px;
  margin-bottom: 28px;
}

.google-form {
  margin-top: 28px;
  margin-bottom: 28px;
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.google-form iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hljs {
  color: #24292e;
  background: #ffffff;
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  /* prettylights-syntax-keyword */
  color: #d73a49;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  /* prettylights-syntax-entity */
  color: #6f42c1;
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  /* prettylights-syntax-constant */
  color: #005cc5;
}

.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  /* prettylights-syntax-string */
  color: #032f62;
}

.hljs-built_in,
.hljs-symbol {
  /* prettylights-syntax-variable */
  color: #e36209;
}

.hljs-comment,
.hljs-code,
.hljs-formula {
  /* prettylights-syntax-comment */
  color: #6a737d;
}

.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  /* prettylights-syntax-entity-tag */
  color: #22863a;
}

.hljs-subst {
  /* prettylights-syntax-storage-modifier-import */
  color: #24292e;
}

.hljs-section {
  /* prettylights-syntax-markup-heading */
  color: #005cc5;
  font-weight: bold;
}

.hljs-bullet {
  /* prettylights-syntax-markup-list */
  color: #735c0f;
}

.hljs-emphasis {
  /* prettylights-syntax-markup-italic */
  color: #24292e;
  font-style: italic;
}

.hljs-strong {
  /* prettylights-syntax-markup-bold */
  color: #24292e;
  font-weight: bold;
}

.hljs-addition {
  /* prettylights-syntax-markup-inserted */
  color: #22863a;
  background-color: #f0fff4;
}

.hljs-deletion {
  /* prettylights-syntax-markup-deleted */
  color: #b31d28;
  background-color: #ffeef0;
}

.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
  /* purposely ignored */
}

/* Bookmark */
.bookmark-wrapper {
  margin-top: 24px;
  margin-bottom: 24px;
}

bookmark > a {
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(55, 53, 47, 0.16) !important;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

bookmark > a:hover {
  background-color: rgb(249, 250, 251);
  text-decoration: none !important;
}

bookmark > a > .bookmark-meta-info {
  flex: 4 1 180px;
  padding: 12px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  justify-content: space-between;
}

bookmark > a > .bookmark-meta-info > .bookmark-title {
  font-size: 14px;
  color: rgb(55, 53, 47);
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 6px;
  margin-bottom: 0.5px !important;
}

bookmark > a > .bookmark-meta-info > .bookmark-description {
  font-size: 12px;
  color: rgba(55, 53, 47, 0.65);
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

bookmark > a > .bookmark-meta-info > .bookmark-source {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin-top: auto;
}

bookmark > a > .bookmark-meta-info > .bookmark-source > img {
  width: 16px;
  height: 16px;
  border-radius: 100%;
  border: 1px solid rgba(55, 53, 47, 0.16);
  margin: 0 !important;
}

bookmark > a > .bookmark-meta-info > .bookmark-source > div {
  font-size: 12px;
  line-height: 16px;
  color: rgba(55, 53, 47, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 16px;
  margin-bottom: 0.5px;
}

bookmark > a > .bookmark-image-wrapper {
  flex: 1 1 180px;
  position: relative;
}

bookmark > a > .bookmark-image-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  display: block;
  aspect-ratio: 2/1;
}

/* 북마크 이미지 모바일 대응 */
@media only screen and (max-width: 568px) {
  bookmark > a > .bookmark-image-wrapper {
    display: none;
  }

  bookmark > a > .bookmark-meta-info {
    flex: 1;
    min-height: 120px;
    padding: 16px;
  }
}
