/* Tally Glossary Bootstrap custom theme */

:root {
  --tally-primary: #006ea6;
  --tally-primary-hover: #006ea6;
  --tally-navy: #006ea6;
  --tally-cream: #fffbe5;
  --tally-cream-accent: #f0ebe0;
  --tally-muted: #6b7280;
  --tally-border: #e5e0d5;
}

body {
  background-color: var(--tally-cream);
  color: var(--tally-navy);
  /*font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;*/
}
#contentAreaGlossary h1{
  font-size: 32px !important;
  font-weight: 700 !important;
}
@media (min-width: 1024px) {
  #contentAreaGlossary h1 {
    font-size: 40px !important;
  }
}
#contentAreaGlossary h1,#contentAreaGlossary h2,#contentAreaGlossary h3,.term-link,#contentAreaGlossary .contentArea{
  color: #212529 !important;
}

#contentAreaGlossary .contentArea h2,#contentAreaGlossary .contentArea h2 b{
  font-size: 2rem !important;
  font-weight: 600!important;
}
#contentAreaGlossary .contentArea h3,#contentAreaGlossary .contentArea h3 b{
  font-size: 24px !important;
  font-weight:500!important;
}

#contentAreaGlossary .contentArea h2{
  margin-bottom: 20px;
  margin-top: 20px;
  padding-top: 20px;
}
#contentAreaGlossary .contentArea p {
    font-size: 1rem !important;
    line-height: 2rem !important;
    margin: 10px 0px 10px 0px !important;
    color: #212529 !important;
    font-weight: 400 !important;
}
.accordion-body, .accordion-body p{
  line-height: 1.7rem;
  color: #212529 !important;
}
#contentAreaGlossary .contentArea h3{
  margin-bottom: 15px;
  margin-top: 15px;
}

.sidebar-link:hover,.sidebar-link{
  color:#6b7280!important;
}
.lead {
    font-size: 1.2rem;
}
#contentAreaGlossary .hero-eyebrow{
  color:var(--tally-navy)!important;
}

/* Header */
.glossary-header {
  border-bottom: 1px solid var(--tally-border);
  background: #fff;
}
#term-content li{
  color:var(--tally-muted);
}
.glossary-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: var(--tally-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.glossary-header .nav-link {
  color: var(--tally-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.glossary-header .nav-link:hover {
  color: var(--tally-navy);
}

/* Hero */
.hero-section {
  border-bottom: 1px solid var(--tally-border);
  background: linear-gradient(to bottom, var(--tally-cream-accent), var(--tally-cream));
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tally-primary);
}

.search-box {
  border: 1px solid var(--tally-border);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box:focus-within {
  border-color: var(--tally-primary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  color: var(--tally-navy);
}

.search-box input::placeholder {
  color: var(--tally-muted);
}

.search-icon-glossary {
  color: var(--tally-muted);
  flex-shrink: 0;
}

/* Category pills */
.category-pill {
  border-radius: 9999px;
  border: 1px solid var(--tally-border);
  background: #fff;
  color: var(--tally-navy);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.category-pill:hover {
  border-color: rgba(43, 108, 176, 0.6);
  color: var(--tally-primary);
}

.category-pill.active {
  border-color: var(--tally-primary);
  background: var(--tally-primary);
  color: #fff;
}

/* A-Z navigation */
.az-nav-section {
  position: sticky;
  top: 57px;
  z-index: 3;
  border-bottom: 1px solid var(--tally-border);
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(8px);
}

.az-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--tally-border);
  background: #fff;
  color: var(--tally-navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.az-letter:hover:not(.disabled) {
  border-color: var(--tally-primary);
  color: var(--tally-primary);
}

.az-letter.active {
  border-color: var(--tally-primary);
  background: var(--tally-primary);
  color: #fff;
}

.az-letter.disabled {
  background: var(--tally-cream-accent);
  color: rgba(107, 114, 128, 0.4);
  cursor: not-allowed;
  pointer-events: none;
}

/* Letter sections */
.letter-section {
  scroll-margin-top: 6rem;
  border-bottom: 1px solid var(--tally-border);
  padding: 2rem 0;
}

.letter-section:last-child {
  border-bottom: none;
}

.letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--tally-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.term-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--tally-navy);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s, border-color 0.15s;
}

.term-link:hover {
  color: var(--tally-primary);
  border-bottom-color: rgba(43, 108, 176, 0.4);
}

.term-link .arrow {
  font-size: 0.75rem;
  color: var(--tally-muted);
  opacity: 0;
  transition: opacity 0.15s;
}

.term-link:hover .arrow {
  opacity: 1;
}

/* Term detail page */
.breadcrumb-bar {
  border-bottom: 1px solid var(--tally-border);
  background: rgba(240, 235, 224, 0.5);
  font-size: 0.875rem;
  color: var(--tally-muted);
}

.breadcrumb-bar a {
  color: var(--tally-muted);
  text-decoration: none;
}

.breadcrumb-bar a:hover {
  color: var(--tally-primary);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--tally-cream-accent);
  color: var(--tally-navy);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
}

.term-short {
  font-size: 1.25rem;
  line-height: 1.6;
  border-left: 4px solid var(--tally-primary);
  padding-left: 1.25rem;
}

.cta-card {
  border: 1px solid var(--tally-border);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
}

.sidebar-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tally-muted);
}

.sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--tally-navy);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
  background: var(--tally-cream-accent);
  color: var(--tally-primary);
}

.sidebar-link-muted {
  display: block;
  padding: 0.25rem 0;
  color: var(--tally-muted);
  text-decoration: none;
  font-size: 1rem;
}

.sidebar-link-muted:hover {
  color: var(--tally-primary);
}

/* FAQ section */
        .accordion-button {
            background-color: transparent;
            border: none;
        }

        .accordion-item:first-of-type {
            border-top-left-radius: 0rem !important;
            border-top-right-radius: 0rem !important;
        }

        .accordion-item:first-of-type>.accordion-header .accordion-button {
            border-top-left-radius: 0rem !important;
            border-top-right-radius: 0rem !important;
        }

        .accordion-button:not(.collapsed) {
            background-color: var(--tally-cream) !important;
            box-shadow: 0px !important;
            color: #000 !important;
        }

        .accordion-header,
        .accordion-body {
            background-color: var(--tally-cream) !important;
        }

        .accordion-button:focus {
            box-shadow: none !important;
        }

        .accordion-button .collapsed {
            background-color: var(--tally-cream);
        }

        #accordionExampleFaq .accordion-button .collapsed {
            background-color: var(--tally-cream);
        }

        #accordionExampleFaq .accordion-header,
        #accordionExampleFaq .accordion-body {
            background-color: var(--tally-cream);
        }

        #accordionExampleFaq .accordion-button:not(.collapsed) {
            background-color: var(--tally-cream) !important;
        }

        .accordion-item {
            border-top: 0px solid #fffbe6 !important;
            border-left: 0px solid #fffbe6 !important;
            border-right: 0px solid #fffbe6 !important;
        }

        .accordion-button {
            border-bottom: 0px !important;
            line-height: normal;
        }

        .accordion-button::after {
            background-image: url('/wp-content/themes/tally/assets/images/icons/icon-plus.svg') !important;
            background-repeat: no-repeat;
        }

        .accordion-button:not(.collapsed)::after {
            background-image: url('/wp-content/themes/tally/assets/images/icons/icon-minus.svg') !important;
            background-repeat: no-repeat;
        }
        .accordion-button:not(.collapsed){
            box-shadow:none!important;
        }

/* Footer */
.sectionHeading {
    font-size: 26px;
}

.glossary-footer {
  border-top: 1px solid var(--tally-border);
  background: rgba(240, 235, 224, 0.3);
  font-size: 0.875rem;
  color: var(--tally-muted);
}

/* Bootstrap overrides */
.btn-tally {
  background: var(--tally-primary);
  border-color: var(--tally-primary);
  color: #fff;
}

.btn-tally:hover,
.btn-tally:focus {
  background: var(--tally-primary-hover);
  border-color: var(--tally-primary-hover);
  color: #fff;
}

@media (min-width: 992px) {
  .term-sidebar {
    position: sticky;
    top: 5rem;
    align-self: flex-start;
  }
}

@media (min-width: 1200px) {
    .display-4 {
        font-size: 3rem;
    }
}