/* src/static/css/section-canvas.css */
.section-canvas {
    font-family: Georgia, serif; font-size: 1rem; line-height: 1.7;
    color: var(--text-primary, #111);
    padding: 18px 22px; background: var(--bg-surface, #fff);
    border-radius: 8px; border: 1px solid var(--border, #d1d5db);
}
.section-canvas__disclosure {
    background: #fffbeb; border: 1px solid #fcd34d;
    border-left: 4px solid #d97706; padding: 12px 16px;
    border-radius: 6px; margin-bottom: 18px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.88rem; color: #1f2937;
}
.section-canvas__disclosure-title {
    font-weight: 700; margin: 0 0 6px; color: #92400e;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.section-canvas__disclosure-legend {
    display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px;
}
.section-canvas__swatch {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem;
}
.section-canvas__swatch::before {
    content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px;
}
.section-canvas__swatch--green::before    { background: #16A34A; }
.section-canvas__swatch--yellow::before   { background: #D97706; }
.section-canvas__swatch--red::before      { background: #DC2626; }
.section-canvas__swatch--approved::before { background: #111; }

.section-canvas__paragraph {
    margin: 0 0 12px; padding: 8px 12px;
    margin-left: -12px; margin-right: -12px;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
}
.section-canvas__paragraph--yellow {
    background: rgba(217, 119, 6, 0.07); border-left-color: #D97706;
}
.section-canvas__paragraph--red {
    background: rgba(220, 38, 38, 0.07); border-left-color: #DC2626;
}

.section-canvas__phrase {
    cursor: pointer; padding: 0 2px; border-radius: 3px;
    transition: outline 80ms ease, background 80ms ease;
}
.section-canvas__phrase:hover,
.section-canvas__phrase:focus {
    outline: 2px solid #f59e0b; background: rgba(245, 158, 11, 0.10);
}
.section-canvas__phrase--green    { color: #16A34A; font-weight: 500; }
.section-canvas__phrase--yellow   { color: #D97706; font-weight: 500; }
.section-canvas__phrase--red      { color: #DC2626; font-weight: 500; }
.section-canvas__phrase--approved { color: #111; font-weight: normal; }

.section-canvas-popover {
    position: absolute; background: var(--bg-surface, #fff);
    border: 1px solid #9ca3af; border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    width: 290px; z-index: 1000;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem; color: var(--text-primary, #111);
}
.section-canvas-popover__row {
    padding: 9px 12px; cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    display: flex; align-items: center; gap: 8px;
    background: transparent; border-left: 0; border-right: 0; border-top: 0;
    width: 100%; text-align: left;
}
.section-canvas-popover__row:last-child { border-bottom: 0; }
.section-canvas-popover__row:hover { background: #f3f4f6; }
.section-canvas-popover__row--suggestion { color: #16A34A; font-weight: 600; }
.section-canvas-popover__row--approve    { color: #16A34A; font-weight: 600; }
.section-canvas-popover__row--ignore     { color: #6b7280; }
.section-canvas-popover__provenance {
    font-size: 0.74rem; color: #6b7280; margin-top: 2px; font-weight: 400;
}
.section-canvas-popover__edit-input {
    border: 1px solid #d1d5db; border-radius: 4px;
    padding: 6px 8px; font-family: Georgia, serif; font-size: 0.9rem;
    margin: 8px 12px; box-sizing: border-box; width: calc(100% - 24px);
}
.section-canvas-popover__meta {
    padding: 8px 12px; background: #f9fafb;
    font-size: 0.75rem; color: #6b7280;
    border-radius: 0 0 6px 6px;
}

/* --- Continuous-mode canvas (Task 16 extension) --- */

/* Hide the per-section disclosure banners when the canvas is rendered inside
   #cont-doc; a single shared banner (.cont-doc__canvas-disclosure) takes
   their place at the top of the continuous doc. */
#cont-doc .section-canvas__disclosure { display: none; }

/* The canvas wrapper inside a continuous section: remove the card border/bg
   that makes sense in the single-section tab view but is visually heavy when
   stacked.  Let the cont-section itself provide the separation. */
.cont-section__canvas .section-canvas {
    border: none; border-radius: 0; padding: 12px 0;
    background: transparent;
}

/* Top-of-doc shared disclosure banner */
.cont-doc__canvas-disclosure {
    background: #fffbeb; border: 1px solid #fcd34d;
    border-left: 4px solid #d97706; padding: 12px 16px;
    border-radius: 6px; margin: 0 0 18px;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.88rem; color: #1f2937;
}
.cont-doc__canvas-disclosure-title {
    font-weight: 700; margin: 0 0 6px; color: #92400e;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
}

.needs-review-list { padding: 0; margin: 0; list-style: none; }
.needs-review-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.82rem;
}
.needs-review-item:hover { background: white; }
.needs-review-item__text { font-family: Georgia, serif; color: #111; }
.needs-review-item__text--red    { color: #DC2626; font-weight: 500; }
.needs-review-item__text--yellow { color: #D97706; font-weight: 500; }
.needs-review-item__sub {
    color: #6b7280;
    font-size: 0.72rem;
    margin-top: 3px;
}
