/*
Theme Name: MeritWorks
Author: Codex
Description: WordPress theme converted from the MeritWorks static site.
Version: 1.0.0
Text Domain: meritworks
*/

:root {
  --mw-primary: #904d00;
  --mw-primary-container: #ff8c00;
  --mw-on-primary: #ffffff;
  --mw-on-primary-container: #623200;
  --mw-secondary: #565e74;
  --mw-secondary-container: #dae2fd;
  --mw-on-secondary-container: #5c647a;
  --mw-background: #ffffff;
  --mw-on-background: #191c1e;
  --mw-surface-variant: #e0e3e5;
  --mw-on-surface-variant: #564334;
  --mw-outline: #897362;
  --mw-outline-variant: #ddc1ae;
  --mw-surface-container-low: #f2f4f6;
  --mw-surface-container-lowest: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--mw-background);
  color: var(--mw-on-background);
}

a { color: inherit; }

/* Lenis smooth scroll support classes (see functions.php for the JS init).
   These are Lenis's own recommended base styles. */
html.lenis {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

html.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Article / blog post content styling (applied to WYSIWYG output from the_content) */
.article-content {
  font-family: "Inter", sans-serif;
}

.article-content p,
.article-content li {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mw-on-background);
  font-weight: 400;
  margin: 0 0 24px;
}

.article-content h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--mw-on-background);
  margin: 32px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--mw-on-background);
  margin: 28px 0 14px;
}

/* First/last child shouldn't add extra space on top of the article header
   or before the section below the content. */
.article-content > *:first-child {
  margin-top: 0;
}

.article-content > *:last-child {
  margin-bottom: 0;
}

/* Collapse stray empty paragraphs (common when pasting content into the
   WordPress editor, e.g. <p>&nbsp;</p> or <p><br></p> left between blocks)
   so they don't stack extra vertical whitespace between sections. */
.article-content p:empty,
.article-content p:has(> br:only-child) {
  display: none;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--mw-primary-container);
  background: var(--mw-surface-container-low);
  color: var(--mw-on-background);
  font-style: italic;
  line-height: 1.6;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--mw-surface-variant);
  border-radius: 12px;
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mw-surface-variant);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

.article-content th {
  background: var(--mw-surface-container-low);
  font-weight: 600;
}

.article-content a {
  color: var(--mw-primary);
  text-decoration: underline;
}

/* Nav / footer link states */
.mw-nav-link.is-active,
.mw-nav-link:hover {
  color: var(--mw-primary);
}

.mw-footer-link:hover {
  color: var(--mw-primary);
}

.mw-social-link:hover {
  color: var(--mw-primary);
}

/* Blog card line clamp fallback */
.mw-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
