/* --- COMPONENT RESET --- */
bc-district-lookup,
:host {
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  display: block;
}

/* Also protect the inputs/dropdowns inside the widget from inheriting giant text */
bc-district-lookup input,
bc-district-lookup select,
:host input,
:host select {
  font-size: 16px;
}

/* --- APP LAYOUT --- */
.bcdl-app-container {
  width: 100%;
  max-width: 600px;
  padding: 0 15px;
}

.bcdl-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 1rem;
}

.bcdl-btn-nav {
  display: inline-flex;
  align-items: center;
  background-color: #e2e8f0;
  color: #1e293b;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.bcdl-btn-nav:hover {
  background-color: #cbd5e1;
}

/* --- OUTPUT CARD OVERALL --- */
.bcdl-result-card {
  margin-top: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  border-top: 5px solid #475569;
  overflow: hidden;
}

.bcdl-card-header {
  padding: 20px;
}

.bcdl-address-output {
  font-size: 1.1rem;
  color: #1e293b;
  line-height: 1.25;
}

/* --- LOWER SECTION: MLA Profile --- */
.bcdl-mla-output {
  padding: 0 20px 20px 20px;
  border-top: 1px solid #cbd5e1;
  background-color: #f1f5f9;
  padding-top: 20px;
}

.bcdl-district-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
}

.bcdl-mla-profile {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.bcdl-headshot {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  background-color: #eee;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.bcdl-mla-details {
  flex: 1;
}

.bcdl-mla-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.bcdl-mla-name {
  color: #0066cc;
  text-decoration: none;
  font-size: 1.15rem;
}

.bcdl-mla-name:hover {
  text-decoration: underline;
}

.bcdl-party-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bcdl-mla-contact {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

.bcdl-mla-contact a {
  color: #0066cc;
  text-decoration: none;
}

.bcdl-mla-contact a:hover {
  text-decoration: underline;
}

.bcdl-address-block {
  line-height: 1.25;
  margin-bottom: 4px;
}

/* --- DEVELOPER RAW JSON SECTION --- */
.bcdl-result-card details {
  border-top: 1px solid #cbd5e1;
}

.bcdl-result-card summary {
  background-color: #e2e8f0;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  user-select: none;
  transition: background-color 0.2s ease;
}

.bcdl-result-card summary:hover {
  background-color: #cbd5e1;
}

.bcdl-result-card pre {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 20px;
  margin: 0;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  border-top: 1px solid #334155;
}
