/* ============================================================
   Glossary - shared base
   Aligned with the site's blog/hub design language:
   - Lora serif for body, Open Sans for headings
   - Teal accent (#0085A1) for hovers and badges
   - Link blue (#008AFF) for actionable links
   - White cards with soft shadow on a clean background
   ============================================================ */

.glossary-term-page,
.glossary-hub-page {
  background: #ffffff;
}

.glossary-term-wrapper,
.glossary-hub-container {
  max-width: 1162px;
  margin: 0 auto;
  padding: 5rem 1rem 3rem;
  color: #404040;
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
}

@media (min-width: 992px) {
  .glossary-term-wrapper,
  .glossary-hub-container {
    padding: 6rem 1rem 3.5rem;
  }
}

/* ============================================================
   Glossary term page
   ============================================================ */
.glossary-term-main {
  max-width: 920px;
  margin: 0 auto;
}

.glossary-breadcrumb {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.glossary-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #94a3b8;
}

.glossary-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #cbd5e1;
}

.glossary-breadcrumb a {
  color: #0085A1;
  text-decoration: none;
  font-weight: 600;
}

.glossary-breadcrumb a:hover {
  color: #008AFF;
  text-decoration: underline;
}

.glossary-breadcrumb [aria-current="page"] {
  color: #1a202c;
  font-weight: 600;
}

.glossary-term-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.glossary-badge {
  display: inline-block;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0085A1;
  background: rgba(0, 133, 161, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.glossary-title {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: #1a202c;
}

.glossary-aka {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.glossary-aka-label {
  font-size: 0.85rem;
  color: #64748b;
}

.glossary-aka-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #f2f2f2;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.glossary-definition-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0085A1;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

.glossary-section-label {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0085A1;
  margin: 0 0 0.5rem;
}

.glossary-definition-card p {
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1f2937;
  margin: 0 0 0.65rem;
}

.glossary-definition-card p:last-child {
  margin-bottom: 0;
}

.glossary-definition-card a {
  color: #008AFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 138, 255, 0.3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.glossary-definition-card a:hover {
  color: #0085A1;
  border-bottom-color: #0085A1;
}

.glossary-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .glossary-content-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
  }
}

.glossary-content-main section {
  margin-bottom: 2rem;
}

.glossary-content-main h2 {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #1a202c;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.glossary-takeaways ul,
.glossary-real-world ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glossary-takeaways li,
.glossary-real-world li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.65rem;
  line-height: 1.65;
  font-size: 1rem;
  color: #404040;
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
}

.glossary-takeaways li::before,
.glossary-real-world li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0085A1;
}

.glossary-takeaways a,
.glossary-real-world a,
.glossary-how-it-works a {
  color: #008AFF;
  text-decoration: none;
}

.glossary-takeaways a:hover,
.glossary-real-world a:hover,
.glossary-how-it-works a:hover {
  color: #0085A1;
  text-decoration: underline;
}

.glossary-how-it-works ol {
  list-style: none;
  counter-reset: glossary-step;
  padding: 0;
  margin: 0;
}

.glossary-how-it-works li {
  counter-increment: glossary-step;
  position: relative;
  padding: 0.5rem 0 0.5rem 2.4rem;
  line-height: 1.65;
  font-size: 1rem;
  color: #404040;
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
}

.glossary-how-it-works li::before {
  content: counter(glossary-step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0085A1;
  color: #ffffff;
  border-radius: 50%;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.glossary-extended {
  margin-top: 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #404040;
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
}

.glossary-extended p {
  margin-bottom: 1rem;
}

.glossary-extended a {
  color: #008AFF;
  text-decoration: none;
}

.glossary-extended a:hover {
  color: #0085A1;
  text-decoration: underline;
}

/* ============================================================
   Glossary term sidebar
   ============================================================ */
.glossary-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.glossary-sidebar-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.glossary-sidebar-widget h3 {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0085A1;
  margin: 0 0 0.75rem;
}

.glossary-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glossary-related-list li {
  padding: 0.45rem 0;
  border-top: 1px solid #f1f5f9;
}

.glossary-related-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.glossary-related-list a {
  color: #1a202c;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.15s ease;
}

.glossary-related-list a:hover {
  color: #0085A1;
}

.glossary-sidebar-tools .tool-cta {
  margin: 0;
}

/* ============================================================
   Glossary back nav
   ============================================================ */
.glossary-back-nav {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.glossary-back-link {
  display: inline-block;
  color: #0085A1;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.glossary-back-link:hover {
  background: #0085A1;
  color: #ffffff;
  border-color: #0085A1;
  text-decoration: none;
}

/* ============================================================
   Glossary hub
   ============================================================ */
.glossary-hub-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.glossary-hub-title {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  color: #1a202c;
  margin: 0 0 0.65rem;
  line-height: 1.15;
}

.glossary-hub-subtitle {
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
  font-size: 1.1rem;
  color: #555555;
  line-height: 1.7;
  margin: 0 0 0.85rem;
}

.glossary-hub-meta {
  display: inline-block;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0085A1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.glossary-hub-search {
  margin: 1.5rem auto;
  max-width: 560px;
}

.glossary-hub-search-input {
  width: 100%;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glossary-hub-search-input:focus {
  outline: none;
  border-color: #0085A1;
  box-shadow: 0 0 0 3px rgba(0, 133, 161, 0.15);
}

.glossary-hub-no-results {
  margin: 1rem 0 0;
  text-align: center;
  color: #64748b;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
}

.glossary-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto 2rem;
  max-width: 900px;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.glossary-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: #0085A1;
  background: transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.glossary-alpha-link:hover {
  background: #0085A1;
  color: #ffffff;
  text-decoration: none;
}

.glossary-alpha-link-disabled {
  color: #cbd5e1;
  background: transparent;
  cursor: default;
}

.glossary-letter-group {
  margin-bottom: 2.25rem;
  scroll-margin-top: 5rem;
}

.glossary-letter-heading {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #1a202c;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

.glossary-letter-heading::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 1.4rem;
  background: #0085A1;
  border-radius: 2px;
  margin-right: 0.65rem;
  vertical-align: -0.18rem;
}

.glossary-term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.glossary-term-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glossary-term-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.glossary-term-card-link {
  display: block;
  padding: 1.1rem 1.25rem 1.25rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.glossary-term-card-link:hover,
.glossary-term-card-link:focus {
  text-decoration: none;
  color: inherit;
}

.glossary-term-card-title {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 0.3rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.glossary-term-card:hover .glossary-term-card-title {
  color: #0085A1;
}

.glossary-term-card-aka {
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.glossary-term-card-definition {
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glossary-hub-footer-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  color: #64748b;
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
}

.glossary-hub-footer-cta p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.glossary-hub-footer-cta a {
  color: #008AFF;
  font-weight: 600;
  text-decoration: none;
}

.glossary-hub-footer-cta a:hover {
  color: #0085A1;
  text-decoration: underline;
}

/* ============================================================
   Glossary callout (used inside blog posts)
   ============================================================ */
.glossary-callout {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0085A1;
  border-radius: 8px;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.glossary-callout-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.glossary-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 133, 161, 0.1);
  color: #0085A1;
}

.glossary-callout-title {
  margin: 0;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0085A1;
}

.glossary-callout-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

@media (min-width: 768px) {
  .glossary-callout-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.glossary-callout-list li {
  margin: 0;
  padding: 0;
}

.glossary-callout-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  color: inherit;
}

.glossary-callout-list a:hover {
  border-color: #0085A1;
  box-shadow: 0 4px 10px rgba(0, 133, 161, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.glossary-callout-list strong {
  display: block;
  color: #1a202c;
  font-family: 'Open Sans', 'Open Sans Fallback', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  transition: color 0.15s ease;
}

.glossary-callout-list a:hover strong {
  color: #0085A1;
}

.glossary-callout-definition {
  display: block;
  font-family: 'Lora', 'Lora Fallback', 'Times New Roman', serif;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
}
