/*
Theme Name: Data Maturity Pro
Theme URI: https://www.datamaturitypro.com/blog/
Author: Level Up Your Data
Description: The Data Maturity Pro blog, styled as part of www.datamaturitypro.com (tokens from web/app/globals.css).
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: dmpro
*/

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/manrope-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/sourcesans3-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(assets/sourcesans3-italic.woff2) format("woff2"); }

/* Tokens: the light theme in web/app/globals.css. Change them there first, then here. */
:root {
  --navy: #0b1426;
  --fg: #0b1426;
  --muted-fg: #4b5a70;
  --placeholder: #64748b;
  --green: #3dc47a;
  --green-hover: #34b06c;
  --accent: #e8f6fd;
  --accent-fg: #075985;
  --surface: #f6f8fb;
  --muted: #f1f4f8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --card: #fff;
  --radius: 12px;
  --container: 1280px;
  --gutter: 16px;
  --page-title: 2rem;
  --page-title-lh: 2.5rem;
  --section-heading: 1.25rem;
  --section-heading-lh: 1.75rem;
  --heading: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 1px 2px rgb(11 20 38 / .04), 0 4px 16px rgb(11 20 38 / .06);
  --shadow-lift: 0 12px 40px rgb(11 20 38 / .18);
}
@media (min-width: 40rem) { :root { --gutter: 24px; --page-title: 2.5rem; --page-title-lh: 3rem; --section-heading: 1.5rem; --section-heading-lh: 2rem; } }
@media (min-width: 64rem) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: #fff; color: var(--fg); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); color: var(--fg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.dm-ico { flex-shrink: 0; }
.dm-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.dm-skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.dm-skip:focus { left: 12px; }

/* Buttons (web/shared/components/ui/button.tsx) */
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font: 700 .9375rem/1.25 var(--heading); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.dm-btn--primary { background: var(--green); color: var(--navy); }
.dm-btn--primary:hover { background: var(--green-hover); }
.dm-btn--outline { background: #fff; color: var(--fg); border: 1px solid var(--line-strong); }
.dm-btn--outline:hover { border-color: var(--muted-fg); }
.dm-btn--on-dark { background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .2); }
.dm-btn--on-dark:hover { background: rgb(255 255 255 / .18); }
.dm-btn--sm { min-height: 40px; padding: 0 14px; }

/* Header (web/features/marketing/components/site-header.tsx) */
.dm-header { position: sticky; top: 0; z-index: 100; background: rgb(11 20 38 / .95); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(8px); }
.dm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
@media (min-width: 64rem) { .dm-header__inner { height: 72px; } }
.dm-brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; text-decoration: none; flex-shrink: 0; }
.dm-brand svg { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.dm-brand__text { display: flex; flex-direction: column; line-height: 1; }
.dm-brand__name { font: 800 1.05rem/1 var(--heading); letter-spacing: -.02em; color: #fff; }
.dm-brand__name span { color: var(--green); }
.dm-brand__by { margin-top: 4px; font: 600 .7rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: rgb(255 255 255 / .8); }
.dm-nav { display: none; align-items: center; gap: 4px; }
.dm-nav a { padding: 8px 12px; border-radius: 8px; font: 600 .95rem/1.25 var(--body); color: rgb(255 255 255 / .8); text-decoration: none; }
.dm-nav a:hover, .dm-nav a[aria-current] { background: rgb(255 255 255 / .1); color: #fff; }
.dm-actions { display: flex; align-items: center; gap: 6px; }
.dm-signin { display: none; padding: 8px 12px; font: 600 .95rem/1.25 var(--body); color: rgb(255 255 255 / .85); text-decoration: none; }
.dm-signin:hover { color: #fff; }
.dm-actions .dm-btn { display: none; }
.dm-menu { position: static; }
.dm-menu summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: #fff; cursor: pointer; list-style: none; }
.dm-menu summary::-webkit-details-marker { display: none; }
.dm-menu summary:hover { background: rgb(255 255 255 / .1); }
.dm-menu__panel { position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 16px; background: var(--navy); border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-direction: column; }
.dm-menu__panel a:not(.dm-btn) { padding: 12px; border-radius: 8px; font: 600 1rem var(--body); color: rgb(255 255 255 / .9); text-decoration: none; }
.dm-menu__panel a:not(.dm-btn):hover { background: rgb(255 255 255 / .1); }
.dm-menu__panel .dm-menu__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .1); }
.dm-menu__panel .dm-btn { display: inline-flex; }
@media (min-width: 40rem) { .dm-signin, .dm-actions .dm-btn { display: inline-flex; } }
@media (min-width: 64rem) { .dm-nav { display: flex; } .dm-menu { display: none; } }

/* Title band */
.dm-band { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
@media (min-width: 48rem) { .dm-band { padding: 56px 0 44px; } }
.dm-eyebrow { margin: 0 0 12px; font: 700 .8125rem/1 var(--heading); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-fg); }
.dm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font: 600 .9375rem/1.375rem var(--body); color: var(--muted-fg); }
.dm-crumbs a { color: var(--accent-fg); text-decoration: none; }
.dm-crumbs a:hover { text-decoration: underline; }
.dm-title { margin: 0; font-size: var(--page-title); line-height: var(--page-title-lh); font-weight: 800; letter-spacing: -.02em; }
.dm-title--post { max-width: 26ch; }
@media (min-width: 64rem) { .dm-title--post { font-size: 2.75rem; line-height: 3.25rem; } }
.dm-lead { max-width: 680px; margin: 14px 0 0; font-size: 1.125rem; line-height: 1.7; color: var(--muted-fg); }
.dm-lead p { margin: 0; }
.dm-meta { font-size: .9375rem; line-height: 1.375rem; color: var(--muted-fg); }
.dm-meta--post { margin: 16px 0 0; }
.dm-field { display: flex; align-items: center; gap: 10px; max-width: 680px; height: 48px; margin-top: 28px; padding: 0 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted-fg); }
.dm-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.dm-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1rem var(--body); color: var(--fg); }
.dm-field input::placeholder { color: var(--placeholder); }
.dm-field input:focus { outline: none; }
.dm-tabs { display: flex; gap: 4px; margin: 24px 0 -32px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 48rem) { .dm-tabs { margin-bottom: -44px; } }
.dm-tabs a { flex-shrink: 0; padding: 12px 14px; border-bottom: 2px solid transparent; font: 600 .9375rem/1.375rem var(--body); color: var(--muted-fg); text-decoration: none; }
.dm-tabs a:hover { color: var(--fg); }
.dm-tabs a[aria-current] { color: var(--fg); font-weight: 700; border-bottom-color: var(--green); }

/* Sections and cards */
.dm-section { padding-block: 48px; }
.dm-section--tight { padding-block: 8px 48px; }
.dm-h2 { margin: 0 0 20px; font-size: var(--section-heading); line-height: var(--section-heading-lh); font-weight: 700; }
.dm-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .dm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.dm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: border-color .15s, box-shadow .15s; }
.dm-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 28px rgb(11 20 38 / .1); }
.dm-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.dm-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--accent); }
.dm-card__img--blank { display: flex; align-items: center; justify-content: center; background: var(--navy); }
.dm-card__img--blank svg { width: 64px; height: 64px; }
.dm-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.dm-card__cat { font: 700 .8125rem/1.125rem var(--heading); color: var(--accent-fg); }
.dm-card__title { margin: 0; font-size: 1.1875rem; line-height: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.dm-card:hover .dm-card__title { color: var(--accent-fg); }
.dm-card__excerpt { color: var(--muted-fg); font-size: .9375rem; line-height: 1.45; }
.dm-card .dm-meta { margin-top: auto; padding-top: 4px; font-size: .875rem; }
.dm-empty { padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dm-empty h2 { margin: 0 0 8px; font-size: var(--section-heading); line-height: var(--section-heading-lh); }
.dm-empty p { margin: 0 auto 20px; max-width: 520px; color: var(--muted-fg); }
.dm-pages .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.dm-pages .page-numbers { display: inline-flex; align-items: center; min-width: 44px; height: 44px; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 600 .9375rem var(--body); text-decoration: none; }
.dm-pages .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Call to action (the site's navy unlock card) */
.dm-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; background: var(--navy); color: #fff; border-radius: 18px; box-shadow: var(--shadow-lift); }
.dm-cta::before { content: ""; position: absolute; top: -96px; right: -96px; width: 288px; height: 288px; border-radius: 50%; background: rgb(61 196 122 / .2); filter: blur(48px); }
.dm-cta > * { position: relative; }
.dm-cta h2 { margin: 0 0 8px; font-size: var(--section-heading); line-height: var(--section-heading-lh); font-weight: 800; color: #fff; }
.dm-cta p { margin: 0; max-width: 560px; color: rgb(255 255 255 / .8); }
.dm-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 48rem) { .dm-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 32px; } }

/* Article: "On this page" beside the text */
.dm-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 44px 48px; }
.dm-toc { display: none; }
@media (min-width: 64rem) {
  .dm-article { grid-template-columns: 260px minmax(0, 720px); gap: 64px; }
  .dm-article--page { grid-template-columns: minmax(0, 720px); }
  .dm-toc { display: block; position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow: auto; }
}
.dm-toc__title { margin: 0 0 8px; padding: 0 12px; font: 700 .8125rem var(--heading); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); }
.dm-toc ol { list-style: none; margin: 0; padding: 0; }
.dm-toc a { display: flex; gap: 14px; padding: 9px 12px; border-radius: 8px; font: 600 .9375rem/1.375rem var(--body); color: var(--muted-fg); text-decoration: none; }
.dm-toc a:hover { background: var(--accent); color: var(--accent-fg); }
.dm-toc__n { min-width: 14px; font-weight: 400; }

/* Article text */
.dm-prose { min-width: 0; font-size: 1.125rem; line-height: 1.8; color: var(--fg); }
.dm-prose > :first-child { margin-top: 0; }
.dm-prose p, .dm-prose ul, .dm-prose ol, .dm-prose blockquote, .dm-prose figure, .dm-prose table, .dm-prose pre { margin: 0 0 1.25em; }
.dm-prose h2 { margin: 2em 0 .6em; font-size: var(--section-heading); line-height: var(--section-heading-lh); font-weight: 800; letter-spacing: -.015em; }
.dm-prose h3 { margin: 1.6em 0 .5em; font-size: 1.25rem; line-height: 1.7rem; font-weight: 700; }
.dm-prose h4 { margin: 1.4em 0 .4em; font-size: 1.0625rem; font-weight: 700; }
.dm-prose a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dm-prose a:hover { text-decoration-thickness: 2px; }
.dm-prose strong { font-weight: 700; }
.dm-prose ul, .dm-prose ol { padding-left: 1.4em; }
.dm-prose li { margin: .35em 0; padding-left: .2em; }
.dm-prose li::marker { color: var(--green-hover); }
.dm-prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--muted-fg); font-style: italic; }
.dm-prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.dm-prose img { border-radius: var(--radius); }
.dm-prose figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.375rem; color: var(--muted-fg); text-align: center; }
.dm-prose code { padding: .15em .4em; background: var(--muted); border: 1px solid var(--line); border-radius: 6px; font-size: .875em; }
.dm-prose pre { padding: 16px 18px; overflow-x: auto; background: var(--navy); color: #e2e8f0; border-radius: var(--radius); font-size: .875rem; line-height: 1.6; }
.dm-prose pre code { padding: 0; background: none; border: 0; color: inherit; }
.dm-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.dm-prose .wp-block-table { overflow-x: auto; }
.dm-prose .wp-block-table table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.dm-prose th, .dm-prose td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dm-prose tr:last-child td { border-bottom: 0; }
.dm-prose th { background: var(--surface); font-family: var(--heading); font-weight: 700; font-size: .875rem; }
.dm-prose .wp-block-table figcaption { text-align: left; }
.dm-prose .wp-block-button__link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; background: var(--green); color: var(--navy); border-radius: 10px; font: 700 .9375rem/1.25 var(--heading); text-decoration: none; }
.dm-prose .wp-block-button__link:hover { background: var(--green-hover); }
.dm-prose .has-background { padding: 20px 24px; border-radius: var(--radius); }
.dm-hero { margin: 0 0 32px; }
.dm-hero img { display: block; width: 100%; border-radius: var(--radius); }
.dm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.dm-tags a { padding: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--muted-fg); text-decoration: none; }
.dm-tags a:hover { border-color: var(--line-strong); color: var(--fg); }
.alignwide { margin-inline: 0; }
.aligncenter { margin-inline: auto; display: block; }

/* Footer (web/features/marketing/components/site-footer.tsx) */
.dm-footer { margin-top: 24px; background: var(--navy); color: rgb(255 255 255 / .8); }
.dm-footer__inner { padding-block: 56px; }
.dm-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 48rem) { .dm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.dm-footer__about p { max-width: 380px; margin: 16px 0 0; font-size: .95rem; line-height: 1.6; }
.dm-footer__title { margin: 0; font: 700 .875rem/1.25 var(--heading); letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.dm-footer ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.dm-footer li a { font-size: .95rem; line-height: 1.4; color: rgb(255 255 255 / .8); text-decoration: none; }
.dm-footer li a:hover { color: #fff; text-decoration: underline; }
.dm-footer__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; color: rgb(255 255 255 / .75); }
.dm-footer__base p { margin: 0; }
.dm-footer__base p + p { margin-top: 12px; }
.dm-band + .dm-section--tight { padding-top: 48px; }
