/*--------------------------------------------------------------
Utilities
--------------------------------------------------------------*/

/* 
Add width-100 class to element to stretch it to the entire width 
of the screen when element is in .container.
https://bootscore.me/documentation/width-height-classes/
*/
.entry-content{
  a{
    text-decoration: underline;
  }
}
.width-100 {
  position: relative;
  width: 100vw;
  margin-left: -50vw;
  left: 50%;
}

// Clear
.clear-both {
  clear: both;
}

// z-index
.zi-1000 {
  z-index: 1000 !important;
}

.zi-1020 {
  z-index: 1020 !important;
}

.zi-1030 {
  z-index: 1030 !important;
}

.zi-1040 {
  z-index: 1040 !important;
}

.zi-1050 {
  z-index: 1050 !important;
}

.zi-1060 {
  z-index: 1060 !important;
}

.zi-1070 {
  z-index: 1070 !important;
}

.zi-n1 {
  z-index: -1 !important;
}

// Cursor
.cursor-pointer {
  cursor: pointer;
}

// Focus
.focus-none {
  box-shadow: none !important;
  outline: 0 !important;
}


.mb-60{
  margin-bottom: 60px;
}
.mt-60{
   margin-top: 60px;
}


blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 2.5rem 3rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
  background: #f9fafb;
  border-radius: 8px;
}

/* Large quotation mark at the start */
blockquote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 10px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: #e5e7eb;
  line-height: 1;
}

/* Large quotation mark at the end */
blockquote::after {
  content: '"';
  position: absolute;
  bottom: -20px;
  right: 10px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: #e5e7eb;
  line-height: 1;
}

/* Style for paragraphs inside blockquote */
blockquote p {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

/* Style for the last paragraph to remove margin */
blockquote p:last-of-type {
  margin-bottom: 0;
}

/* Style for cite element inside blockquote */
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* Add citation dash */
blockquote cite::before {
  content: "—";
  margin-right: 0.5rem;
}

/* Hover effect */
blockquote:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  blockquote {
      padding: 2rem 1.5rem;
      font-size: 1rem;
  }
  
  blockquote::before,
  blockquote::after {
      font-size: 3rem;
  }
  
  blockquote::before {
      top: 5px;
      left: 5px;
  }
  
  blockquote::after {
      bottom: -10px;
      right: 5px;
  }
}

/* Print styles */
@media print {
  blockquote {
      break-inside: avoid;
      page-break-inside: avoid;
      background: none;
      border: 1px solid #e5e7eb;
  }
  
  blockquote::before,
  blockquote::after {
      color: #9ca3af;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  blockquote {
      background: #1f2937;
      color: #e5e7eb;
  }
  
  blockquote::before,
  blockquote::after {
      color: #4b5563;
  }
  
  blockquote cite {
      color: #9ca3af;
  }
}


/* Base table styles */
table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
}

/* Header styles */
th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  background-color: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

/* Cell styles */
td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

/* Row hover effect */
tr:hover {
  background-color: #f9fafb;
  transition: background-color 0.2s ease;
}

/* Striped rows */
tr:nth-child(even) {
  background-color: #f9fafb;
}

tr:nth-child(even):hover {
  background-color: #f3f4f6;
}

/* Caption styling */
caption {
  padding: 1rem;
  caption-side: bottom;
  color: #6b7280;
  text-align: left;
  font-style: italic;
}

/* First column emphasis */
td:first-child {
  font-weight: 500;
  color: #374151;
}

/* Last row emphasis */
tr:last-child td {
  border-bottom: none;
}

/* Responsive table */
@media (max-width: 768px) {
  table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
  }
  
  th, td {
      min-width: 120px;
  }
}

/* Compact variant */
.table-compact th,
.table-compact td {
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* Bordered variant */
.table-bordered th,
.table-bordered td {
  border: 1px solid #e5e7eb;
}

/* Modern variant */
.table-modern {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table-modern th {
  background-color: #f3f4f6;
  border-bottom: 2px solid #e5e7eb;
}

.table-modern th:first-child {
  border-top-left-radius: 0.5rem;
}

.table-modern th:last-child {
  border-top-right-radius: 0.5rem;
}

.table-modern tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}

.table-modern tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  table {
      background-color: #1f2937;
      border-color: #374151;
  }
  
  th {
      background-color: #111827;
      color: #f9fafb;
      border-bottom-color: #374151;
  }
  
  td {
      color: #e5e7eb;
      border-bottom-color: #374151;
  }
  
  tr:hover {
      background-color: #374151;
  }
  
  tr:nth-child(even) {
      background-color: #1a1f2b;
  }
  
  tr:nth-child(even):hover {
      background-color: #374151;
  }
  
  caption {
      color: #9ca3af;
  }
  
  td:first-child {
      color: #f3f4f6;
  }
}

/* Print styles */
@media print {
  table {
      break-inside: auto;
      border: 1px solid #000;
  }
  
  tr {
      break-inside: avoid;
      break-after: auto;
  }
  
  th {
      background-color: #f9fafb !important;
      color: #000;
  }
  
  td {
      background-color: #fff !important;
      color: #000;
  }
  
  caption {
      color: #666;
  }
}

/* Fixed header variant */
.table-fixed-header {
  position: relative;
  max-height: 400px;
  overflow-y: auto;
}

.table-fixed-header thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #f9fafb;
}

/* Sortable headers */
th.sortable {
  cursor: pointer;
  user-select: none;
}

th.sortable:hover {
  background-color: #f3f4f6;
}

th.sortable::after {
  content: '↕';
  margin-left: 0.5rem;
  opacity: 0.5;
}

/* Selection styles */
.table-selectable tr {
  cursor: pointer;
}

.table-selectable tr.selected {
  background-color: #e5e7eb;
}

.table-selectable tr.selected:hover {
  background-color: #d1d5db;
}


/* Base code styles */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.2em 0.4em;
  margin: 0 0.2em;
  background-color: #f3f4f6;
  border-radius: 4px;
  color: #dc2626;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #e5e7eb;
}

/* Inline code variant */
.code-inline {
  padding: 0.2em 0.4em;
  font-size: 0.875em;
  color: #dc2626;
  background-color: #f3f4f6;
  border-radius: 4px;
}

/* Block code variant */
pre code {
  display: block;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  line-height: 1.6;
  background-color: #1f2937;
  color: #e5e7eb;
  border-radius: 6px;
  border: none;
  tab-size: 4;
}

/* Code block with line numbers */
.code-numbered {
  counter-reset: line;
  padding-left: 3.5rem !important;
  position: relative;
}

.code-numbered::before {
  content: counter(line);
  counter-increment: line;
  position: absolute;
  left: 0;
  width: 2.5rem;
  padding-right: 1rem;
  text-align: right;
  color: #6b7280;
  border-right: 1px solid #374151;
  user-select: none;
}

/* Terminal style variant */
.code-terminal {
  background-color: #1a1a1a;
  color: #00ff00;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.code-terminal::before {
  content: "● ● ●";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  color: #4b5563;
  letter-spacing: 0.5rem;
}

/* Language tag variant */
.code-tagged {
  position: relative;
  padding-top: 2.5rem !important;
}

.code-tagged::before {
  content: attr(data-language);
  position: absolute;
  top: 0;
  right: 1rem;
  background-color: #374151;
  color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Syntax highlighting colors */
.code-syntax .keyword { color: #93c5fd; }
.code-syntax .string { color: #86efac; }
.code-syntax .number { color: #fca5a5; }
.code-syntax .comment { color: #6b7280; font-style: italic; }
.code-syntax .function { color: #c084fc; }
.code-syntax .operator { color: #e5e7eb; }

/* Copy button */
.code-copy {
  position: relative;
}

.code-copy::after {
  content: "Copy";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  background-color: #374151;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.code-copy:hover::after {
  opacity: 1;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  code {
      background-color: #1f2937;
      color: #f87171;
      border-color: #374151;
  }
  
  .code-inline {
      background-color: #1f2937;
      color: #f87171;
  }
  
  pre code {
      background-color: #111827;
      color: #e5e7eb;
  }
  
  .code-terminal {
      background-color: #000000;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  }
}

/* Print styles */
@media print {
  code {
      background-color: #f9fafb !important;
      border: 1px solid #e5e7eb !important;
      color: #000000 !important;
  }
  
  pre code {
      background-color: #f9fafb !important;
      color: #000000 !important;
      border: 1px solid #e5e7eb !important;
  }
  
  .code-numbered::before {
      color: #374151 !important;
      border-right-color: #e5e7eb !important;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  pre code {
      font-size: 0.75rem;
      padding: 0.75rem;
  }
  
  .code-numbered {
      padding-left: 2.5rem !important;
  }
  
  .code-numbered::before {
      width: 1.5rem;
  }
}

/* Focus styles */
code:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}


/* Insert Tag (<ins>) Styles */
ins {
  text-decoration: none;
  background-color: #dcfce7;
  color: #166534;
  padding: 0.1em 0.2em;
  margin: 0 0.2em;
  border-radius: 2px;
  border-bottom: 2px solid #86efac;
  position: relative;
  animation: highlight 1s ease-out;
}

@keyframes highlight {
  from {
      background-color: #bbf7d0;
  }
  to {
      background-color: #dcfce7;
  }
}

/* Hover effect for ins */
ins:hover::before {
  content: "Added";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #166534;
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  opacity: 0;
  animation: tooltip 0.2s ease-in forwards;
}

@keyframes tooltip {
  to {
      opacity: 1;
  }
}

/* Keyboard Tag (<kbd>) Styles */
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: 3px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  margin: 0 0.2em;
  font-size: 0.875em;
  color: #334155;
  white-space: nowrap;
  display: inline-block;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  position: relative;
  top: -1px;
}

/* Multiple keyboard combinations */
kbd + kbd {
  margin-left: 0.5em;
}

kbd + kbd::before {
  content: "+";
  margin-right: 0.5em;
  color: #64748b;
}

/* Preformatted Tag (<pre>) Styles */
pre {

  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
  tab-size: 4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  position: relative;
  max-width: 100%;
}

/* ASCII art optimization */
pre.ascii-art {
  font-family: "Courier New", Courier, monospace;
  line-height: 1.2;
  font-size: 0.75rem;
  letter-spacing: 0;
  white-space: pre;
}

/* Poetry formatting */
pre.poetry {
  font-family: Georgia, serif;
  white-space: pre-line;
  line-height: 1.6;
  font-size: 1rem;
  padding: 2rem;
  background-color: #fffbeb;
  border-left: 4px solid #fbbf24;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  ins {
      background-color: #064e3b;
      color: #6ee7b7;
      border-bottom-color: #059669;
  }
  
  ins:hover::before {
      background-color: #059669;
  }
  
  kbd {
      background-color: #1e293b;
      border-color: #334155;
      border-bottom-color: #475569;
      color: #e2e8f0;
  }
  
  pre {
      background-color: #1e293b;
      border-color: #334155;
      color: #e2e8f0;
  }
  
  pre.poetry {
      background-color: #422006;
      border-left-color: #f59e0b;
      color: #fef3c7;
  }
}

/* Print styles */
@media print {
  ins {
      background-color: transparent !important;
      border-bottom: 2px solid #000 !important;
      color: #000 !important;
  }
  
  kbd {
      border: 1px solid #000 !important;
      color: #000 !important;
      background: none !important;
  }
  
  pre {
      border: 1px solid #000 !important;
      background: none !important;
      color: #000 !important;
      overflow-x: visible;
      white-space: pre-wrap;
  }
  
  pre.poetry {
      border-left: 2px solid #000 !important;
      padding: 1rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  pre {
      padding: 1rem;
      font-size: 0.75rem;
  }
  
  kbd {
      font-size: 0.75em;
  }
  
  pre.ascii-art {
      font-size: 0.6rem;
  }
  
  pre.poetry {
      padding: 1.5rem;
      font-size: 0.875rem;
  }
}

/* Quote Tag (<q>) */
q {
  font-style: italic;
  color: #4b5563;
  quotes: """ """ "'" "'";
}

q::before {
  content: open-quote;
  color: #6b7280;
  margin-right: 0.1em;
}

q::after {
  content: close-quote;
  color: #6b7280;
  margin-left: 0.1em;
}

/* Strike Through Tags (<strike>, <s>) */
strike,
s {
  text-decoration: line-through;
  color: #6b7280;
  position: relative;
}

s:hover::before {
  content: "deleted";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #6b7280;
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  opacity: 0;
  animation: tooltip 0.2s ease-in forwards;
}

@keyframes tooltip {
  to { opacity: 1; }
}

/* Small Tag (<small>) */
small {
  font-size: 0.75em;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.5;
}

/* Add nice spacing when small is used for legal text */
p > small {
  display: block;
  margin-top: 0.5rem;
}





/* Subscript Tag (<sub>) */
sub {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  bottom: -0.25em;
  color: #4b5563;
}

/* Superscript Tag (<sup>) */
sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  top: -0.5em;
  color: #4b5563;
}

/* Mathematical formula styling */
.formula sup {
  color: inherit;
  margin-left: 0.1em;
}

/* Teletype Tag (<tt>) */
tt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #4b5563;
}

/* Underline Tag (<u>) */
u {
  text-decoration: none;
  border-bottom: 2px solid #93c5fd;
  padding-bottom: 0.1em;
  position: relative;
}

/* Animated underline effect */
u:hover {
  border-bottom-color: #3b82f6;
  transition: border-color 0.2s ease;
}

/* Variable Tag (<var>) */
var {
  font-style: italic;
  font-weight: 500;
  color: #4b5563;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: linear-gradient(120deg, #e5e7eb 0%, #e5e7eb 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.3em;
  background-position: 0 88%;
  padding: 0 0.2em;
}

/* Combinations and Special Cases */
/* Formula styling */
.formula {
  white-space: nowrap;
  font-family: serif;
}

/* Chemical formula styling */
.chemical-formula sub {
  margin-left: 0.1em;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  q {
      color: #e5e7eb;
  }
  
  q::before,
  q::after {
      color: #9ca3af;
  }
  
  strike,
  s {
      color: #9ca3af;
  }
  
  small {
      color: #9ca3af;
  }
  
  strong {
      color: #f9fafb;
  }
  
  strong:hover {
      background: linear-gradient(120deg, #374151 0%, #374151 100%);
  }
  
  tt {
      background-color: #1f2937;
      color: #e5e7eb;
  }
  
  u {
      border-bottom-color: #60a5fa;
  }
  
  u:hover {
      border-bottom-color: #3b82f6;
  }
  
  var {
      color: #e5e7eb;
      background: linear-gradient(120deg, #374151 0%, #374151 100%);
  }
}

/* Print styles */
@media print {
  q {
      color: #000;
  }
  
  strike,
  s {
      color: #666;
  }
  
  tt,
  var {
      background: none;
      border: none;
      color: #000;
  }
  
  u {
      text-decoration: underline;
      border-bottom: none;
  }
}

/* Responsive adjustments */
@media (max-width: 640px) {
  small {
      font-size: 0.7em;
  }
  
  tt,
  var {
      font-size: 0.8em;
  }
}


address {
  font-style: normal;
  line-height: 1.6;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background-color: #f9fafb;
  border-left: 4px solid #e5e7eb;
  border-radius: 0.375rem;
  color: #374151;
  max-width: 400px;
}

/* Line breaks in address */
address br {
  content: "";
  display: block;
  margin: 0.3em 0;
}

/* Abbreviation Tag (<abbr>) */
abbr {
  text-decoration: none;
  border-bottom: 1px dotted #6b7280;
  cursor: help;
  position: relative;
  color: #374151;
}

/* Hover tooltip for abbreviation */
abbr[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 1rem;
  background-color: #1f2937;
  color: #ffffff;
  font-size: 0.875rem;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: tooltip-slide 0.2s ease-out;
}

/* Tooltip arrow */
abbr[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  animation: tooltip-slide 0.2s ease-out;
}

@keyframes tooltip-slide {
  from {
      opacity: 0;
      transform: translateX(-50%) translateY(4px);
  }
  to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
  }
}

/* Acronym Tag (<acronym>) - deprecated but still styled for backwards compatibility */
acronym {
  text-decoration: none;
  border-bottom: 1px solid #6b7280;
  cursor: help;
  position: relative;
  color: #374151;
}

/* Similar tooltip for acronym */
acronym[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 1rem;
  background-color: #1f2937;
  color: #ffffff;
  font-size: 0.875rem;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: tooltip-slide 0.2s ease-out;
}

acronym[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  animation: tooltip-slide 0.2s ease-out;
}

/* Big Tag (<big>) - deprecated but still styled for backwards compatibility */
big {
  font-size: 1.2em;
  font-weight: 500;
  color: #111827;
}

/* Cite Tag (<cite>) */
cite {
  font-style: italic;
  color: #6b7280;
  position: relative;
  display: inline-block;
  padding-left: 1.5em;
}

/* Add quote dash for cite */
cite::before {
  content: "—";
  position: absolute;
  left: 0.2em;
  color: #9ca3af;
}

/* Animated variant for cite */
.cite-animated {
  transition: color 0.2s ease;
}

.cite-animated:hover {
  color: #4b5563;
}

/* Block citation style */
.cite-block {
  display: block;
  margin-top: 1rem;
  padding-left: 2rem;
  font-size: 0.875em;
}

/* Modern citation style */
.cite-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  border-radius: 9999px;
  font-style: normal;
}

.cite-modern::before {
  content: "👤";
  font-style: normal;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  abbr,
  acronym {
      border-bottom-color: #9ca3af;
      color: #e5e7eb;
  }
  
  abbr[title]:hover::after,
  acronym[title]:hover::after {
      background-color: #374151;
      color: #ffffff;
  }
  
  abbr[title]:hover::before,
  acronym[title]:hover::before {
      border-top-color: #374151;
  }
  
  big {
      color: #f9fafb;
  }
  
  cite {
      color: #9ca3af;
  }
  
  cite::before {
      color: #6b7280;
  }
  
  .cite-modern {
      background-color: #1f2937;
      color: #e5e7eb;
  }
  
  .cite-animated:hover {
      color: #d1d5db;
  }
}

/* Print styles */
@media print {
  abbr,
  acronym {
      border-bottom: 1px dotted #000;
      text-decoration: none;
  }
  
  abbr[title]::after,
  acronym[title]::after {
      content: " (" attr(title) ")";
      font-size: 0.875em;
  }
  
  cite {
      color: #000;
      page-break-inside: avoid;
  }
  
  .cite-modern {
      background: none;
      padding: 0;
  }
  
  .cite-modern::before {
      content: "Author: ";
  }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  abbr[title]:hover::after,
  acronym[title]:hover::after {
      max-width: 90vw;
      white-space: normal;
      text-align: center;
  }
  
  .cite-block {
      padding-left: 1rem;
  }
}

/* Focus styles for keyboard navigation */
abbr:focus,
acronym:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Animation for cite hover */
@keyframes cite-highlight {
  from {
      background-position: 0 0;
  }
  to {
      background-position: 100% 0;
  }
}

.cite-animated {
  background: linear-gradient(90deg, transparent 0%, transparent 50%, #f3f4f6 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  transition: background-position 0.3s ease;
}

.cite-animated:hover {
  animation: cite-highlight 0.3s forwards;
}