/**
 * WordPress Content Styling
 * Custom typography classes for WordPress content that extend Tailwind utilities
 */

/* Base content wrapper */
.wp-content {
  max-width: none;
}

/* Headings */
.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: #02356C;
  line-height: 1.25;
}

.wp-content h1 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.wp-content h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.wp-content h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.wp-content h4 {
  font-size: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.wp-content h5 {
  font-size: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.wp-content h6 {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.wp-content p {
  color: #2B2B2B;
  line-height: 1.625;
  margin-bottom: 1rem;
}

/* Justify alignment (toggled via Customizer, applies to all paragraphs) */
.wp-content.text-justify p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Justify alignment (per-block, set via editor "Justify" toolbar button) */
.has-text-align-justify {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Links */
.wp-content a {
  color: #009DFF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.wp-content a:hover {
  color: #07569B;
}

/* Lists */
.wp-content ul,
.wp-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.wp-content ul {
  list-style-type: disc;
}

.wp-content ol {
  list-style-type: decimal;
}

.wp-content li {
  color: #2B2B2B;
  line-height: 1.625;
  margin-bottom: 0.25rem;
}

.wp-content ul ul,
.wp-content ol ol,
.wp-content ul ol,
.wp-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Blockquotes */
.wp-content blockquote {
  border-left: 4px solid #009DFF;
  padding-left: 1rem;
  font-style: italic;
  color: #2B2B2B;
  margin-top: 1rem;
  margin-bottom: 1rem;
  background-color: #f0f4f8;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-right: 0.5rem;
}

.wp-content blockquote p {
  margin-bottom: 0;
}

/* Code */
.wp-content code {
  background-color: #f0f4f8;
  color: #07569B;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.wp-content pre {
  background-color: #0a1628;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.wp-content pre code {
  background-color: transparent;
  color: white;
  padding: 0;
}

/* Tables */
.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.wp-content thead {
  background-color: #02356C;
}

.wp-content th {
  color: white;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #07569B;
}

.wp-content td {
  color: #2B2B2B;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.wp-content tbody tr:hover {
  background-color: #f0f4f8;
}

.wp-content tbody tr:last-child td {
  border-bottom: none;
}

/* Horizontal Rule */
.wp-content hr {
  border-top: 1px solid #e5e7eb;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Images */
.wp-content img {
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.wp-content figure {
  margin-bottom: 1rem;
}

.wp-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
}

.wp-content .alignleft {
  float: left;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.wp-content .alignright {
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
}

.wp-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* Address */
.wp-content address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Strong/Bold */
.wp-content strong,
.wp-content b {
  font-weight: 600;
  color: #02356C;
}

/* Emphasis/Italic */
.wp-content em,
.wp-content i {
  font-style: italic;
}

/* Citations */
.wp-content cite {
  font-style: normal;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Abbreviations */
.wp-content abbr[title] {
  text-decoration: none;
  border-bottom: 1px dotted #9ca3af;
  cursor: help;
}

/* Definition lists */
.wp-content dl {
  margin-bottom: 1rem;
}

.wp-content dt {
  font-weight: 600;
  color: #02356C;
  margin-bottom: 0.25rem;
}

.wp-content dd {
  color: #2B2B2B;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
}

/* Subscript and Superscript */
.wp-content sub,
.wp-content sup {
  font-size: 0.875rem;
}

.wp-content sub {
  bottom: 0;
}

.wp-content sup {
  top: 0;
}

/* Media queries for responsive content */
@media (max-width: 768px) {
  .wp-content h1 {
    font-size: 1.5rem;
  }
  
  .wp-content h2 {
    font-size: 1.25rem;
  }
  
  .wp-content h3 {
    font-size: 1.125rem;
  }
  
  .wp-content table {
    font-size: 0.875rem;
  }
  
  .wp-content th,
  .wp-content td {
    padding: 0.5rem;
  }
}

/* Search style */
svg.lucide.lucide-search {
  margin-top: 7px;
}
