/* ═══════ INDEX PAGE STYLES ═══════
   Styles specific to the policy document page (index.html).
   Uses tokens.css for all design tokens.
   ═══════════════════════════════════ */

/* ── RIGHT COMMENTS RAIL ── */
.comments-rail {
  position: sticky;
  top: 0;
  width: var(--comment-width);
  min-width: var(--comment-width);
  height: 100vh; overflow-y: auto;
  padding: var(--space-10) var(--space-5) var(--space-16) var(--space-sm);
  background: transparent;
  border-left: 1px solid var(--color-border-light);
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.comments-rail::-webkit-scrollbar { width: 5px; }
.comments-rail::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 3px; }

.comment-card {
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary-300);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-sm);
  margin-bottom: var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-left-color .15s;
}
.comment-card:hover {
  background: var(--color-surface-alt);
  border-left-color: var(--color-accent);
}
.comment-card .comment-label {
  font-weight: var(--weight-bold); font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
  color: var(--color-primary-hover); margin-bottom: 6px;
}

/* checklist */
.checklist { list-style: none; margin-left: 0; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before {
  content: '\2610'; position: absolute; left: 0; color: var(--color-primary-hover);
  font-size: 15px;
}

/* ── BOLD CALLOUT TEXT ── */
.callout {
  background: var(--color-accent-100);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-sm); margin: var(--space-4) 0;
  font-weight: var(--weight-semibold); font-size: var(--text-sm);
}

/* ── SIGNATURE BLOCK ── */
.sig-line {
  border-bottom: 1px solid var(--color-text);
  width: 300px; height: 28px; display: inline-block;
  margin-left: 8px;
}

/* ── INLINE COMMENTS (narrow screens) ── */
@media (max-width: 1380px) {
  .comments-rail { display: none; }
  .inline-comment {
    display: block !important;
    background: var(--color-surface-alt);
    border-left: 3px solid var(--color-primary-300);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-sm);
    margin: var(--space-4) 0 var(--space-5);
    font-family: var(--font-ui);
    font-size: var(--text-xs); line-height: var(--leading-relaxed);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-sm);
  }
  .inline-comment .comment-label {
    font-weight: var(--weight-bold); font-size: 11px;
    text-transform: uppercase; letter-spacing: var(--tracking-wider);
    color: var(--color-primary-hover); margin-bottom: 6px;
  }
}
@media (min-width: 1381px) {
  .inline-comment { display: none; }
}

/* ── MOBILE OVERRIDES ── */
@media (max-width: 860px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sig-line { width: 60vw !important; }
  .callout { word-break: break-word; }
}
