/* Shared chrome for draftmesh public share pages. */
:root {
  --doc-read-width: 660px;
  --page-pad-x: clamp(16px, 4vw, 24px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.page {
  width: min(var(--doc-read-width), calc(100% - 2 * var(--page-pad-x)));
  margin: 0 auto;
  padding: clamp(10px, 1.5vw, 14px) 0 56px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.site-header {
  background: transparent;
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 12px;
}
.share-context {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: .76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.wordmark {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
}
.share-context a {
  color: inherit;
  text-decoration: none;
}
.share-context strong {
  color: inherit;
  font-weight: 500;
}
.share-context-sep {
  user-select: none;
}
.share-context time {
  white-space: nowrap;
}
.doc-title {
  width: 100%;
  margin: 0 0 12px;
}
.doc-title h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 700;
}
.article-shell {
  width: 100%;
}
article {
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}
article > *:first-child { margin-top: 0; }
article > *:last-child { margin-bottom: 0; }
article ul.contains-task-list,
article ul:has(> li > input[type="checkbox"]) {
  list-style: none;
  padding-left: 0;
}
article li.task-list-item,
article li:has(> input[type="checkbox"]) {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
article li input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}
article a.internal-link.unresolved,
article a[href="#draftmesh-unresolved"] {
  text-decoration-style: dashed;
  cursor: help;
}
.render-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 14px;
  font-size: .95rem;
}
article .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12em 0.55em;
  border-radius: 999px;
  font-size: 0.84em;
  font-weight: 500;
  line-height: 1.35;
  vertical-align: baseline;
  white-space: nowrap;
}
body.share-layout-minimal article .tag {
  background: rgba(127, 127, 127, 0.15);
}
@media (max-width: 620px) {
  .site-header { margin-bottom: 10px; }
  .doc-title { margin-bottom: 10px; }
  .doc-title h1 { font-size: 1.45rem; }
  .page { padding-top: 8px; }
}
@media print {
  .page { width: 100%; padding: 28px 16px 0; }
  .doc-title, .share-context { width: 100%; }
}

/* Minimal Publish layout */
body.share-layout-minimal {
  background: var(--background-primary, var(--bg1, #fff));
  color: var(--text-normal, #1d211f);
}
body.share-layout-minimal .share-context,
body.share-layout-minimal .wordmark {
  color: var(--text-muted, #68706a);
}
body.share-layout-minimal .doc-title h1 {
  font-family: var(--font-interface, Inter, ui-sans-serif, system-ui, sans-serif);
  font-weight: var(--page-title-weight, 600);
  color: var(--title-color, var(--text-normal));
}
body.share-layout-minimal .article-shell-minimal {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
body.share-layout-minimal .markdown-preview-view {
  padding: 0;
}
