/* CLIEAIR Sealed Pathways */

.sp-section-lede {
  color: #a9b6cb;
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 1rem;
}

.sp-result, .sp-federal-grid, .sp-doctrines-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-top: 0.6rem;
}
@media (min-width: 780px) {
  .sp-federal-grid, .sp-doctrines-grid { grid-template-columns: 1fr 1fr; }
}

.sp-card {
  background: #1a2738;
  border-radius: 8px;
  border-left: 4px solid #c9a227;
  padding: 0.95rem 1.1rem;
}
.sp-card--state    { border-left-color: #c9a227; }
.sp-card--federal  { border-left-color: #7cb8ff; }
.sp-card--doctrine { border-left-color: #ff9fb6; }

.sp-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}
.sp-card__title {
  margin: 0;
  font-size: 1rem;
  color: #f3eddc;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.sp-card__badge {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 600;
}
.sp-card__badge--state    { color: #c9a227; background: rgba(201, 162, 39, 0.08); border: 1px solid rgba(201, 162, 39, 0.35); }
.sp-card__badge--federal  { color: #7cb8ff; background: rgba(124, 184, 255, 0.08); border: 1px solid rgba(124, 184, 255, 0.35); }
.sp-card__badge--doctrine { color: #ff9fb6; background: rgba(255, 159, 182, 0.08); border: 1px solid rgba(255, 159, 182, 0.35); }

.sp-card__body { display: flex; flex-direction: column; gap: 0.4rem; }
.sp-row { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #d9d3c4; }
.sp-row strong { color: #f0e6d2; }
.sp-row-link, .sp-ext {
  color: #c9a227;
  text-decoration: none;
  border-bottom: 1px dotted rgba(201, 162, 39, 0.4);
  word-break: break-word;
}
.sp-row-link:hover, .sp-ext:hover, .sp-row-link:focus, .sp-ext:focus {
  border-bottom-style: solid; color: #ffd54a; outline: none;
}

/* ----------------- Sua sponte sealing ----------------- */
.sp-suasponte { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 0.6rem; }
.sp-ss-h { margin: 0 0 0.55rem; font-size: 1.02rem; color: #c9a227; font-weight: 700; }
.sp-ss-sub { margin: 0 0 0.7rem; font-size: 0.86rem; color: #a9b6cb; font-style: italic; }
.sp-ss-principle { border-left: 4px solid #6ad17a; }
.sp-ss-principle p { margin: 0; color: #e8e2d3; line-height: 1.6; font-size: 0.96rem; }
.sp-ss-why { border-left: 4px solid #6ad17a; }
.sp-ss-list { margin: 0; padding-left: 1.3rem; }
.sp-ss-list li { margin-bottom: 0.5rem; color: #d9d3c4; line-height: 1.55; font-size: 0.9rem; }

.sp-ss-checklist { border-left: 4px solid #c9a227; }
.sp-ss-item { border-bottom: 1px dashed rgba(201,162,39,0.15); }
.sp-ss-item:last-child { border-bottom: none; }
.sp-ss-row {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  padding: 0.7rem 0; color: #e8e2d3; font-family: inherit; font-size: 0.92rem; line-height: 1.45;
}
.sp-ss-row:hover .sp-ss-q { color: #ffd54a; }
.sp-ss-q { flex: 1; }
.sp-ss-chip {
  flex: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.18rem 0.6rem; border-radius: 999px; color: #6ad17a;
  background: rgba(106,209,122,0.1); border: 1px solid rgba(106,209,122,0.4);
}
.sp-ss-row::after { content: '+'; color: #c9a227; font-weight: 700; margin-left: 0.3rem; }
.sp-ss-row--open::after { content: '–'; }
.sp-ss-arg {
  margin: 0 0 0.7rem; padding: 0.6rem 0.8rem; background: #0a1422; border-radius: 6px;
  border-left: 2px solid rgba(201,162,39,0.4); color: #c9d6e8; font-size: 0.86rem; line-height: 1.55;
}

.sp-ss-overlay { border-left: 4px solid #ff9fb6; }
.sp-ss-row-text { margin: 0 0 0.6rem; color: #d9d3c4; font-size: 0.92rem; line-height: 1.58; }
.sp-ss-test {
  margin: 0 0 0.6rem; padding: 0.55rem 0.75rem; background: #0a1422; border-radius: 6px;
  color: #e8e2d3; font-size: 0.9rem; line-height: 1.5; border-left: 2px solid rgba(255,159,182,0.4);
}
.sp-ss-test strong { color: #ff9fb6; }
.sp-ss-auth { margin: 0; font-size: 0.82rem; color: #8a9bb0; font-family: ui-monospace, monospace; }
.sp-ss-auth strong { color: #c9a227; font-family: inherit; }

.sp-ss-do { border-left: 4px solid #c9a227; }
.sp-ss-steps { margin: 0 0 0.9rem; padding-left: 1.3rem; }
.sp-ss-steps li { margin-bottom: 0.5rem; color: #d9d3c4; line-height: 1.55; font-size: 0.9rem; }
.sp-ss-cta {
  display: inline-block; background: #c9a227; color: #1a1208; padding: 0.6rem 1.1rem;
  border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.92rem;
}
.sp-ss-cta:hover, .sp-ss-cta:focus { background: #e0b736; outline: 3px solid rgba(255,220,120,0.3); }
.sp-ss-standing {
  margin: 0; font-size: 0.85rem; color: #758496; font-style: italic; line-height: 1.55;
  border-top: 1px dashed rgba(201,162,39,0.18); padding-top: 0.7rem;
}
.sp-ss-doctrines { margin-top: 0.3rem; }

/* ----------------- Build my draft ----------------- */
.sp-bm { border-left: 4px solid #6ad17a; }
.sp-bm-grid {
  display: grid; gap: 0.7rem; grid-template-columns: 1fr;
  margin: 0.3rem 0 0.8rem;
}
@media (min-width: 620px) { .sp-bm-grid { grid-template-columns: 1fr 1fr; } }
.sp-bm-field { display: flex; flex-direction: column; gap: 0.25rem; }
.sp-bm-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8a9bb0; }
.sp-bm-input {
  background: #0a1422; color: #f0e6d2; border: 1px solid rgba(201,162,39,0.3);
  border-radius: 6px; padding: 0.5rem 0.65rem; font-size: 0.95rem; font-family: inherit; outline: none; width: 100%; box-sizing: border-box;
}
.sp-bm-input:focus { border-color: #c9a227; box-shadow: 0 0 0 2px rgba(201,162,39,0.18); }
.sp-bm-rule {
  margin: 0 0 0.8rem; font-size: 0.84rem; line-height: 1.5; color: #c9d6e8;
  background: #0a1422; border-radius: 6px; padding: 0.55rem 0.75rem; border-left: 2px solid rgba(106,209,122,0.4);
}
.sp-bm-rule strong { color: #6ad17a; }
.sp-bm-toggles { display: grid; gap: 0.5rem; grid-template-columns: 1fr; margin-bottom: 0.9rem; }
@media (min-width: 620px) { .sp-bm-toggles { grid-template-columns: 1fr 1fr; } }
.sp-bm-toggle { display: flex; align-items: flex-start; gap: 0.5rem; color: #d9d3c4; font-size: 0.88rem; line-height: 1.4; cursor: pointer; }
.sp-bm-toggle input { margin-top: 0.15rem; accent-color: #6ad17a; flex: none; }
.sp-bm-status { margin: 0.6rem 0 0; font-size: 0.86rem; color: #a9b6cb; font-style: italic; }
.sp-bm-output {
  width: 100%; box-sizing: border-box; margin-top: 0.7rem;
  background: #0a1422; color: #e8e2d3; border: 1px solid rgba(201,162,39,0.3);
  border-radius: 6px; padding: 0.7rem 0.8rem; font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.82rem; line-height: 1.5; resize: vertical;
}
.sp-bm-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.sp-bm-btn {
  background: transparent; color: #c9a227; border: 1.5px solid rgba(201,162,39,0.4);
  border-radius: 6px; padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
.sp-bm-btn:hover, .sp-bm-btn:focus { background: rgba(201,162,39,0.14); color: #ffd54a; outline: none; }

/* ----------------- Print ----------------- */
@media print {
  body { background: #fff !important; color: #000 !important; font-size: 10pt; }
  .rg-hero { background: none !important; padding: 0.5rem 0; }
  .rg-hero__title { color: #000; font-size: 16pt; }
  .rg-hero__sub, .rg-hero__cta { display: none; }
  .ac-picker, .ac-state-chips, .sp-section-lede { display: none !important; }
  .sp-result, .sp-federal-grid, .sp-doctrines-grid { grid-template-columns: 1fr !important; }
  .sp-card { background: none !important; border-left-color: #000 !important; page-break-inside: avoid; }
  .sp-card__title, .sp-row { color: #000; }
  .sp-card__badge { background: #eee !important; color: #000 !important; border-color: #000 !important; }
  .sp-row-link, .sp-ext { color: #000 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
}
