/* Fordham Institute Theme - Topics Section Styling */

/* Site-specific topics styling (Policy Priority, Issue Topics) */
.article-topics {
  margin: 1rem 0;
  padding: 10px 0 0 0;
  border-top: 1px solid #d8d8d8;
  margin-top: 28px;
}

.article-topics .policy-priority-list,
.article-topics .topic-list {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d8d8;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.article-topics .policy-priority-list:last-child,
.article-topics .topic-list:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* TopicalBoost topics styling - match existing article-topics exactly */
.ttd-topics-section {
  margin: 1rem 0;
  padding: 10px 0 0 0;
  border-top: 1px solid #d8d8d8;
  margin-top: 28px;
}

/* Remove double border when TopicalBoost follows site-specific topics */
.article-topics + .ttd-topics-section {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.ttd-topics-list {
  margin-bottom: 0.75rem;
}

.ttd-topics-list .toggle-topics-btn {
  margin-left: 0 !important;
}

/* Match the exact styling from .article-topics span */
.ttd-topics-section .topic-type-label {
  font-family: "soleil", sans-serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  font-weight: normal;
  font-size: 12px;
  line-height: 18px;
  margin-right: 10px;
  text-transform: uppercase;
}

/* Match the exact styling from .article-topics .field--items */
.ttd-topics-section .topic-items {
  display: inline-block;
}

/* Match the exact styling from .article-topics .field--item */
.ttd-topics-section .topic-items .field--item {
  display: inline-block;
  margin-right: 19px;
}

/* Match the exact styling from .article-topics .field--item a */
.ttd-topics-section .topic-items .field--item a {
  font-family: "soleil", sans-serif;
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #bdbdbd;
  font-weight: normal;
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
}

/* Toggle button styling - force it to look like a simple link with maximum specificity */
body main article .ttd-topics-section button.toggle-topics-btn,
body main .node button.toggle-topics-btn,
main article button.toggle-topics-btn,
main .node button.toggle-topics-btn,
body button.toggle-topics-btn,
button.toggle-topics-btn,
.toggle-topics-btn,
article .toggle-topics-btn,
.node .toggle-topics-btn {
  all: unset !important;
  color: #007cba !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  margin-left: 0 !important;
  font-family: inherit !important;
  font-weight: normal !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: inline !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

body main article .ttd-topics-section button.toggle-topics-btn:hover,
body main .node button.toggle-topics-btn:hover,
main article button.toggle-topics-btn:hover,
main .node button.toggle-topics-btn:hover,
body button.toggle-topics-btn:hover,
button.toggle-topics-btn:hover,
.toggle-topics-btn:hover,
article .toggle-topics-btn:hover,
.node .toggle-topics-btn:hover {
  color: #005a8b !important;
  text-decoration: underline !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

body main article .ttd-topics-section button.toggle-topics-btn:focus,
body main .node button.toggle-topics-btn:focus,
main article button.toggle-topics-btn:focus,
main .node button.toggle-topics-btn:focus,
body button.toggle-topics-btn:focus,
button.toggle-topics-btn:focus,
.toggle-topics-btn:focus,
article .toggle-topics-btn:focus,
.node .toggle-topics-btn:focus {
  color: #005a8b !important;
  text-decoration: underline !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: 2px solid #007bff !important;
  outline-offset: 2px !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-topics .policy-priority-list,
  .article-topics .topic-list,
  .ttd-topics-list {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .topic-type-label {
    margin-bottom: 0.25rem;
  }
  
  .toggle-topics-btn {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
  }
}

/* Accessibility improvements */
.topic-items .field--item a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

 