/* Canonical article document styling. Loaded by both the Admin editor and the public reader. */
.article-content {
  --article-text: var(--nv-text, var(--text, #1d1d1f));
  --article-muted: var(--nv-text-secondary, var(--text-secondary, #6e6e73));
  --article-border: var(--nv-border, var(--border, #d2d2d7));
  --article-soft: var(--nv-primary-soft, var(--primary-soft, #f5f5f7));
  --article-accent: var(--nv-accent, var(--primary, #0071e3));
  --article-radius: var(--nv-radius, var(--radius, 10px));
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  color: var(--article-text);
  font-family: Inter, var(--nv-font-body, var(--font-geist-sans, system-ui)), sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content p { margin: 0 0 1.25rem; }
.article-content h1,.article-content h2,.article-content h3,.article-content h4,.article-content h5,.article-content h6 {
  margin: 2rem 0 .8rem;
  color: var(--article-text);
  font-family: var(--nv-font-display, var(--font-geist-sans, system-ui)), sans-serif;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.article-content h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.article-content h2 { font-size: clamp(1.65rem, 4vw, 2.15rem); }
.article-content h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.article-content h4 { font-size: 1.3rem; }
.article-content h5 { font-size: 1.15rem; }
.article-content h6 { font-size: 1rem; letter-spacing: .01em; text-transform: uppercase; }
.article-content ul,.article-content ol { margin: 0 0 1.25rem; padding-left: 1.75rem; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content ul ul { list-style-type: circle; }
.article-content ul ul ul { list-style-type: square; }
.article-content ol ol { list-style-type: lower-alpha; }
.article-content li { display: list-item; margin: .35rem 0; }
.article-content li > ul,.article-content li > ol { margin: .35rem 0 0; }
.article-content strong { font-weight: 750; }
.article-content em { font-style: italic; }
.article-content u { text-decoration: underline; text-underline-offset: .14em; }
.article-content s { text-decoration: line-through; }
.article-content a { color: var(--article-accent); text-decoration: underline; text-underline-offset: .16em; }
.article-content blockquote { margin: 1.5rem 0; padding: .9rem 1.25rem; border-left: 4px solid var(--article-accent); border-radius: 0 var(--article-radius) var(--article-radius) 0; background: var(--article-soft); font-style: italic; }
.article-content blockquote > :last-child { margin-bottom: 0; }
.article-content code { padding: .12em .35em; border-radius: 4px; background: var(--article-soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.article-content pre { max-width: 100%; margin: 1.5rem 0; overflow-x: auto; padding: 1rem; border-radius: var(--article-radius); color: #e6edf3; background: #17202b; line-height: 1.6; }
.article-content pre code { padding: 0; color: inherit; background: transparent; font-size: .875rem; }
.article-content hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--article-border); }
.article-content img { display: block; max-width: 100%; height: auto; margin-block: 1.5rem; border-radius: var(--article-radius); object-fit: contain; }
.article-content img[data-alignment='left'] { margin-right: auto; margin-left: 0; }
.article-content img[data-alignment='center'],.article-content img:not([data-alignment]) { margin-right: auto; margin-left: auto; }
.article-content img[data-alignment='right'] { margin-right: 0; margin-left: auto; }
.article-content figure { max-width: 100%; margin: 1.5rem auto; }
.article-content figure img { margin-block: 0; }
.article-content figcaption { margin-top: .5rem; color: var(--article-muted); font-size: .875rem; text-align: center; }
.article-content .tableWrapper { max-width: 100%; margin: 1.5rem 0; overflow-x: auto; }
.article-content table { width: 100%; min-width: 560px; border: 1px solid var(--article-border); border-collapse: separate; border-spacing: 0; border-radius: var(--article-radius); }
.article-content th,.article-content td { min-width: 96px; padding: .55rem .75rem; border-right: 1px solid var(--article-border); border-bottom: 1px solid var(--article-border); vertical-align: top; text-align: left; }
.article-content th { background: var(--article-soft); font-weight: 750; }
.article-content tr:last-child > * { border-bottom: 0; }
.article-content tr > *:last-child { border-right: 0; }

/* Tiptap-only image chrome; it never appears in generated article HTML. */
.article-content .post-image-node { position: relative; max-width: 100%; margin-block: 1.5rem; }
.article-content .post-image-node[data-alignment='left'] { margin-right: auto; margin-left: 0; }
.article-content .post-image-node[data-alignment='center'] { margin-right: auto; margin-left: auto; }
.article-content .post-image-node[data-alignment='right'] { margin-right: 0; margin-left: auto; }
.article-content .post-image-node img { width: 100%; margin: 0; }
.post-image-node.is-selected img { outline: 2px solid var(--article-accent); outline-offset: 2px; }
.post-image-resize-handle { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; background: var(--article-accent); box-shadow: 0 1px 5px #0005; cursor: nwse-resize; touch-action: none; }
.post-image-toolbar { position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 9px); display: flex; max-width: min(96vw, 620px); gap: 2px; overflow-x: auto; padding: 4px; border: 1px solid var(--article-border); border-radius: 8px; color: var(--article-text); background: var(--surface, white); box-shadow: 0 8px 24px #0002; transform: translateX(-50%); white-space: nowrap; }
.post-image-toolbar button { min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 5px; color: inherit; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.post-image-toolbar button:hover,.post-image-toolbar button[aria-pressed='true'] { background: var(--article-soft); }

@media (max-width: 639.98px) {
  .article-content { font-size: 15px; line-height: 1.72; }
  .article-content h1 { font-size: 2rem; }
  .article-content h2 { font-size: 1.6rem; }
  .article-content h3 { font-size: 1.35rem; }
}
