:root {
  color-scheme: light;
  --mintflow-accent: #08725d;
  --nova-accent: #245eb8;
  --mintflow-fill: #7ae4c5;
  --nova-fill: #9bc2ff;
  --on-brand: #102c30;
  --accent-300: var(--mintflow-accent);
  --accent-400: var(--accent-300);
  --accent-500: var(--accent-300);
  --accent-shadow: color-mix(in srgb, var(--accent-300) 16%, transparent);
  --brand-fill: var(--mintflow-fill);
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #eef0f3;
  --surface-elevated: #ffffff;
  --chrome: #e7e9ee;
  --site-width: 76rem;
  --site-gutter: 1rem;
  --line: color-mix(in srgb, var(--text-soft) 24%, var(--surface));
  --line-muted: color-mix(in srgb, var(--text-soft) 16%, var(--surface-strong));
  --text: #202832;
  --text-soft: #414e5c;
  --text-muted: #566373;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  /* Hugo's existing syntax colors target a dark code surface in both themes. */
  --code-bg: #0c1a22;
  --code-text: #d8e7ef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[data-product="mintflow"] {
  --accent-300: var(--mintflow-accent);
  --brand-fill: var(--mintflow-fill);
}

[data-product="nova"] {
  --accent-300: var(--nova-accent);
  --brand-fill: var(--nova-fill);
}

/* Resolve aliases on the product element, after its own accent override. */
[data-product] {
  --accent-400: var(--accent-300);
  --accent-500: var(--accent-300);
  --accent-shadow: color-mix(in srgb, var(--accent-300) 16%, transparent);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) !important;
  color: var(--text-soft) !important;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--font-sans);
}

body > main {
  flex: 1 0 auto;
}

body > footer {
  flex-shrink: 0;
}

.site-main {
  max-width: var(--site-width);
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

@media (min-width: 640px) {
  :root { --site-gutter: 1.5rem; }
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line-muted);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 80%, var(--surface-strong));
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.4;
}

.faq-summary::after {
  content: "▾";
  margin-left: auto;
  transition: transform 150ms ease;
  color: var(--text-soft);
}

.faq-item[open] .faq-summary::after {
  transform: rotate(180deg);
}

.faq-summary:hover,
.faq-summary:focus-visible {
  color: var(--accent-300);
}

.faq-answer {
  border-top: 1px solid var(--line-muted);
  padding: 0.7rem 1rem 0.92rem;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.faq-answer pre {
  margin-top: 0.72rem;
}

.banner-brand {
  color: var(--text);
}

.banner-comma {
  color: var(--text-soft);
}

.banner-subtitle {
  color: var(--text-soft);
  margin: 0;
}

.bg-zinc-950,
.bg-zinc-950\/90,
.bg-zinc-950\/70 {
  background-color: var(--surface) !important;
}

.bg-zinc-900,
.bg-zinc-900\/70,
.bg-zinc-900\/80,
.bg-zinc-900\/60 {
  background-color: var(--surface) !important;
}

.text-zinc-50,
.text-zinc-100 {
  color: var(--text) !important;
}

.text-zinc-200,
.text-zinc-300 {
  color: var(--text-soft) !important;
}

.text-zinc-400,
.text-zinc-500 {
  color: var(--text-soft) !important;
}

.border-zinc-900,
.border-zinc-800,
.border-zinc-800\/80,
.border-zinc-700 {
  border-color: var(--line-muted) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
}

.font-mono { font-family: var(--font-mono); }

.skip-link { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100; padding: 0.75rem 1rem; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 4px; }

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 5rem;
}

.prose {
  color: var(--text-soft) !important;
  line-height: 1.58;
  font-weight: 420;
  letter-spacing: 0;
}

.prose :where(h1, h2, h3, h4, th, strong):not(:where(.not-prose, .not-prose *)) {
  color: var(--text) !important;
}

.prose :where(p, ul, ol, pre, blockquote):not(:where(.not-prose, .not-prose *)) {
  margin-top: 0.68rem;
  margin-bottom: 0.68rem;
  font-weight: 410;
}

.prose :where(h2):not(:where(.not-prose, .not-prose *)) {
  margin-top: 2.15rem;
  margin-bottom: 0.85rem;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.28;
}

.prose :where(h3):not(:where(.not-prose, .not-prose *)) {
  margin-top: 1.65rem;
  margin-bottom: 0.65rem;
  font-size: 1.13rem;
  font-weight: 650;
  line-height: 1.32;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem);
  grid-template-areas: "breadcrumb breadcrumb" "main sidebar";
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 1.75rem;
  align-items: start;
  justify-content: center;
}

.article-main {
  grid-area: main;
  min-width: 0;
}

.article-header {
  border-bottom: 1px solid var(--line-muted);
  margin-bottom: 2.1rem;
  padding-bottom: 1.55rem;
}

.article-header h1 {
  color: var(--text);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.article-header p {
  color: var(--text-soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.58;
  margin: 1rem 0 0;
  max-width: 42rem;
}

.article-header time,
.article-kicker {
  color: color-mix(in srgb, var(--text-soft) 78%, var(--bg));
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.article-header time {
  margin-top: 1rem;
}

.article-prose {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  max-width: 43rem;
}

.article-prose :where(p, ul, ol, pre, blockquote):not(:where(.not-prose, .not-prose *)) {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

.article-prose :where(h2):not(:where(.not-prose, .not-prose *)) {
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.article-prose :where(h3):not(:where(.not-prose, .not-prose *)) {
  margin-top: 1.7rem;
  margin-bottom: 0.65rem;
}

.article-prose :where(blockquote):not(:where(.not-prose, .not-prose *)) {
  border-left: 3px solid var(--accent-300);
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--accent-shadow) 52%, transparent);
  color: var(--text);
  font-style: normal;
  margin: 1.15rem 0 1.25rem;
  padding: 0.82rem 0.95rem;
}

.article-prose :where(blockquote p):not(:where(.not-prose, .not-prose *)) {
  color: var(--text);
  margin: 0;
}

.article-prose :where(table):not(:where(.not-prose, .not-prose *)) {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: 1px solid color-mix(in srgb, var(--text-soft) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text-soft) 14%, transparent);
  margin: 1.3rem 0 1.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.48;
}

.article-prose :where(thead):not(:where(.not-prose, .not-prose *)) {
  background: color-mix(in srgb, var(--surface-strong) 48%, transparent);
}

.article-prose :where(th, td):not(:where(.not-prose, .not-prose *)) {
  min-width: 11rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text-soft) 10%, transparent);
  padding: 0.72rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.article-prose :where(th):not(:where(.not-prose, .not-prose *)) {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0;
}

.article-prose :where(td):not(:where(.not-prose, .not-prose *)) {
  font-weight: 410;
}

.article-prose :where(tbody tr:last-child td):not(:where(.not-prose, .not-prose *)) {
  border-bottom: 0;
}

.article-breadcrumb {
  grid-area: breadcrumb;
  min-width: 0;
  position: static;
}

.article-breadcrumb ol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-breadcrumb li {
  color: color-mix(in srgb, var(--text-soft) 68%, var(--bg));
  font-size: 0.76rem;
  font-weight: 620;
  line-height: 1.35;
}

.article-breadcrumb li[aria-current="page"] {
  color: var(--accent-300);
}

.article-breadcrumb li:not(:last-child)::after {
  color: color-mix(in srgb, var(--text-soft) 40%, var(--bg));
  content: "/";
  display: inline;
  font-weight: 400;
  margin-left: 0.4rem;
}

.article-breadcrumb a {
  color: color-mix(in srgb, var(--text-soft) 80%, var(--bg));
  text-decoration: none;
  transition: color 160ms ease;
}

.article-breadcrumb a:hover,
.article-breadcrumb a:focus-visible {
  color: var(--accent-300);
}

.article-breadcrumb a:focus-visible,
.article-back-link:focus-visible,
.article-toc a:focus-visible {
  border-radius: 0.22rem;
  outline: 1px solid color-mix(in srgb, var(--accent-500) 72%, transparent);
  outline-offset: 3px;
}

.article-sidebar {
  display: block;
  grid-area: sidebar;
  position: sticky;
  top: 5.5rem;
}

.article-sidebar-inner {
  border-left: 1px solid var(--line-muted);
  padding-left: 1.05rem;
}

.article-back-link,
.article-sidebar-title {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.article-back-link {
  color: var(--accent-300);
  display: flex;
  margin-bottom: 1.15rem;
  transition: color 160ms ease;
  width: max-content;
}

.article-back-link:hover,
.article-back-link:focus-visible {
  color: var(--accent-300);
}

.article-sidebar-title {
  color: var(--accent-300);
  display: block;
  margin-bottom: 0.6rem;
}

.article-toc nav,
.article-toc ul {
  margin: 0;
  padding: 0;
}

.article-toc ul {
  list-style: none;
}

.article-toc li {
  margin: 0.28rem 0;
}

.article-toc ul ul {
  border-left: 1px solid var(--line-muted);
  margin: 0.32rem 0 0.45rem 0.18rem;
  padding-left: 0.72rem;
}

.article-toc a {
  color: color-mix(in srgb, var(--text-soft) 78%, var(--bg));
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--accent-300);
}

.workflow-diagram {
  border: 1px solid var(--line-muted);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-strong));
  margin: 1.5rem 0 1.8rem;
  overflow: hidden;
}

.workflow-diagram-scroll {
  overflow-x: auto;
}

.workflow-diagram picture {
  display: block;
}

.workflow-diagram img {
  display: block;
  height: auto;
  width: 100%;
}

.workflow-diagram-caption {
  border-top: 1px solid var(--line-muted);
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.75rem 0.9rem;
}

@media (max-width: 1099px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 12rem);
    grid-template-areas:
      "breadcrumb breadcrumb"
      "main sidebar";
    gap: 1.6rem 2rem;
    justify-content: stretch;
  }

  .article-breadcrumb ol {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0;
  }

  .article-breadcrumb li:not(:last-child)::after {
    display: inline;
    margin-left: 0.4rem;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .article-layout {
    display: grid;
    grid-template-areas:
      "breadcrumb"
      "sidebar"
      "main";
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .article-breadcrumb {
    position: static;
  }

  .article-sidebar {
    position: static;
    width: 100%;
  }

  .article-sidebar-inner {
    border: 1px solid var(--line-muted);
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-strong));
    padding: 0.85rem 0.95rem;
    position: static;
  }

  .article-back-link {
    margin-bottom: 0.8rem;
  }

  .article-sidebar-title {
    display: block;
  }

  .article-toc {
    display: block;
    max-height: 16rem;
    overflow: auto;
  }

  .article-prose,
  .article-header p {
    max-width: none;
  }
}

.prose :where(ul):not(:where(.not-prose, .not-prose *)) {
  list-style: disc;
  padding-left: 1.4rem;
}

.prose :where(ol):not(:where(.not-prose, .not-prose *)) {
  list-style: decimal;
  padding-left: 1.4rem;
}

.prose :where(li):not(:where(.not-prose, .not-prose *)) {
  margin-top: 0.2rem;
  font-weight: 420;
}

.prose img {
  border-radius: 0.75rem;
}

.prose :where(code):not(:where(.not-prose, .not-prose *))::before,
.prose :where(code):not(:where(.not-prose, .not-prose *))::after {
  content: none !important;
}

.prose :where(:not(pre) > code):not(:where(.not-prose, .not-prose *)) {
  border: 1px solid color-mix(in srgb, var(--text-soft) 14%, var(--surface-strong));
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--bg));
  padding: 0.08rem 0.28rem;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.9em;
  font-weight: 400;
}

.prose :where(pre):not(:where(.not-prose, .not-prose *)) {
  position: relative;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--text-soft) 18%, var(--surface-strong));
  border-radius: 0.5rem;
  background: var(--code-bg) !important;
  max-width: 100%;
  padding: 0.85rem 4.35rem 0.85rem 0.85rem;
  color: var(--code-text) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.prose :where(pre code):not(:where(.not-prose, .not-prose *)) {
  border: 0;
  background: transparent !important;
  padding: 0;
  color: inherit !important;
  font: inherit;
}

.code-copy-button {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  border: 1px solid color-mix(in srgb, var(--text-soft) 18%, var(--surface-strong));
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--surface-strong) 90%, var(--bg));
  color: var(--text-soft);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0.78;
  padding: 0.42rem 0.52rem;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.code-copy-button:hover,
.code-copy-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent-500) 55%, var(--surface-strong));
  color: var(--accent-300);
  opacity: 1;
  outline: none;
}

.code-copy-button[data-copied="true"] {
  color: var(--accent-300);
}

.content-card {
  background-color: var(--surface);
  color: var(--text-soft);
  border: 1px solid var(--line-muted);
  text-decoration: none;
  transition: border-color 160ms ease;
}

.content-card:hover,
.content-card:focus-visible {
  background-color: var(--surface);
  border-color: var(--accent-300);
}

.product-link {
  display: block;
  border-radius: 0.375rem;
  border-top: 1px solid var(--line-muted);
  padding: 1.25rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.product-link:hover {
  background-color: color-mix(in srgb, var(--surface) 58%, transparent);
  border-color: color-mix(in srgb, var(--text-soft) 22%, var(--surface));
}

.product-nav-fixed {
  width: 100%;
  border-color: transparent !important;
  box-shadow: none;
}

.product-nav-fixed > div {
  padding-bottom: 0.72rem !important;
  padding-top: 0.72rem !important;
}

.product-nav-inner {
  align-items: center;
  display: grid;
  gap: 0.55rem 0.85rem;
  grid-template-areas:
    "brand"
    "menu";
  grid-template-columns: minmax(0, 1fr);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--site-width);
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  width: 100%;
}

.product-nav-brand {
  align-items: center;
  color: var(--text) !important;
  display: inline-flex;
  font-weight: 720;
  gap: 0.55rem;
  grid-area: brand;
  min-width: 0;
  text-decoration: none;
}

.product-nav-brand:hover,
.product-nav-brand:focus-visible {
  color: var(--accent-300) !important;
}

.product-nav-brand:focus-visible,
.subnav-link:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent-500) 72%, transparent);
  outline-offset: 3px;
}

.product-nav-icon {
  border-radius: 0.55rem;
  flex: 0 0 auto;
  height: 2rem;
  width: 2rem;
}

.product-nav-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-nav-links {
  grid-area: links;
  justify-content: flex-end;
  min-width: 0;
}

.product-nav-spacer {
  height: 6.45rem;
}

.mobile-product-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-area: menu;
  min-width: 0;
}

.mobile-product-menu summary {
  min-width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mobile-product-menu summary::after { content: "⌄"; }
.mobile-product-menu[open] summary::after { transform: rotate(180deg); }

@media (max-width: 639px) {
  .product-nav-fixed { position: sticky !important; }
  .product-nav-spacer { display: none; }
  .product-nav-inner { display: flex; flex-wrap: wrap; }
  .product-nav-brand { max-width: 100%; flex: 1 1 auto; order: 0; }
  .mobile-product-menu { order: 2; flex: 1 0 100%; }
}

.mobile-product-menu > div {
  min-width: 0;
  width: 100%;
  text-align: right;
}

@media (min-width: 640px) {
  .product-nav-inner {
    gap: 1rem;
    grid-template-areas: "brand links";
    grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
  }

  .mobile-product-menu {
    display: none !important;
  }

  .product-nav-spacer {
    height: 3.65rem;
  }
}

::selection {
  background-color: color-mix(in srgb, var(--accent-500) 30%, transparent);
}

.text-cyan-300,
.prose-a\:text-cyan-300 :where(a):not(:where(.not-prose, .not-prose *)) {
  color: var(--accent-300) !important;
}

.text-emerald-300 {
  color: var(--mintflow-accent) !important;
}

.text-sky-300 {
  color: var(--nova-accent) !important;
}

.prose a[href^="mailto:mintflow@"] {
  color: var(--mintflow-accent) !important;
}

.prose a[href^="mailto:nova-support@"] {
  color: var(--nova-accent) !important;
}

body > header,
.product-nav-fixed {
  background-color: var(--bg) !important;
}

.site-header,
.product-nav-fixed {
  border-color: transparent !important;
  box-shadow: none;
}

footer {
  background-color: var(--chrome) !important;
}

footer {
  color: var(--text-soft) !important;
  border-color: color-mix(in srgb, var(--text-soft) 14%, transparent) !important;
}

footer > div {
  padding-bottom: 2.2rem !important;
  padding-top: 2.2rem !important;
}

footer a {
  text-decoration: none;
}

footer select {
  background-color: color-mix(in srgb, var(--surface-elevated) 86%, var(--surface-strong)) !important;
}

.subnav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  position: relative;
  border-radius: 0.35rem;
  padding: 0.38rem 0.16rem 0.52rem;
}

.subnav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--accent-500) 76%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.subnav-link:hover::after,
.subnav-link-active::after {
  transform: scaleX(1);
}

.subnav-link-active {
  color: var(--accent-300) !important;
  font-weight: 650;
}

.hover\:text-cyan-200:hover {
  color: color-mix(in srgb, var(--accent-300) 85%, var(--text)) !important;
}

.hover\:text-cyan-300:hover {
  color: var(--accent-300) !important;
}

.hover\:border-cyan-500\/60:hover,
.hover\:border-cyan-500:hover {
  border-color: color-mix(in srgb, var(--accent-500) 60%, transparent) !important;
}

.shadow-cyan-950\/40 {
  --tw-shadow-color: var(--accent-shadow) !important;
}

.prose :where(a):not(:where(.not-prose, .not-prose *)) {
  color: var(--accent-400) !important;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
