/*
 * FOUND editorial content system.
 * Loaded after the converted marketing CSS so native WordPress content
 * receives intentional typography, spacing and block styling.
 */

.found-editorial-area {
  background: var(--background, #fff);
  color: var(--foreground, #111);
}

.found-editorial-main {
  width: 100%;
}

.found-editorial-article {
  width: 100%;
}

.found-editorial-header {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 56px;
}

.found-editorial-eyebrow {
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent, #7fff00);
}

.found-editorial-title {
  margin: 0 !important;
  max-width: 900px;
  font-family: Archivo, Arial, sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  text-transform: none !important;
}

.found-editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground, #666);
}

.found-editorial-content {
  /* The converted theme contains a global WordPress reset that intentionally
     makes generic .entry-content full-width. Editorial pages must opt back into
     a readable measure here, with !important because this is a deliberate
     exception to that legacy reset. */
  display: block;
  width: min(800px, calc(100% - 40px)) !important;
  max-width: 800px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 0 120px;
  font-family: Archivo, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* Gutenberg blocks occasionally carry their own width/flex/min-width rules.
   Keep the editorial column authoritative without affecting marketing pages. */
.found-editorial-content > *,
.found-editorial-content .wp-block-group,
.found-editorial-content .wp-block-columns,
.found-editorial-content .wp-block-column {
  box-sizing: border-box;
  max-width: 100% !important;
  min-width: 0 !important;
}

.found-editorial-content p,
.found-editorial-content h2,
.found-editorial-content h3,
.found-editorial-content h4,
.found-editorial-content h5,
.found-editorial-content h6,
.found-editorial-content ul,
.found-editorial-content ol,
.found-editorial-content blockquote,
.found-editorial-content figure,
.found-editorial-content hr {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* Prevent an oversized converted block from creating page-level horizontal scroll.
   Code/preformatted content keeps its own local horizontal scroll below. */
.found-editorial-area {
  min-width: 0;
  overflow-x: clip;
}

.found-editorial-content > * {
  box-sizing: border-box;
}

.found-editorial-content p {
  margin: 0 0 1.35em !important;
  font-size: 1em;
  line-height: 1.75;
  text-transform: none;
}

.found-editorial-content h2,
.found-editorial-content h3,
.found-editorial-content h4,
.found-editorial-content h5,
.found-editorial-content h6 {
  font-family: Archivo, Arial, sans-serif;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}

.found-editorial-content h2 {
  margin: 2.1em 0 .7em !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
}

.found-editorial-content h3 {
  margin: 1.7em 0 .6em !important;
  font-size: clamp(1.45rem, 3vw, 2rem) !important;
}

.found-editorial-content h4 {
  margin: 1.5em 0 .5em !important;
  font-size: 1.35rem !important;
}

.found-editorial-content h5,
.found-editorial-content h6 {
  margin: 1.4em 0 .5em !important;
  font-size: 1.1rem !important;
}

.found-editorial-content ul,
.found-editorial-content ol {
  margin: 0 0 1.5em 1.5em !important;
  padding: 0 0 0 1.25em !important;
  list-style-position: outside !important;
}

.found-editorial-content ul {
  list-style-type: disc !important;
}

.found-editorial-content ol {
  list-style-type: decimal !important;
}

.found-editorial-content li {
  margin: 0 0 .5em !important;
  padding-left: .25em;
}

.found-editorial-content li > ul,
.found-editorial-content li > ol {
  margin-top: .5em !important;
  margin-bottom: .5em !important;
}

.found-editorial-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.found-editorial-content a:hover {
  color: var(--accent, #7fff00);
}

.found-editorial-content blockquote {
  margin: 2em 0 !important;
  padding: 1.25em 1.5em !important;
  border-left: 2px solid var(--accent, #7fff00) !important;
  background: rgba(127, 255, 0, .05);
  font-size: 1.15em;
  line-height: 1.6;
}

.found-editorial-content blockquote p:last-child {
  margin-bottom: 0 !important;
}

.found-editorial-content hr {
  margin: 3em 0 !important;
  border: 0;
  border-top: 1px solid currentColor;
  opacity: .15;
}

.found-editorial-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.found-editorial-content figure {
  margin: 2.5em 0 !important;
}

.found-editorial-content figcaption {
  margin-top: .75em;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted-foreground, #666);
}

.found-editorial-content table {
  width: 100% !important;
  margin: 2em 0 !important;
  border-collapse: collapse;
  font-size: .92em;
  line-height: 1.5;
}

.found-editorial-content th,
.found-editorial-content td {
  padding: .85em .9em !important;
  border: 1px solid rgba(0,0,0,.16) !important;
  text-align: left;
  vertical-align: top;
}

.found-editorial-content th {
  font-weight: 700;
}

.found-editorial-content pre,
.found-editorial-content code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.found-editorial-content pre {
  overflow-x: auto;
  margin: 2em 0 !important;
  padding: 1.25em !important;
  border: 1px solid rgba(0,0,0,.14);
  line-height: 1.55;
}

.found-editorial-content code {
  font-size: .88em;
}

.found-editorial-content .wp-block-heading {
  text-transform: none !important;
}

.found-editorial-content .wp-block-list {
  margin-bottom: 1.5em !important;
}

.found-editorial-content .wp-block-table {
  margin: 2em 0 !important;
}

.found-editorial-content .wp-block-image.alignwide,
.found-editorial-content .wp-block-image.alignfull {
  width: auto;
}

.found-editorial-content .wp-block-separator {
  margin: 3em auto !important;
}

@media (max-width: 767px) {
  .found-editorial-header {
    width: min(100% - 28px, 900px);
    padding: 118px 0 40px;
  }

  .found-editorial-content {
    width: min(100% - 28px, 800px) !important;
    max-width: 800px !important;
    padding-bottom: 80px;
    font-size: 17px;
  }

  .found-editorial-content h2 {
    margin-top: 1.7em !important;
  }

  .found-editorial-content table {
    display: block;
    overflow-x: auto;
  }
}

/* Remove conversion credit if an older cached template or injected markup remains. */
.wpconvert-credit,
.wpconvert-credit + * {
  display: none !important;
}


/* FOUND cleanup: hide any legacy WPConvert conversion-credit banner. */
.wpconvert-credit,
.wpconvert-footer-credit,
[data-wpconvert-credit],
[data-wpc-credit],
[class*="wpconvert-credit"],
[id*="wpconvert-credit"] { display: none !important; }

/* FOUND accessibility utility: keeps canonical text available to assistive technology
   without changing the visual rotating-brand treatment. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
