
  /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
  
  /*
  Document
  ========
  */
  
  /**
  Use a better box model (opinionated).
  */
  
  *,
  ::before,
  ::after {
    box-sizing: border-box;
  }
  
  /**
  Use a more readable tab size (opinionated).
  */
  
  html {
    -moz-tab-size: 4;
    tab-size: 4;
  }
  
  /**
  1. Correct the line height in all browsers.
  2. Prevent adjustments of font size after orientation changes in iOS.
  */
  
  html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
  }
  
  /*
  Sections
  ========
  */
  
  /**
  Remove the margin in all browsers.
  */
  
  body {
    margin: 0;
  }
  
  /**
  Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
  */
  
  body {
    font-family:
      system-ui,
      -apple-system, /* Firefox supports this but not yet "system-ui" */
      'Segoe UI',
      Roboto,
      Helvetica,
      Arial,
      sans-serif,
      'Apple Color Emoji',
      'Segoe UI Emoji';
  }
  
  /*
  Grouping content
  ================
  */
  
  /**
  1. Add the correct height in Firefox.
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
  */
  
  hr {
    height: 0; /* 1 */
    color: inherit; /* 2 */
  }
  
  /*
  Text-level semantics
  ====================
  */
  
  /**
  Add the correct text decoration in Chrome, Edge, and Safari.
  */
  
  abbr[title] {
    -webkit-text-decoration: underline dotted;
            text-decoration: underline dotted;
  }
  
  /**
  Add the correct font weight in Edge and Safari.
  */
  
  b,
  strong {
    font-weight: bolder;
  }
  
  /**
  1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
  2. Correct the odd 'em' font sizing in all browsers.
  */
  
  code,
  kbd,
  samp,
  pre {
    font-family:
      ui-monospace,
      SFMono-Regular,
      Consolas,
      'Liberation Mono',
      Menlo,
      monospace; /* 1 */
    font-size: 1em; /* 2 */
  }
  
  /**
  Add the correct font size in all browsers.
  */
  
  small {
    font-size: 80%;
  }
  
  /**
  Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
  */
  
  sub,
  sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  
  sub {
    bottom: -0.25em;
  }
  
  sup {
    top: -0.5em;
  }
  
  /*
  Tabular data
  ============
  */
  
  /**
  1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
  2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
  */
  
  table {
    text-indent: 0; /* 1 */
    border-color: inherit; /* 2 */
  }
  
  /*
  Forms
  =====
  */
  
  /**
  1. Change the font styles in all browsers.
  2. Remove the margin in Firefox and Safari.
  */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
  }
  
  /**
  Remove the inheritance of text transform in Edge and Firefox.
  1. Remove the inheritance of text transform in Firefox.
  */
  
  button,
  select { /* 1 */
    text-transform: none;
  }
  
  /**
  Correct the inability to style clickable types in iOS and Safari.
  */
  
  button,
  [type='button'],
  [type='reset'],
  [type='submit'] {
    -webkit-appearance: button;
  }
  
  /**
  Remove the inner border and padding in Firefox.
  */
  
  ::-moz-focus-inner {
    border-style: none;
    padding: 0;
  }
  
  /**
  Restore the focus styles unset by the previous rule.
  */
  
  :-moz-focusring {
    outline: 1px dotted ButtonText;
  }
  
  /**
  Remove the additional ':invalid' styles in Firefox.
  See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
  */
  
  :-moz-ui-invalid {
    box-shadow: none;
  }
  
  /**
  Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
  */
  
  legend {
    padding: 0;
  }
  
  /**
  Add the correct vertical alignment in Chrome and Firefox.
  */
  
  progress {
    vertical-align: baseline;
  }
  
  /**
  Correct the cursor style of increment and decrement buttons in Safari.
  */
  
  ::-webkit-inner-spin-button,
  ::-webkit-outer-spin-button {
    height: auto;
  }
  
  /**
  1. Correct the odd appearance in Chrome and Safari.
  2. Correct the outline style in Safari.
  */
  
  [type='search'] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
  }
  
  /**
  Remove the inner padding in Chrome and Safari on macOS.
  */
  
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  
  /**
  1. Correct the inability to style clickable types in iOS and Safari.
  2. Change font properties to 'inherit' in Safari.
  */
  
  ::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
  }
  
  /*
  Interactive
  ===========
  */
  
  /*
  Add the correct display in Chrome and Safari.
  */
  
  summary {
    display: list-item;
  }
  
  /**
   * Manually forked from SUIT CSS Base: https://github.com/suitcss/base
   * A thin layer on top of normalize.css that provides a starting point more
   * suitable for web applications.
   */
  
  /**
   * Removes the default spacing and border for appropriate elements.
   */
  
  blockquote,
  dl,
  dd,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  hr,
  figure,
  p,
  pre {
    margin: 0;
  }
  
  button {
    background-color: transparent;
    background-image: none;
  }
  
  fieldset {
    margin: 0;
    padding: 0;
  }
  
  ol,
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  /**
   * Tailwind custom reset styles
   */
  
  /**
   * 1. Use the user's configured "sans" font-family (with Tailwind's default
   *    sans-serif font stack as a fallback) as a sane default.
   * 2. Use Tailwind's default "normal" line-height so the user isn't forced
   *    to override it to ensure consistency even when using the default theme.
   */
  
  html {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
    line-height: 1.5; /* 2 */
  }
  
  /**
   * Inherit font-family and line-height from "html" so users can set them as
   * a class directly on the "html" element.
   */
  
  body {
    font-family: inherit;
    line-height: inherit;
  }
  
  /**
   * 1. Prevent padding and border from affecting element width.
   *
   *    We used to set this in the html element and inherit from
   *    the parent element for everything else. This caused issues
   *    in shadow-dom-enhanced elements like <details> where the content
   *    is wrapped by a div with box-sizing set to "content-box".
   *
   *    https://github.com/mozdevs/cssremedy/issues/4
   *
   *
   * 2. Allow adding a border to an element by just adding a border-width.
   *
   *    By default, the way the browser specifies that an element should have no
   *    border is by setting it's border-style to "none" in the user-agent
   *    stylesheet.
   *
   *    In order to easily add borders to elements by just setting the "border-width"
   *    property, we change the default border-style for all elements to "solid", and
   *    use border-width to hide them instead. This way our "border" utilities only
   *    need to set the "border-width" property instead of the entire "border"
   *    shorthand, making our border utilities much more straightforward to compose.
   *
   *    https://github.com/tailwindcss/tailwindcss/pull/116
   */
  
  *,
  ::before,
  ::after {
    box-sizing: border-box; /* 1 */
    border-width: 0; /* 2 */
    border-style: solid; /* 2 */
    border-color: currentColor; /* 2 */
  }
  
  /*
   * Ensure horizontal rules are visible by default
   */
  
  hr {
    border-top-width: 1px;
  }
  
  /**
   * Undo the "border-style: none" reset that Normalize applies to images so that
   * our "border-{width}" utilities have the expected effect.
   *
   * The Normalize reset is unnecessary for us since we default the border-width
   * to 0 on all elements.
   *
   * https://github.com/tailwindcss/tailwindcss/issues/362
   */
  
  img {
    border-style: solid;
  }
  
  textarea {
    resize: vertical;
  }
  
  input::placeholder,
  textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
  }
  
  button,
  [role="button"] {
    cursor: pointer;
  }
  
  /**
   * Override legacy focus reset from Normalize with modern Firefox focus styles.
   *
   * This is actually an improvement over the new defaults in Firefox in our testing,
   * as it triggers the better focus styles even for links, which still use a dotted
   * outline in Firefox by default.
   */
  
  :-moz-focusring {
    outline: auto;
  }
  
  table {
    border-collapse: collapse;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  
  /**
   * Reset links to optimize for opt-in styling instead of
   * opt-out.
   */
  
  a {
    color: inherit;
    text-decoration: inherit;
  }
  
  /**
   * Reset form element properties that are easy to forget to
   * style explicitly so you don't inadvertently introduce
   * styles that deviate from your design system. These styles
   * supplement a partial reset that is already applied by
   * normalize.css.
   */
  
  button,
  input,
  optgroup,
  select,
  textarea {
    padding: 0;
    line-height: inherit;
    color: inherit;
  }
  
  /**
   * Use the configured 'mono' font family for elements that
   * are expected to be rendered with a monospace font, falling
   * back to the system monospace stack if there is no configured
   * 'mono' font family.
   */
  
  pre,
  code,
  kbd,
  samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  }
  
  /**
   * 1. Make replaced elements "display: block" by default as that's
   *    the behavior you want almost all of the time. Inspired by
   *    CSS Remedy, with "svg" added as well.
   *
   *    https://github.com/mozdevs/cssremedy/issues/14
   * 
   * 2. Add "vertical-align: middle" to align replaced elements more
   *    sensibly by default when overriding "display" by adding a
   *    utility like "inline".
   *
   *    This can trigger a poorly considered linting error in some
   *    tools but is included by design.
   * 
   *    https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210
   */
  
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    display: block; /* 1 */
    vertical-align: middle; /* 2 */
  }
  
  /**
   * Constrain images and videos to the parent width and preserve
   * their intrinsic aspect ratio.
   *
   * https://github.com/mozdevs/cssremedy/issues/14
   */
  
  img,
  video {
    max-width: 100%;
    height: auto;
  }
  
  /**
   * Ensure the default browser behavior of the "hidden" attribute.
   */
  
  [hidden] {
    display: none;
  }
  
  *, ::before, ::after {
    --tw-border-opacity: 1;
    border-color: rgba(229, 231, 235, var(--tw-border-opacity));
  }
  /* Headings */
.content-editor h1, .content-editor .ce-header[data-level="1"] {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0.3em 0 0.15em;
  }
  .content-editor h2, .content-editor .ce-header[data-level="2"] {
    font-size: 1.5em;
    margin: 0.25em 0 0.15em;
  }
  .content-editor h3, .content-editor .ce-header[data-level="3"] {
    font-size: 1.25em;
    margin: 0.2em 0 0.1em;
  }
  
  /* Paragraphs */
  .content-editor p, .content-editor .ce-paragraph {
    margin: 0.25em 0;
    line-height: 1.4;
  }
  
  /* Lists */
  .content-editor ul, .content-editor ol {
    margin: 1em 0;
    padding-left: 2em;
    background: none;
    border: none;
    font-size: 1em;
  }
  .content-editor ul {
    list-style-type: initial;
  }
.content-editor ol {
    list-style-type: decimal;
}
  
  .content-editor li {
    padding: 0;
    border: none;
    background: none;
    transition: none;
  }

  
  /* Blockquotes */
  .content-editor blockquote {
    margin: 0.3em 0;
    padding: 0.4em 0.8em;
    background: #f2f2f2;
    border-left: 3px solid #bbb;
    font-style: italic;
  }
  
  /* Code */
  .content-editor code {
    background: #fafafa;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-family: Menlo, monospace;
  }
  .content-editor pre, .content-editor .ce-code {
    margin: 0.3em 0;
    padding: 0.8em;
    background: #f5f5f5;
    border-radius: 3px;
    font-family: Menlo, monospace;
    overflow-x: auto;
  }
  
  /* Images & Media */
  .content-editor img, .content-editor video, .content-editor canvas, .content-editor svg {
    margin: 0.3em 0;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Tables */
.content-editor table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.2em 0;
    background: #fff;
    font-size: 1em;
  }
  
  .content-editor th, .content-editor td {
    padding: 0.2em 0.4em;
    border: 1px solid #e2e2e2;
    text-align: left;
  }
  
  .content-editor th {
    background: #f5f5f7;
    font-weight: bold;
  }
  
  .content-editor tr:nth-child(even) {
    background: #fafbfc;
  }
  
  .content-editor tr:hover {
    background: #f0f7ff;
    transition: background 0.2s;
  }

  /* ===========================================================
     EditorJS chrome — theme-token-driven overrides
     All surfaces pull from the same CSS vars as the rest of the app
     (card / popover / border / primary / foreground) so theme or
     dark-mode changes propagate automatically.
     =========================================================== */

  /* Keep toolbar always visible instead of fading in on block hover */
  .content-editor .ce-toolbar__actions {
    opacity: 1;
  }

  /* Plus + settings buttons */
  .content-editor .ce-toolbar__plus,
  .content-editor .ce-toolbar__settings-btn {
    color: color-mix(in srgb, var(--foreground) 55%, transparent);
    background-color: color-mix(in srgb, var(--foreground) 5%, transparent);
    border-radius: var(--radius-control);
    transition:
      color var(--duration-fast) var(--ease-standard),
      background-color var(--duration-fast) var(--ease-standard);
  }
  .content-editor .ce-toolbar__plus:hover,
  .content-editor .ce-toolbar__settings-btn:hover {
    color: var(--foreground);
    background-color: color-mix(in srgb, var(--foreground) 10%, transparent);
  }

  /* Tooltip — matches popover/card surface */
  .content-editor .ct,
  .ct {
    background: var(--popover) !important;
    color: var(--popover-foreground) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-control) !important;
    padding: 5px 8px !important;
    font-size: var(--font-size-small) !important;
    line-height: 1.3 !important;
    box-shadow: var(--shadow-card) !important;
  }
  .content-editor .ct__content,
  .ct__content {
    color: inherit !important;
  }
  .content-editor .ct--bottom,
  .ct--bottom {
    margin-top: 4px !important;
  }
  .content-editor .ct--top,
  .ct--top {
    margin-top: -4px !important;
  }

  .content-editor .ce-toolbar__plus-shortcut {
    color: color-mix(in srgb, var(--foreground) 50%, transparent);
  }

  /* ---------- Popover (toolbox & conversion menu) ----------
     Portaled outside .content-editor — use global selectors. */
  .ce-popover,
  .ce-popover__container,
  .ce-popover__items,
  .ce-popover-header {
    background: var(--popover) !important;
    color: var(--popover-foreground) !important;
    border-color: var(--border) !important;
  }
  .ce-popover {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card) !important;
  }

  .ce-popover-item,
  .ce-popover-item-html {
    color: var(--popover-foreground) !important;
    background: transparent !important;
  }
  .ce-popover-item:hover,
  .ce-popover-item--focused:not(.ce-popover-item--no-focus) {
    background: color-mix(in srgb, var(--foreground) 8%, transparent) !important;
  }
  .ce-popover-item--active {
    background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
    color: var(--primary) !important;
  }
  .ce-popover-item__icon {
    background: color-mix(in srgb, var(--foreground) 6%, transparent) !important;
    border: 1px solid var(--border) !important;
    color: var(--popover-foreground) !important;
    box-shadow: none !important;
  }
  .ce-popover-item__title {
    color: var(--popover-foreground) !important;
  }
  .ce-popover-item__secondary-title {
    color: color-mix(in srgb, var(--foreground) 45%, transparent) !important;
  }
  .ce-popover-item-separator__line {
    background: var(--border) !important;
  }
  .ce-popover__nothing-found-message {
    color: color-mix(in srgb, var(--foreground) 50%, transparent) !important;
  }

  .ce-popover-header__text {
    color: var(--popover-foreground) !important;
  }
  .ce-popover-header__back-button {
    background: color-mix(in srgb, var(--foreground) 6%, transparent) !important;
    color: var(--popover-foreground) !important;
    border: 1px solid var(--border) !important;
  }

  /* Search / filter input */
  .cdx-search-field {
    background: color-mix(in srgb, var(--foreground) 5%, transparent) !important;
    border: 1px solid var(--border) !important;
    color: var(--foreground) !important;
    border-radius: var(--radius-control) !important;
  }
  .cdx-search-field__icon svg {
    fill: color-mix(in srgb, var(--foreground) 50%, transparent) !important;
  }
  .cdx-search-field__input {
    color: var(--foreground) !important;
  }
  .cdx-search-field__input::placeholder {
    color: color-mix(in srgb, var(--foreground) 35%, transparent) !important;
  }

  .ce-popover__overlay {
    background: transparent !important;
  }

  /* Inline toolbar (appears on text selection) */
  .content-editor .ce-inline-toolbar,
  .ce-inline-toolbar {
    background: var(--popover) !important;
    border: 1px solid var(--border) !important;
    color: var(--popover-foreground) !important;
    border-radius: var(--radius-card) !important;
    box-shadow: var(--shadow-card) !important;
  }
  .content-editor .ce-inline-tool,
  .ce-inline-tool {
    color: color-mix(in srgb, var(--foreground) 70%, transparent) !important;
  }
  .content-editor .ce-inline-tool:hover,
  .ce-inline-tool:hover {
    background: color-mix(in srgb, var(--foreground) 10%, transparent) !important;
    color: var(--foreground) !important;
  }
  .content-editor .ce-inline-tool--active,
  .ce-inline-tool--active {
    background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
    color: var(--primary) !important;
  }

  /* Selected block highlight */
  .content-editor .ce-block--selected .ce-block__content {
    background: color-mix(in srgb, var(--foreground) 3%, transparent) !important;
    border-radius: var(--radius-control);
  }
/* Lexical-rendered content. Class names mirror lexicalTheme.
   Scoped under .content-editor — the same CSS is shipped to the canvas
   iframe via getRichTextEditorStyling(), so the editor preview and the
   published page render identically. */

/* RTE-internal palette. Solid colors on purpose: the canvas inherits
   `color` from whichever site theme it lives in, so anything tied to
   currentColor would render differently between editor and canvas. */
.content-editor {
  --rte-quote-bg: #f3f4f6;
  --rte-quote-bar: #9ca3af;
  --rte-code-bg: #f1f5f9;
  --rte-code-border: #e5e7eb;
  --rte-link: #1d4ed8;
  --rte-table-line: #e5e7eb;
  --rte-table-head: #f5f5f5;
  --rte-cap: #6b7280;
  --rte-muted: #9ca3af;
}

/* Paragraph & basic blocks */
.content-editor .lex-paragraph {
  margin: 0.25em 0;
  line-height: 1.4;
}

.content-editor .lex-quote {
  margin: 0.3em 0;
  padding: 0.4em 0.8em;
  background: var(--rte-quote-bg);
  border-left: 3px solid var(--rte-quote-bar);
  font-style: italic;
}

/* Headings */
.content-editor .lex-h1 {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0.3em 0 0.15em;
}

.content-editor .lex-h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0.25em 0 0.15em;
}

.content-editor .lex-h3 {
  font-size: 1.25em;
  font-weight: bold;
  margin: 0.2em 0 0.1em;
}

.content-editor .lex-h4 {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0.18em 0 0.1em;
}

.content-editor .lex-h5,
.content-editor .lex-h6 {
  font-size: 1em;
  font-weight: bold;
  margin: 0.15em 0;
}

/* Lists */
.content-editor .lex-ul,
.content-editor .lex-ol {
  margin: 1em 0;
  padding-left: 2em;
  background: none;
  border: none;
  font-size: 1em;
}

.content-editor .lex-ul {
  list-style-type: disc;
}

.content-editor .lex-ol {
  list-style-type: decimal;
}

.content-editor .lex-li {
  padding: 0;
  border: none;
  background: none;
}

.content-editor .lex-nested-li {
  list-style-type: none;
}

/* Inline text */
.content-editor .lex-bold {
  font-weight: 700;
}

.content-editor .lex-italic {
  font-style: italic;
}

.content-editor .lex-underline {
  text-decoration: underline;
}

.content-editor .lex-strikethrough {
  text-decoration: line-through;
}

.content-editor .lex-underline-strikethrough {
  text-decoration: underline line-through;
}

.content-editor .lex-inline-code {
  background: var(--rte-code-bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-family: Menlo, monospace;
  font-size: 0.95em;
}

.content-editor .lex-link {
  color: var(--rte-link);
  text-decoration: underline;
}

/* Code block */
.content-editor .lex-code {
  display: block;
  margin: 0.3em 0;
  padding: 0.8em;
  background: var(--rte-code-bg);
  border: 1px solid var(--rte-code-border);
  border-radius: 4px;
  font-family: Menlo, monospace;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Tables */
.content-editor .lex-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0;
}

.content-editor .lex-table-row {
  border-bottom: 1px solid var(--rte-table-line);
}

.content-editor .lex-table-cell,
.content-editor .lex-table-cell-header {
  padding: 0.4em 0.6em;
  border: 1px solid var(--rte-table-line);
  vertical-align: top;
}

.content-editor .lex-table-cell-header {
  background: var(--rte-table-head);
  font-weight: 600;
  text-align: left;
}

/* Image & embed */
.content-editor .lex-image,
.content-editor .lex-embed {
  margin: 0.5em 0;
}

.content-editor .lex-image img,
.content-editor img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-editor .lex-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.content-editor .lex-embed-caption,
.content-editor figcaption {
  margin-top: 0.4em;
  color: var(--rte-cap);
  font-size: 0.9em;
  text-align: center;
}

/* Prism syntax-highlight palette. Solid OKLCH so it reads on white or dark. */
.content-editor .lex-tok-comment {
  color: var(--rte-muted);
  font-style: italic;
}
.content-editor .lex-tok-keyword {
  color: oklch(48% 0.18 262);
}
.content-editor .lex-tok-fn {
  color: oklch(50% 0.20 305);
}
.content-editor .lex-tok-prop {
  color: oklch(50% 0.20 25);
}
.content-editor .lex-tok-sel {
  color: oklch(48% 0.16 155);
}
.content-editor .lex-tok-attr {
  color: oklch(54% 0.16 70);
}
.content-editor .lex-tok-var {
  color: oklch(48% 0.20 350);
}
.content-editor .lex-tok-op,
.content-editor .lex-tok-punct {
  color: oklch(45% 0 0);
}
/* fonts. the full Figtree files, pinned, because the Google Fonts service strips ss01 */
@font-face {
  font-family: "Figtree";
  src: url("https://cdn.jsdelivr.net/gh/google/fonts@a60a77e14f28abd4ef243a1b5dfc48df0cec5205/ofl/figtree/Figtree%5Bwght%5D.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("https://cdn.jsdelivr.net/gh/google/fonts@a60a77e14f28abd4ef243a1b5dfc48df0cec5205/ofl/figtree/Figtree-Italic%5Bwght%5D.ttf") format("truetype");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* design panel tokens only, a panel save rewrites this whole rule */
:root {
  /* @type {color} @description Page background */
  --color-background: #fbfbfb;
  /* @type {color} @description Card background */
  --color-surface: #ffffff;
  /* @type {color} @description Soft fill for quiet panels and hovers */
  --color-fill: #f5f5f5;
  /* @type {color} @description Headings and strong text */
  --color-heading: #222222;
  /* @type {color} @description Body text */
  --color-text: #484848;
  /* @type {color} @description Secondary text */
  --color-muted: #686868;
  /* @type {color} @description Dark panels and the focus ring */
  --color-dark: #171717;
  /* @type {color} @description Lime brand color for buttons */
  --color-primary: #d2ea3f;
  /* @type {color} @description Lime button border */
  --color-primary-border: #b2cf13;
  /* @type {color} @description Lime button hover */
  --color-primary-hover: #e2f462;
  /* @type {color} @description Text on the lime brand color */
  --color-primary-contrast: #171717;
  /* @type {color} @description Link text */
  --color-link: #b84f0a;
  /* @type {color} @description Lines and borders */
  --color-border: #cecece;
  /* @type {color} @description Light lines and hover fill */
  --color-border-soft: #e8e8e8;
  /* @type {unit} @description Small card and button corner radius */
  --radius-sm: 16px;
  /* @type {unit} @description Card corner radius */
  --radius-md: 24px;
  /* @type {unit} @description Hero corner radius */
  --radius-lg: 32px;
}

/* every other token, the panel never touches html:root */
html:root {
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --text-5xl: clamp(2.5rem, 1.75rem + 3.2vw, 4rem);
  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --tracking-tight: -0.01em;
  --tracking-caps: 0.06em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --section-space: clamp(3rem, 2rem + 4vw, 5rem);
  --container-width: 80rem;
  --container-gutter: clamp(1rem, 0.25rem + 3.2vw, 2rem);

  --radius-full: 9999px;
  --shadow-sm: 0 2px 12px rgb(0 0 0 / 0.08);
  --shadow-md: 0 6px 24px rgb(0 0 0 / 0.15);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

:focus-visible {
  outline: 2px solid var(--color-dark);
  outline-offset: 2px;
}

::selection {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

/* rich text, :is() so the rule beats both editor stylesheets */
.content-editor {
  --rte-link: var(--color-link);
  --rte-quote-bg: var(--color-fill);
  --rte-quote-bar: var(--color-primary-border);
  --rte-table-line: var(--color-border-soft);
  --rte-table-head: var(--color-fill);
  line-height: var(--leading-normal);
}

.content-editor :is(p, .lex-paragraph) {
  margin: 0 0 var(--space-4);
  line-height: inherit;
}

.content-editor :is(h2, .lex-h2) {
  font-size: var(--text-3xl);
  margin: var(--space-8) 0 var(--space-3);
}

.content-editor :is(h3, .lex-h3) {
  font-size: var(--text-2xl);
  margin: var(--space-6) 0 var(--space-2);
}

.content-editor :is(ul, ol, .lex-ul, .lex-ol) {
  margin: 0 0 var(--space-4);
}

.content-editor > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-heading);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.button-primary {
  border-color: var(--color-primary-border);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.button-primary:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
