/* Scoped rich content styling. Legacy/manual .detail-body is intentionally untouched. */
.detail-body--notion { white-space: normal; }
.notion-content { --notion-accent: #7030A0; color: #302b39; font-size:var(--type-16); line-height: 1.85; overflow-wrap: anywhere; min-width: 0; }
.notion-content > :first-child { margin-top: 0; }
.notion-content .notion-paragraph { margin: 0 0 1em; white-space: pre-wrap; }
.notion-content .notion-heading { color: #30213e; font-weight: 700; line-height: 1.4; margin: 1.8em 0 .7em; letter-spacing: -.025em; }
.notion-content h2.notion-heading { font-size:var(--type-32); color: var(--notion-accent); }
.notion-content h3.notion-heading { font-size:var(--type-20); }
.notion-content h4.notion-heading { font-size:var(--type-16); }
.notion-content a { color: var(--notion-accent); text-decoration: underline; text-underline-offset: .2em; }
.notion-content a:hover { color: #522073; }
.notion-content a:focus-visible, .notion-content summary:focus-visible, .notion-table-scroll:focus-visible { outline: 2px solid var(--notion-accent); outline-offset: 4px; }
.notion-list { padding-inline-start: 0; margin: .7em 0 1.2em; list-style-position: inside; }
ul.notion-list { list-style-type: disc; }
ol.notion-list { list-style-type: decimal; }

.notion-list > li { white-space: pre-wrap; margin-bottom: .35em; }
.notion-children { margin: .5em 0 .7em 1em; min-width: 0; }
.notion-children > :last-child { margin-bottom: 0; }
.notion-todo { display: flex; align-items: baseline; gap: .65em; margin: .7em 0; }
.notion-todo input { flex: 0 0 auto; accent-color: var(--notion-accent); }
.notion-todo span { white-space: pre-wrap; }
.notion-quote { margin: 1.2em 0; border-left: 3px solid var(--notion-accent); padding: .35em 1em; white-space: pre-wrap; }
.notion-callout { border-left: 3px solid #b694cf; background: #faf7fc; padding: .9em 1.1em; margin: 1.2em 0; white-space: pre-wrap; }
.notion-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size:var(--type-14); background: #f4eff8; padding: .1em .3em; border-radius: 3px; }
.notion-code { margin: 1.2em 0; min-width: 0; }
.notion-code-language { display: block; color: #77707e; font-size:var(--type-12); }
.notion-code pre { padding: 1em; background: #f7f4f9; overflow-x: auto; line-height: 1.6; white-space: pre; }
.notion-code pre code { padding: 0; background: none; }
.notion-divider { border: 0; border-top: 1px solid #e4dce9; margin: 1.8em 0; }
.notion-toggle { margin: 1em 0; padding: .6em 0; border-bottom: 1px solid #e9e2ed; }
.notion-toggle > summary { cursor: pointer; font-weight: 600; color: #503162; }
.notion-toggle-heading > summary .notion-heading { display: inline; margin: 0; }
.notion-callout-icon { margin-right: .6em; }
.notion-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.4em 0; overscroll-behavior-x: contain; }
.notion-content .notion-table { border-collapse: collapse; width: 100%; min-width: 420px; font-size:var(--type-14); line-height: 1.7; }
.notion-table th, .notion-table td { border: 1px solid #dfd6e6; padding: .75em 1em; vertical-align: top; text-align: left; white-space: pre-wrap; min-width: 100px; }
.notion-table th { background: #f5eff9; color: #593371; font-weight: 700; }
.notion-column-list > .notion-children { display: flex; align-items: flex-start; gap: 24px; margin-left: 0; }
.notion-column { flex: 1 1 0; min-width: 0; }
.notion-column > .notion-children { margin-left: 0; }
.notion-image, .notion-file { margin: 1.4em 0; }
.notion-image img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
@media (min-width: 801px) {
  .notion-image img { max-width: min(100%, 640px); margin-inline: 0; }
}
.detail-body .notion-video { margin: 1.4em 0; min-width: 0; }
.detail-body .notion-video video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; background: #111; }
.notion-image > .notion-caption { display: none; }
.notion-caption { margin-top: .5em; font-size:var(--type-12); color: #77707e; text-align: center; white-space: pre-wrap; }
.notion-child-page, .notion-link { margin: 1em 0; }
.notion-unavailable, .notion-unsupported { color: #78717f; font-size:var(--type-14); }
.detail-sync { margin: 24px 0 8px; font-size:var(--type-12); line-height: 1.7; color: #81798a; }
.detail-source--notion { margin-top: 8px; font-size:var(--type-12); }
.detail-source--notion a { color: #7030A0; text-decoration: underline; text-underline-offset: .2em; }
.detail-content-warnings { margin: 18px 0; border-left: 2px solid #b694cf; padding-left: 14px; font-size:var(--type-12); color: #6e6177; }
.detail-content-warnings p { margin: 0 0 4px; font-weight: 600; }
.detail-content-warnings ul { margin: 0; padding-left: 18px; }
@media (max-width: 640px) {
  .notion-content { font-size:var(--type-14); }
  .notion-content h3.notion-heading { font-size:var(--type-20); }
  .notion-column-list > .notion-children { display: block; }
  .notion-column { margin-bottom: 1em; }
  .notion-children { margin-left: .65em; }
}
