@import "tailwindcss";


/* ------------------------------------------------------------------ */
/* Design tokens                                                       */
/* ------------------------------------------------------------------ */
@theme inline {
  --font-sans: var(--font-montserrat), ui-sans-serif, system-ui, sans-serif;
  --font-outfit: var(--font-outfit), sans-serif;
  --font-script: var(--font-alex-brush), cursive;
  --font-quicksand: var(--font-quicksand), "Quicksand", sans-serif;
}

@theme {
  /* Brand */
  --color-accent: #2e5e99;
  --color-accent-strong: #3a71b4;
  --color-accent-soft: #7ba4d0;
  --color-navy: #0d2440;
  --color-ink: #1a1a1a;
  --color-snow: #f5f6f8;
  --color-mist: #e7f0fa;

  --ease-sterling: cubic-bezier(0.25, 1, 0.5, 1);

  --animate-marquee: scrollMarquee 30s linear infinite;
  --animate-fade-in: fadeIn 0.5s ease-out;

  @keyframes scrollMarquee {
    from {
      transform: translateX(0);
    }

    to {
      transform: translateX(-50%);
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ------------------------------------------------------------------ */
/* BREAKPOINT CONVENTION                                               */
/* The original CSS used inclusive queries (`max-width: 768px` = ≤768).*/
/* Tailwind's `max-[Npx]` is exclusive (< N), so a legacy "≤768px"     */
/* rule is written `max-[769px]:`. `min-[Npx]:` is inclusive in both.  */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Viewport-height variants (the original design reacts to short       */
/* screens, not only narrow ones). Order matters: later wins.          */
/* ------------------------------------------------------------------ */
@custom-variant laptop (@media (min-width: 1180px) and (max-width: 1380px));
@custom-variant short (@media (max-height: 800px));
@custom-variant short-wide (@media (min-width: 500px) and (max-height: 800px));
@custom-variant compact (@media (max-height: 700px));

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
@layer base {
  html {
    /* Preflight defaults to 1.5; the original design relies on the browser default. */
    line-height: normal;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
  }

  /* Service pages paint their own full-bleed background. */
  html:has(.services-page) {
    scrollbar-gutter: auto;
  }

  body {
    background-color: #fff;
    color: var(--color-ink);
    font-family: var(--font-sans);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  button {
    cursor: pointer;
  }
}

/* ------------------------------------------------------------------ */
/* Newsroom Rich Text Article Styles (SunEditor & HTML Renderer)      */
/* ------------------------------------------------------------------ */
.newsroom-article-content {
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.75;
  font-family: var(--font-montserrat), "Montserrat", sans-serif;
  word-break: break-word;
}

.newsroom-article-content p,
.newsroom-article-content div {
  font-family: inherit;
}

/* Ensure any explicitly chosen Montserrat inline styles map directly to Montserrat */
.newsroom-article-content [style*="font-family: Montserrat"],
.newsroom-article-content [style*="font-family: 'Montserrat'"],
.newsroom-article-content [style*="font-family:Montserrat"] {
  font-family: var(--font-montserrat), "Montserrat", sans-serif !important;
}

/* 
.newsroom-article-content p {
  margin-bottom: 1rem;
} */

.newsroom-article-content p:last-child {
  margin-bottom: 0;
}

.newsroom-article-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.newsroom-article-content h2 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.newsroom-article-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.newsroom-article-content h4,
.newsroom-article-content h5,
.newsroom-article-content h6 {
  font-weight: 600;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.newsroom-article-content a {
  color: #2e5e99;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.newsroom-article-content a:hover {
  color: #1d3d66;
}

/* SunEditor & Rich-Text Images and Figures */
.newsroom-article-content figure {
  margin: 1.75rem auto;
  max-width: 100%;
}

.newsroom-article-content .se-image-container {
  display: block;
  max-width: 100%;
  margin: 1.75rem auto;
  text-align: center;
}

.newsroom-article-content .se-image-container.__se__float-center,
.newsroom-article-content .__se__float-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  float: none;
}

.newsroom-article-content .se-image-container.__se__float-left,
.newsroom-article-content .__se__float-left {
  float: left;
  margin-right: 1.75rem;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  max-width: 50%;
}

.newsroom-article-content .se-image-container.__se__float-right,
.newsroom-article-content .__se__float-right {
  float: right;
  margin-left: 1.75rem;
  margin-bottom: 1.25rem;
  margin-top: 0.5rem;
  max-width: 50%;
}

.newsroom-article-content .__se__float-none {
  float: none;
  display: block;
}

.newsroom-article-content img {
  border-radius: 0px !important;
  max-width: 100%;
  height: auto;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Default unconstrained images to a neat, centered max-width */
.newsroom-article-content img:not([style*="width"]):not([width]) {
  max-width: min(100%, 640px);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Clearfix for floated images */
.newsroom-article-content::after {
  content: "";
  display: table;
  clear: both;
}

/* SunEditor & Rich-Text Tables */
.newsroom-article-content table {
  width: 100% !important;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse !important;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  display: table;
  overflow-x: auto;
}

.newsroom-article-content th,
.newsroom-article-content td {
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.newsroom-article-content th {
  background-color: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.newsroom-article-content tr:nth-child(even) td {
  background-color: #f9fafb;
}

/* Lists */
.newsroom-article-content ul {
  list-style-type: disc;
  margin-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.newsroom-article-content ol {
  list-style-type: decimal;
  margin-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.newsroom-article-content li {
  margin-bottom: 0.5rem;
}

/* Quotes */
.newsroom-article-content blockquote {
  border-left: 4px solid #2e5e99;
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #4b5563;
  background-color: #f8fafc;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

/* Code & Pre */
.newsroom-article-content pre {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.newsroom-article-content code {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Legacy Quill Class Support for backward compatibility */
.newsroom-article-content .ql-size-large {
  font-size: 1.32rem;
  line-height: 1.35;
  display: inline-block;
}

.newsroom-article-content .ql-size-huge {
  font-size: 1.75rem;
  line-height: 1;
  display: inline-block;
}

.newsroom-article-content .ql-size-small {
  font-size: 0.875rem;
}

.newsroom-article-content .ql-align-center {
  text-align: center;
}

.newsroom-article-content .ql-align-right {
  text-align: right;
}

.newsroom-article-content .ql-align-justify {
  text-align: justify;

}


/* === CENTER === */
.se-component.se-image-container.__se__float-center {
  text-align: center;
  /* center contents */
}

.se-component.se-image-container.__se__float-center figure {
  display: inline-block;
  /* shrink wrap */
  margin: 0 auto;
  /* center horizontally */
}

.se-component.se-image-container.__se__float-center img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === LEFT === */
.se-component.se-image-container.__se__float-left {
  text-align: left;
}

.se-component.se-image-container.__se__float-left figure {
  display: inline-block;
  margin: 0 10px 10px 0;
  /* spacing on right + bottom */
}

.se-component.se-image-container.__se__float-left img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === RIGHT === */
.se-component.se-image-container.__se__float-right {
  text-align: right;
}

.se-component.se-image-container.__se__float-right figure {
  display: inline-block;
  margin: 0 0 10px 10px;
  /* spacing on left + bottom */
}

.se-component.se-image-container.__se__float-right img {
  display: block;
  max-width: 100%;
  height: auto;
}


.se-image-container.__se__float-left img {
  max-width: 100% !important;
}

.se-image-container.__se__float-right img {
  max-width: 100% !important;
}

.se-image-container.__se__float-center img {
  max-width: 100% !important;
}