/* Accountability Lookup — layered on red-green-billboard.css */

.ac-block p { margin: 0 0 0.7rem; line-height: 1.65; color: #d9d3c4; font-size: 0.95rem; }
.ac-block p:last-child { margin-bottom: 0; }
.ac-block strong { color: #f0e6d2; }
.ac-block em { color: #c9a227; font-style: italic; }
.ac-block ul { margin: 0.5rem 0 1rem; padding-left: 1.4rem; color: #d9d3c4; }
.ac-block li { margin-bottom: 0.4rem; line-height: 1.55; }
.ac-block a { color: #c9a227; text-decoration: none; border-bottom: 1px dotted rgba(201,162,39,0.4); }
.ac-block a:hover { border-bottom-style: solid; }
.ac-disclaimer { color: #a9b6cb; font-size: 0.88rem; font-style: italic; }

/* Quick search */
.ac-quick {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}
.ac-quick__input {
  background: #0a1422;
  color: #f0e6d2;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.ac-quick__input:focus {
  border-color: #c9a227;
  box-shadow: 0 0 0 2px rgba(201,162,39,0.18);
}
.ac-quick__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0;
  background: #0a1422;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 6px;
  list-style: none;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.ac-quick__item {
  padding: 0.5rem 0.75rem;
  color: #f0e6d2;
  cursor: pointer;
  font-size: 0.93rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.08);
  outline: none;
}
.ac-quick__item:last-child { border-bottom: none; }
.ac-quick__item:hover, .ac-quick__item:focus {
  background: rgba(201, 162, 39, 0.12);
  color: #ffd54a;
}
.ac-quick__item--state { color: #c9d6e8; }
.ac-quick__item--state:hover, .ac-quick__item--state:focus { color: #ffd54a; }

/* Results filter */
.ac-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.85rem 0 0;
}

/* Pickers */
.ac-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 600px) { .ac-pickers { grid-template-columns: 1fr; } }

.ac-picker { display: flex; flex-direction: column; gap: 0.3rem; }
.ac-picker__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a9bb0;
}
.ac-picker__select {
  background: #0a1422;
  color: #f0e6d2;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}
.ac-picker__select:focus { border-color: #c9a227; box-shadow: 0 0 0 2px rgba(201,162,39,0.18); }

/* State chip row — quick state picker for crisis mode */
.ac-state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.45rem;
}
.ac-state-chip {
  background: #0a1422;
  color: #a9b6cb;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-family: ui-monospace, "SF Mono", monospace;
  cursor: pointer;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.ac-state-chip:hover, .ac-state-chip:focus {
  background: rgba(201, 162, 39, 0.14);
  color: #ffd54a;
  border-color: #c9a227;
  outline: none;
}
.ac-state-chip--on {
  background: rgba(201, 162, 39, 0.22);
  color: #ffd54a;
  border-color: #c9a227;
}

/* Results */
.ac-results { margin-top: 1rem; }
.ac-empty {
  padding: 1.2rem 0.5rem;
  text-align: center;
  color: #a9b6cb;
  font-style: italic;
  font-size: 0.92rem;
}
.ac-empty--err { color: #c9a227; }

.ac-results__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201,162,39,0.18);
  padding-bottom: 0.4rem;
}
.ac-results__title { margin: 0; font-size: 1.05rem; color: #f0e6d2; }
.ac-results__sub   { font-size: 0.82rem; color: #8a9bb0; font-family: ui-monospace, monospace; }

.ac-results__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ac-results__grid { grid-template-columns: 1fr 1fr; }
}

.ac-card {
  background: var(--rg-slate, #1a2738);
  border-radius: 8px;
  border-left: 4px solid #c9a227;
  padding: 0.85rem 1rem;
}
.ac-card__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.ac-card__kind {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c9a227;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.ac-card__name { margin: 0; font-size: 0.98rem; color: #f0e6d2; flex: 1 1 100%; }
.ac-card__body { display: flex; flex-direction: column; gap: 0.32rem; }
.ac-card__row {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #d9d3c4;
}
.ac-card__row strong { color: #f0e6d2; }
.ac-card__ext {
  color: #c9a227;
  text-decoration: none;
  font-size: 0.95rem;
  padding-left: 0.2rem;
}
.ac-card__ext:hover { color: #f0e6d2; }

.ac-results__disclaimer {
  margin-top: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(201,162,39,0.18);
  font-size: 0.82rem;
  color: #758496;
  font-style: italic;
}

/* ----------------- State court directory ----------------- */
.ac-court-directory {
  margin-top: 1rem;
  background: var(--rg-slate, #1a2738);
  border-radius: 8px;
  border-left: 4px solid #6ad17a;
  padding: 0.95rem 1.1rem;
}
.ac-dir__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.ac-dir__kind {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6ad17a;
  background: rgba(106, 209, 122, 0.08);
  border: 1px solid rgba(106, 209, 122, 0.35);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}
.ac-dir__title { margin: 0; font-size: 0.98rem; color: #f0e6d2; }
.ac-dir__body { display: flex; flex-direction: column; gap: 0.32rem; }
.ac-dir__row { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #d9d3c4; }
.ac-dir__row strong { color: #f0e6d2; }
.ac-dir__link {
  color: #6ad17a;
  text-decoration: none;
  border-bottom: 1px dotted rgba(106, 209, 122, 0.4);
  word-break: break-all;
}
.ac-dir__link:hover, .ac-dir__link:focus { border-bottom-style: solid; color: #94e3a5; outline: none; }
.ac-dir__notes {
  margin: 0.7rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(106, 209, 122, 0.18);
  font-size: 0.82rem;
  color: #a9b6cb;
  font-style: italic;
}

/* ----------------- 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-pickers, .ac-quick, .ac-filter, .ac-state-chips { display: none !important; }
  .rg-section__title { color: #000; }
  .rg-card { background: none !important; border: 1px solid #000; }
  .ac-block p, .ac-block ul, .ac-block li { color: #000; }
  .ac-results__head { border-bottom-color: #000; }
  .ac-results__title { color: #000; }
  .ac-results__sub { color: #444; }
  .ac-results__grid { grid-template-columns: 1fr !important; }
  .ac-card {
    background: none !important;
    border-left: 2px solid #000;
    page-break-inside: avoid;
    margin-bottom: 0.4rem;
  }
  .ac-card__kind { background: #eee; color: #000; border-color: #000; }
  .ac-card__name, .ac-card__row { color: #000; }
  .ac-card__row strong { color: #000; }
  .ac-card__ext { color: #000; }
  .ac-results__disclaimer { color: #444; border-top-color: #000; }
  a { color: #000 !important; text-decoration: underline !important; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #444;
  }
}
