@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-400.ttf") format("truetype");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/manrope-500.ttf") format("truetype");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-700.ttf") format("truetype");
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/manrope-800.ttf") format("truetype");
}

.marketing-home {
  --ink: #172231;
  --muted: #596575;
  --blue: #1232a5;
  --blue-dark: #0c227d;
  --accent: #1232a5;
  --teal: var(--blue);
  --teal-dark: var(--blue-dark);
  --postal: #f7c928;
  --postal-hover: #ffda52;
  --paper: #fff;
  --canvas: #f4f6fa;
  --surface: #fff;
  --card: #fff;
  --line: #dfe4ed;
  --line-gray: #c9d1df;
  --line-blue: #d6dff3;
  --label: #53699b;
  --danger: #b42318;
  --blue-light: #e9eefb;
  --tint-home: #f4f6fc;
  --line-blue-mid: #a9b7d3;
  --green-dark: #236840;
  --on-accent: #fff;
  --on-bright: #172231;
  --navy-soft: #eef3f8;
  --underline: #abb4c5;
  --menu-shadow: 0 12px 22px #1722311a;
  --menu-radius: 12px;
  --surface-white: #fff;
  --radius: 6px;
  --area-gap: 12px;
  --footer-bg: #172231;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

html.dark .marketing-home {
  --ink: #e4e9f1;
  --muted: #a6b0c0;
  --paper: #10161f;
  --canvas: #0b1017;
  --surface: #161e2a;
  --card: #161e2a;
  --line: #2a3443;
  --line-gray: #323d4e;
  --line-blue: #2b3a62;
  --label: #a3b4dc;
  --danger: #ff9b8f;
  --blue-light: #1a2548;
  --accent: #9db2ff;
  --tint-home: #0e1420;
  --line-blue-mid: #3c4f86;
  --green-dark: #7fd59b;
  --navy-soft: #1c2838;
  --underline: #4b5566;
  --menu-shadow: 0 12px 22px #0006;
  --surface-white: #161e2a;
  --footer-bg: #070b11;
}

html[data-scheme="classic"] .marketing-home { --blue: #0f766e; --blue-dark: #115e59; --accent: #0f766e; }
html[data-scheme="trade"] .marketing-home { --blue: #2563eb; --blue-dark: #1d4ed8; --accent: #2563eb; }
html[data-scheme="services"] .marketing-home { --blue: #7c3aed; --blue-dark: #6d28d9; --accent: #7c3aed; }
html[data-scheme="energy"] .marketing-home { --blue: #e3a008; --blue-dark: #b87f06; --accent: #e3a008; --on-accent: #172231; }
html.dark[data-scheme="classic"] .marketing-home { --blue: #2dd4bf; --blue-dark: #5eead4; --accent: #2dd4bf; }
html.dark[data-scheme="trade"] .marketing-home { --blue: #3b82f6; --blue-dark: #60a5fa; --accent: #3b82f6; }
html.dark[data-scheme="services"] .marketing-home { --blue: #a78bfa; --blue-dark: #c4b5fd; --accent: #a78bfa; }
html.dark[data-scheme="energy"] .marketing-home { --blue: #e3a008; --blue-dark: #f0b94a; --accent: #e3a008; --on-accent: #172231; }
html[data-scheme="classic"] .marketing-home,
html[data-scheme="trade"] .marketing-home,
html[data-scheme="services"] .marketing-home,
html[data-scheme="energy"] .marketing-home {
  --blue-light: color-mix(in srgb, var(--blue) 14%, var(--paper));
  --tint-home: color-mix(in srgb, var(--blue) 5%, var(--paper));
  --line-blue-mid: color-mix(in srgb, var(--blue) 38%, var(--line));
}

.marketing-home a { color: inherit; text-decoration: none; }
.marketing-home button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.marketing-home label { display: flex; margin: 0; font-size: inherit; color: inherit; }
.marketing-home h1,
.marketing-home h2,
.marketing-home p { margin: 0; }
.marketing-home :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.mh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.marketing-home .mh-skip {
  position: fixed;
  z-index: 30;
  left: 16px;
  top: -100px;
  padding: 12px 20px;
  background: var(--blue);
  color: var(--on-accent);
}
.mh-skip:focus { top: 12px; }

.mh-site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.mh-header-bar {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.mh-deadline {
  position: relative;
  z-index: 1;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  padding-block: 8px;
}
.mh-deadline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  width: min(1280px, calc(100% - 96px));
  min-height: 48px;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.3;
}
.mh-deadline-today,
.mh-deadline-remain { margin: 0; }
.mh-deadline-remain { margin-left: auto; text-align: right; }
.marketing-home a.mh-deadline-remain { color: inherit; text-decoration: none; }
.mh-site-top:has(.mh-group:hover, .mh-group:focus-within, .mh-group.is-open, .mh-header-menu.is-open, .mh-lang-menu, .mh-account-panel) {
  z-index: 35;
}
.mh-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  column-gap: 28px;
  width: min(1280px, calc(100% - 96px));
  min-height: 76px;
  margin-inline: auto;
}
.mh-header-inner.has-choose {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
}
.mh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1;
}
.mh-brand img { width: 42px; height: 42px; }
.mh-brand-post { font-weight: 700; }

.mh-header-menu { display: contents; }
.mh-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  gap: 25px;
  min-width: 0;
}
.marketing-home .mh-nav-link,
.marketing-home .mh-nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 26px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.mh-nav-toggle svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.15s; }
.mh-nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mh-group { position: relative; display: flex; align-items: center; gap: 2px; }
.mh-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 30;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--menu-radius);
  box-shadow: var(--menu-shadow);
}
.mh-group:hover > .mh-sub,
.mh-group:focus-within > .mh-sub,
.mh-group.is-open > .mh-sub { display: block; }
.mh-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.mh-sub a:hover { background: var(--blue-light); color: var(--accent); }

.mh-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  grid-row: 1;
  grid-column: 3;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.has-choose .mh-ai { grid-column: 4; }
.mh-ai:hover { border-color: var(--accent); color: var(--accent); }
.mh-ai svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.marketing-home .mh-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: none;
}
.mh-menu-toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

.mh-lang { position: relative; grid-column: 4; grid-row: 1; justify-self: end; flex-shrink: 0; }
.has-choose .mh-lang { grid-column: 5; }
.marketing-home .mh-lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.marketing-home .mh-lang-button:hover,
.marketing-home .mh-lang-button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--surface-white); }
.marketing-home .mh-lang-button:focus-visible { outline-offset: 2px; }
.mh-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--menu-radius);
  box-shadow: var(--menu-shadow);
}
.mh-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.mh-lang-menu a:hover { background: var(--blue-light); color: var(--accent); }
.mh-lang-menu img {
  display: block;
  width: 21px;
  height: 14px;
  border-radius: 2px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
  object-fit: cover;
}

.mh-avatar { position: relative; grid-column: 5; grid-row: 1; justify-self: end; }
.has-choose .mh-avatar { grid-column: 6; }
.marketing-home .mh-avatar > button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--on-accent);
}
.marketing-home .mh-avatar > button:hover { background: var(--navy-soft); }
.marketing-home .mh-avatar > button[aria-expanded="true"],
.marketing-home .mh-avatar > button[aria-expanded="true"]:hover { border-color: var(--blue); background: var(--surface); }
.marketing-home .mh-avatar > button:focus-visible { outline-offset: 2px; }
.mh-avatar-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-accent);
}
.mh-avatar-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.mh-account-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: min(36rem, calc(100dvh - 6rem));
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--menu-radius);
  box-shadow: var(--menu-shadow);
}

.marketing-home .mh-choose {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  grid-row: 1;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--postal);
  color: var(--on-bright);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.marketing-home .mh-choose:hover { background: var(--postal-hover); color: var(--on-bright); }
.marketing-home .mh-choose img {
  width: 16px;
  height: 16px;
  transform-origin: center;
}
.marketing-home .mh-choose:hover img,
.marketing-home .mh-choose:focus-visible img {
  animation: mh-peppol-heartbeat 1.15s ease-in-out infinite;
}
@keyframes mh-peppol-heartbeat {
  0%, 46%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
  8% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 2px rgba(90, 160, 255, 0.8));
  }
  16% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
  28% {
    transform: scale(1.07);
    filter: drop-shadow(0 0 3px rgba(47, 111, 237, 0.85));
  }
}
@media (prefers-reduced-motion: reduce) {
  .marketing-home .mh-choose:hover img,
  .marketing-home .mh-choose:focus-visible img { animation: none; }
}

.mh-hero { padding: 33px 0 54px; background: linear-gradient(120deg, var(--surface) 45%, var(--tint-home)); }
.mh-hero-copy {
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.mh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--area-gap);
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.mh-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}
.mh-eyebrow span {
  border-right: 1px solid var(--line-blue-mid);
  padding-right: 12px;
  color: var(--muted);
  font-weight: 500;
}
.mh-hero h1 {
  max-width: 670px;
  font-size: clamp(43px, 4.45vw, 66px);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.06em;
}
.mh-hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}
.marketing-home .mh-lead {
  max-width: 520px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
.mh-lead strong { font-weight: 800; color: var(--blue); }
.mh-actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; margin-top: 34px; }
.marketing-home .mh-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}
.marketing-home .mh-primary:hover { background: var(--blue-dark); color: var(--on-accent); transform: translateY(-1px); }
.mh-text {
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--underline);
}
.marketing-home .mh-text:hover { color: var(--accent); text-decoration-color: var(--accent); }
.mh-trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  font-size: 11px;
  color: var(--muted);
}
.mh-trust i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
}

.mh-hero .finpost-invoice-conversion {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}
.mh-hero .finpost-invoice-conversion .conversion-flow { flex: 1 1 auto; }

@media (max-width: 1250px) {
  .mh-header-inner,
  .mh-deadline-inner,
  .mh-hero-grid { width: calc(100% - 64px); }
  .mh-nav { gap: 20px; }
}

@media (max-width: 1100px) {
  .mh-header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    grid-template-rows: 76px;
    gap: 0 10px;
    width: min(1280px, calc(100% - 64px));
    height: 76px;
    min-height: 76px;
  }
  .mh-header-inner.has-choose { grid-template-columns: minmax(0, 1fr) auto auto auto auto auto; }
  .mh-brand { grid-column: 1; font-size: 26px; }
  .mh-brand img { width: 38px; height: 38px; }
  .mh-choose { grid-column: 2; min-height: 44px; padding: 8px 11px; }
  .mh-ai { grid-column: 2; min-height: 44px; padding: 8px 11px; }
  .has-choose .mh-ai { grid-column: 3; }
  .mh-lang { grid-column: 3; }
  .has-choose .mh-lang { grid-column: 4; }
  .marketing-home .mh-menu-toggle { display: inline-flex; grid-column: 4; grid-row: 1; justify-self: end; }
  .has-choose .mh-menu-toggle { grid-column: 5; }
  .mh-avatar { grid-column: 5; }
  .has-choose .mh-avatar { grid-column: 6; }
  .mh-ai-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mh-header-menu { display: none; }
  .mh-header-menu.is-open {
    display: block;
    position: absolute;
    top: calc((76px + 44px) / 2 + 8px);
    right: 0;
    left: auto;
    z-index: 20;
    width: max-content;
    max-width: 100%;
    max-height: calc(100dvh - 77px);
    padding: 8px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--menu-radius);
    box-shadow: var(--menu-shadow);
  }
  .mh-nav {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: max-content;
    max-width: 100%;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .mh-group { display: block; }
  .mh-group:hover > .mh-sub,
  .mh-group:focus-within > .mh-sub { display: none; }
  .mh-group.is-open > .mh-sub { display: block; }
  .marketing-home .mh-nav-link,
  .marketing-home .mh-nav-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 15px;
    white-space: normal;
  }
  .marketing-home .mh-nav-link:hover,
  .marketing-home .mh-nav-toggle:hover { background: var(--blue-light); color: var(--accent); }
  .mh-sub,
  .mh-group:hover > .mh-sub,
  .mh-group:focus-within > .mh-sub {
    position: static;
    min-width: 0;
    padding: 0 0 4px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .mh-sub a { min-height: 44px; display: flex; align-items: center; padding: 10px 16px; white-space: normal; }
}

@media (max-width: 800px) {
  .mh-header-inner,
  .mh-header-inner.has-choose,
  .mh-deadline-inner { width: calc(100% - 40px); }
  .mh-hero { padding: 20px 0 40px; }
  .mh-hero-grid { grid-template-columns: 1fr; width: calc(100% - 40px); }
  .mh-hero .finpost-invoice-conversion { min-height: 0; }
  .mh-hero h1 { font-size: clamp(36px, 8vw, 52px); }
}

@media (max-width: 480px) {
  .mh-lang { display: none; }
}

.marketing-home .site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding-top: 45px;
}
.marketing-home .footer-top,
.marketing-home .footer-bottom {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.marketing-home .footer-top {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 45px;
  align-items: start;
  padding-bottom: 40px;
}
.marketing-home .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1;
}
.marketing-home .footer-brand img { width: 42px; height: 42px; }
.marketing-home .brand-post { font-weight: 700; }
.marketing-home .footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 280px;
}
.marketing-home .footer-brand-block > p {
  font-size: 13px;
  line-height: 1.8;
  color: #b3bdcc;
}
.marketing-home .footer-brand-block > p > strong { color: #fff; font-weight: 500; }
.marketing-home .footer-site { font-size: 12px; color: #d6dce6; }
.marketing-home .footer-site:hover,
.marketing-home .footer-site:focus-visible { color: var(--postal); }
.marketing-home .footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 36px;
}
.marketing-home .footer-col-heading {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  display: inline-block;
}
.marketing-home .footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marketing-home .footer-col a,
.marketing-home .footer-col button.footer-consent {
  font-size: 12px;
  color: #d6dce6;
  text-align: start;
}
.marketing-home .footer-col a:hover,
.marketing-home .footer-col a:focus-visible,
.marketing-home .footer-col button.footer-consent:hover,
.marketing-home .footer-col button.footer-consent:focus-visible { color: var(--postal); }
.marketing-home .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  border-top: 1px solid #ffffff20;
  font-size: 11px;
  color: #c1cad7;
}
.marketing-home .footer-bottom > a { text-decoration: none; }
@media (min-width: 1101px) {
  .marketing-home .footer-top { gap: 40px; }
  .marketing-home .footer-columns { gap: 28px 40px; }
}
@media (min-width: 801px) {
  .marketing-home .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
  .marketing-home .footer-bottom > :last-child { justify-self: end; }
}
@media (max-width: 1250px) {
  .marketing-home .footer-top,
  .marketing-home .footer-bottom { width: calc(100% - 64px); }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .marketing-home .footer-top { gap: 32px; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); }
  .marketing-home .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
}
@media (max-width: 800px) {
  .marketing-home .footer-top,
  .marketing-home .footer-bottom { width: calc(100% - 40px); }
  .marketing-home .footer-top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 30px; }
  .marketing-home .footer-brand-block { max-width: none; }
  .marketing-home .footer-columns { grid-template-columns: 1fr; gap: 28px; }
  .marketing-home .footer-col a,
  .marketing-home .footer-col button.footer-consent { font-size: 13px; }
  .marketing-home .footer-bottom { font-size: 10px; flex-wrap: wrap; gap: 14px; }
  .marketing-home .footer-bottom > span:nth-child(2) { display: none; }
}

@media (max-width: 360px) {
  .mh-header-inner,
  .mh-header-inner.has-choose { gap: 0 6px; }
  .mh-brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mh-ai { padding: 8px; gap: 0; }
  .mh-ai > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .marketing-home .mh-lang-button { height: 36px; min-width: 36px; padding: 0 8px; font-size: 11px; }
  .marketing-home .mh-avatar > button { width: 36px; height: 36px; }
}
.mh-articles { color: var(--ink); }
/* The fixed header already takes scroll-padding. An extra margin landed the
   "Ako to funguje" link on the lookup band above that section. */
html:has(body.marketing-home) {
  scroll-padding-top: calc(var(--site-top-height, 142px) + 16px);
}
.mh-articles .wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.mh-articles h2,
.mh-articles h3 { margin: 0; font-weight: 700; letter-spacing: -0.04em; line-height: 1.14; }
.mh-articles .section-heading .mh-eyebrow { margin-bottom: 4px; }
.mh-articles .section-heading h2 { margin-top: 4px; font-size: clamp(1.6rem, 3vw, 2.15rem); text-align: start; }
.mh-articles h3 { font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.mh-articles .section { padding-block: clamp(26px, 4.1vw, 51px); }
.mh-articles .section + .section { border-top: 1px solid var(--line); }
.mh-articles .section-heading { display: block; margin-bottom: clamp(14px, 2.6vw, 24px); text-align: start; }
.mh-articles .mh-article-link { display: inline-block; margin-top: 9px; }

.mh-articles .lookup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 46%);
  grid-template-areas:
    "art title search"
    "text text text";
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint-home);
}
.mh-articles .lookup .topic-art { grid-area: art; width: 56px; height: 52px; }
.mh-articles .lookup h2 { grid-area: title; font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
.mh-articles .lookup p { grid-area: text; margin: 0; color: var(--muted); font-size: 0.89rem; }
.mh-articles .lookup-search { grid-area: search; }
.mh-articles .lookup-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mh-articles .lookup-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mh-articles .lookup-field { position: relative; flex: 1; min-width: 0; }
.mh-articles .lookup-field input {
  width: 100%;
  height: 48px;
  padding: 10px 52px 10px 40px;
  border: 1px solid var(--line-gray);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.mh-articles .lookup-field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.mh-articles .lookup-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.mh-articles .lookup-search-icon .search-spark {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1;
  stroke-linejoin: round;
}
.mh-articles .lookup-filter {
  position: absolute;
  right: 2px;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  transform: translateY(-50%);
}
.mh-articles .lookup-filter:hover { background: var(--blue-light); color: var(--accent); }
.mh-articles .lookup-filter:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.mh-articles .lookup-filter svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.mh-articles .lookup-panel {
  position: absolute;
  z-index: 9;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(460px, 70vh);
  overflow: auto;
  border: 1px solid var(--line-gray);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px #0f1c3a24;
}
.mh-articles .lookup-panel[hidden] { display: none; }
.mh-articles .lookup-panel ul { margin: 0; padding: 0; list-style: none; }
.mh-articles .lookup-panel a {
  display: grid;
  gap: 4px;
  padding: 11px 16px;
  color: var(--ink);
  text-decoration: none;
}
.mh-articles .lookup-option + .lookup-option,
.mh-articles .lookup-group-block + .lookup-option { border-top: 1px solid var(--line); }
.mh-articles .lookup-group-block + .lookup-group-block { border-top: 1px solid var(--line); }
.mh-articles .lookup-group-block > ul > .lookup-option + .lookup-option { border-top: 1px solid var(--line); }
.mh-articles .lookup-panel a:hover,
.mh-articles .lookup-option[aria-selected="true"] > a { background: var(--blue-light); }
.mh-articles .lookup-group {
  margin: 0;
  padding: 10px 16px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mh-articles .lookup-group-block + .lookup-group-block > .lookup-group { margin-top: 4px; }
.mh-articles .lookup-hit-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mh-articles .lookup-hit-name { font-weight: 600; }
.mh-articles .lookup-hit-name b { font-weight: 800; color: var(--accent); }
.mh-articles .lookup-hit-meta,
.mh-articles .lookup-hit-brief { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mh-articles .lookup-hit-meta b,
.mh-articles .lookup-hit-brief b { font-weight: 800; color: var(--accent); }
.mh-articles .lookup-hit-brief { display: none; }
.mh-articles .lookup-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.mh-articles .lookup-tag.is-peppol { padding: 2px 3px; background: var(--blue-light); box-shadow: inset 0 0 0 1px var(--line-blue); }
.mh-articles .lookup-tag.is-peppol img { display: block; width: 12px; height: 12px; }
.mh-articles .lookup-tag.is-rpo { background: var(--blue-light); color: var(--label); }
.mh-articles .lookup-more { color: var(--accent); font-weight: 600; }
.mh-articles .lookup-status { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 14px; }
.mh-articles .lookup-status:empty { display: none; }
.mh-articles .lookup-status.is-error { color: var(--danger); }
@media (max-width: 767px) {
  .mh-articles .lookup-option.is-company .lookup-hit-meta { display: none; }
  .mh-articles .lookup-option.is-company .lookup-hit-brief { display: block; }
}

.mh-articles .flow,
.mh-articles .pair,
.mh-articles .related { display: grid; gap: var(--area-gap); }
.mh-articles .flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.mh-articles .flow-span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: var(--area-gap);
  padding: clamp(16px, 2.3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint-home);
  text-align: start;
}
.mh-articles .flow-span p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
}
.mh-articles .flow-span .mh-article-link { margin-top: 0; }
.mh-articles .flow li,
.mh-articles .card,
.mh-articles .guidance {
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.mh-articles .flow li { background: var(--surface); }
.mh-articles .flow .topic-art,
.mh-articles .card .topic-art { display: block; width: 80px; height: 60px; margin-bottom: 8px; }
.mh-articles .flow .topic-art.topic-invoice,
.mh-articles .flow .topic-art.topic-conversion { width: 109px; height: 54px; }
.mh-articles .flow .topic-art.topic-efaktura {
  width: min(186px, 100%);
  height: auto;
  aspect-ratio: 580 / 170;
}
.mh-articles .flow p strong { font-weight: 800; color: var(--ink); }
.mh-articles .flow p,
.mh-articles .card p,
.mh-articles .related p,
.mh-articles .guidance p,
.mh-articles .faq p { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.mh-articles .pair,
.mh-articles .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-articles .send { background: var(--blue-light); }
.mh-articles .receive {
  background: color-mix(in srgb, var(--green-dark) 12%, var(--card));
  border-color: color-mix(in srgb, var(--green-dark) 28%, var(--line));
}
.mh-articles .related { margin-top: var(--area-gap); }
.mh-articles .related article { padding: 10px 4px 3px; }
.mh-articles .related h3 { font-size: 1.08rem; }

.mh-articles .benefit {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: clamp(14px, 2vw, 23px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.mh-articles .benefit .topic-art { width: 52px; height: 44px; }
.mh-articles .benefit h3 { font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.mh-articles .benefit p { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.mh-articles .benefit p strong { font-weight: 800; color: var(--blue); }

.mh-articles .topic-art { color: var(--accent); }
.mh-articles .topic-art svg { display: block; width: 100%; height: 100%; }
.mh-articles .flow .topic-art svg { stroke: none; }
.mh-articles .flow .topic-art text { stroke: none; stroke-width: 0; }

.mh-articles .post-selection {
  display: grid;
  justify-items: center;
  padding-bottom: clamp(28px, 4vw, 44px);
}
.mh-articles .post-cta {
  display: grid;
  width: min(100%, 352px);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  padding: 13px clamp(12px, 3.5vw, 17px);
  border: 1px solid #d8aa20;
  border-radius: var(--radius);
  background: linear-gradient(113deg, #ffdf5d, #f8c735);
  box-shadow: inset 0 1px 0 #fff6c6, 0 2px 0 #d8aa20, 0 12px 24px -13px #9a6d20b8;
  color: var(--on-bright);
  font-weight: 500;
  text-decoration: none;
}
.mh-articles .post-cta:hover { background: linear-gradient(113deg, #ffe575, #ffcf40); }
.mh-articles .post-cta:active { box-shadow: inset 0 2px 5px #9a6d2040; }
.mh-articles .post-cta:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.mh-articles .post-icon,
.mh-articles .post-arrow { display: grid; place-items: center; }
.mh-articles .post-icon {
  width: clamp(42px, 13vw, 56px);
  aspect-ratio: 1;
  border: 1px solid #ffffffba;
  border-radius: 8px;
  background: #fff5cb;
}
.mh-articles .post-icon svg { width: 84%; height: auto; }
.mh-articles .post-label {
  display: grid;
  gap: 2px;
  justify-items: start;
  font-size: clamp(1rem, 5.1vw, 1.275rem);
  line-height: 1.2;
}
.mh-articles .post-label strong { font-size: inherit; font-weight: 800; letter-spacing: -0.025em; }
.mh-articles .post-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  margin-inline-start: 0.11em;
  vertical-align: top;
}
.mh-articles .post-brand img { width: 1.2em; height: 1.2em; }
.mh-articles .post-label > span { font-size: 0.793em; }
.mh-articles .post-arrow {
  width: clamp(32px, 10vw, 42px);
  aspect-ratio: 1;
  border: 1px solid #a376172e;
  border-radius: 8px;
  background: #fff5cb8c;
  color: #193397;
}
.mh-articles #post-destination { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 0.82rem; }

@media (prefers-reduced-motion: no-preference) {
  .mh-articles .post-note { animation: post-note-peek 900ms 200ms both; }
  .mh-articles .post-note-paper,
  .mh-articles .post-arrow svg { transition: transform 220ms ease; }
  .mh-articles .post-cta:is(:hover, :focus-visible) .post-note-paper { transform: translateY(-4px); }
  .mh-articles .post-cta:is(:hover, :focus-visible) .post-arrow svg { transform: translate(2px, -2px); }
}

@keyframes post-note-peek {
  40%, 58% { transform: translateY(-6px); }
}

.mh-articles .accountants {
  margin-bottom: clamp(22px, 3.2vw, 38px);
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint-home);
  cursor: pointer;
}
.mh-articles .accountants a { cursor: pointer; }
.mh-articles .accountants-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.mh-articles .accountants h2 { font-size: clamp(1.42rem, 2.6vw, 1.92rem); }
.mh-articles .accountants .mh-article-link { margin: 0; }
.mh-articles .accounting-scene { position: relative; isolation: isolate; }
.mh-articles .accounting-routes {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  display: block;
  width: 100%;
  height: 116px;
  color: var(--accent);
}
.mh-articles .accounting-data { position: absolute; inset: 0; pointer-events: none; }
.mh-articles .accounting-packet {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 7px;
  border: 1px solid var(--paper);
  border-radius: 4px;
  background: linear-gradient(90deg, transparent 57%, #ffffff90 57% 70%, transparent 70%), var(--packet-color);
  box-shadow: 0 0 6px var(--packet-color);
  opacity: 0;
}
.mh-articles .accounting-packet-in { --packet-color: #278269; offset-path: var(--accounting-incoming); }
.mh-articles .accounting-packet-out { --packet-color: var(--accent); offset-path: var(--accounting-outgoing); }
.mh-articles .accounting-packet:nth-child(even) { width: 10px; height: 5px; }

@media (prefers-reduced-motion: no-preference) {
  .mh-articles .accounting-scene.is-in-view .accounting-packet { animation: accounting-packet-transfer 1.8s linear both; }
  .mh-articles .accounting-scene.is-in-view .accounting-packet:nth-child(1) { animation-delay: 0.15s; }
  .mh-articles .accounting-scene.is-in-view .accounting-packet:nth-child(2) { animation-delay: 0.53s; }
  .mh-articles .accounting-scene.is-in-view .accounting-packet:nth-child(3) { animation-delay: 1.95s; }
  .mh-articles .accounting-scene.is-in-view .accounting-packet:nth-child(4) { animation-delay: 2.33s; }
  .mh-articles .accounting-scene.is-beating .accounting-peppol { animation: mh-peppol-heartbeat 1.15s ease-in-out infinite; }
}

@keyframes accounting-packet-transfer {
  0% { offset-distance: 0%; opacity: 0; }
  12%, 87% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.mh-articles .accounting-flow,
.mh-articles .programs { margin: 0; padding: 0; list-style: none; }
.mh-articles .accounting-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--area-gap); }
.mh-articles .accounting-flow > li {
  display: grid;
  grid-template-rows: 116px auto 1fr;
  justify-items: center;
  align-items: start;
  gap: 4px;
  min-width: 0;
  text-align: center;
}
.mh-articles .accounting-flow h3 { font-size: 1rem; }
.mh-articles .accounting-flow p { max-width: 32ch; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.mh-articles .accounting-art {
  position: relative;
  display: grid;
  width: min(100%, 220px);
  height: 100%;
  place-items: center;
}
.mh-articles .accounting-documents { display: flex; align-items: center; justify-content: center; }
.mh-articles .client-paper {
  position: relative;
  display: flex;
  width: 60px;
  height: 74px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5px 7px;
  border: 1px solid var(--line-blue-mid);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 4px 10px #1b37881f;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}
.mh-articles .client-paper::before {
  height: 18px;
  margin-bottom: 8px;
  background: repeating-linear-gradient(to bottom, var(--line-blue-mid) 0 2px, transparent 2px 7px);
  content: "";
}
.mh-articles .client-paper:first-child { transform: translate(3px, 2px) rotate(-14deg); }
.mh-articles .client-paper:last-child {
  border-color: color-mix(in srgb, var(--green-dark) 45%, var(--line));
  background: color-mix(in srgb, var(--green-dark) 8%, var(--paper));
  transform: translateY(-4px) rotate(11deg);
}
.mh-articles .doc-mark {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  display: block;
  width: 20px;
  height: 24px;
  line-height: 0;
}
.mh-articles .doc-mark svg { display: block; width: 20px; height: 24px; }
.mh-articles .doc-mark-xml svg {
  fill: none;
  stroke: #a4efbb;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mh-articles .accounting-cloud > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--blue-light);
  stroke: var(--line-blue-mid);
  stroke-width: 0.65;
}
.mh-articles .accounting-cloud > img.accounting-symbol { position: relative; width: 66px; }
.mh-articles .accounting-peppol {
  position: absolute;
  top: 22%;
  right: 26%;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform-origin: center;
}
.mh-articles .accounting-file {
  position: absolute;
  left: calc(50% + 21px);
  bottom: 23px;
  padding: 4px 7px;
  border: 1px solid var(--line-blue-mid);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font: 800 0.67rem/1.4 monospace;
  transform: rotate(8deg);
}
.mh-articles .programs {
  position: relative;
  display: grid;
  width: min(100%, 220px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 4px;
}
.mh-articles .programs li {
  display: grid;
  width: 70px;
  max-width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 0.78rem;
}
.mh-articles .programs img { width: 78%; height: auto; }
.mh-articles .program-pohoda { margin-top: 10px; }
.mh-articles .programs .program-kros { border-color: #000a4d; background: #000a4d; }
.mh-articles .program-kros img { width: 84%; }
.mh-articles .program-mrp { margin-top: 14px; }
.mh-articles .program-mrp img { width: 70%; }
.mh-articles .programs .program-other {
  grid-column: 1 / -1;
  width: auto;
  aspect-ratio: auto;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}

.mh-articles .information { border-block: 1px solid var(--line); background: var(--tint-home); }
.marketing-home .mh-sources { border-block: 1px solid var(--line); background: var(--tint-home); }
.marketing-home .mh-sources .sources-section {
  box-sizing: border-box;
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
  border-top: 0;
}
.marketing-home .mh-sources .source-note {
  max-width: none;
  width: 100%;
}
.mh-articles .info-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.mh-articles .info-heading .section-heading { margin-bottom: 0; }
.mh-articles .info-heading p { margin-top: 5px; color: var(--muted); font-size: 0.93rem; }
.mh-articles .info-topics,
.mh-articles .info-links { margin: 0; padding: 0; list-style: none; }
.mh-articles .info-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--area-gap); }
.mh-articles .info-topics li { display: grid; }
.mh-articles .info-topics a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.mh-articles .info-topics a:hover { border-color: var(--line-blue-mid); background: var(--surface); }
.mh-articles .info-topics .topic-art { width: 40px; height: 38px; }
.mh-articles .info-topics strong,
.mh-articles .info-topics a > span > span { display: block; }
.mh-articles .info-topics strong { color: var(--ink); line-height: 1.28; }
.mh-articles .info-topics a:hover strong { color: var(--accent); }
.mh-articles .info-topics a > span > span { margin-top: 3px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.mh-articles .info-arrow { align-self: start; color: var(--accent); font-size: 0.83rem; }
.mh-articles .info-reading { margin-top: var(--area-gap); }
.mh-articles .info-reading > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.mh-articles .info-reading h3 { margin-bottom: 5px; font-size: 1rem; }
.mh-articles .info-links li + li { border-top: 1px solid var(--line); }
.mh-articles .info-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 10px;
  padding: 7px 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}
.mh-articles .info-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mh-articles .info-links time { grid-column: 1 / -1; color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.mh-articles .guidance { background: var(--tint-home); }
.mh-articles .faq { border-top: 1px solid var(--line); }
.mh-articles .faq details { padding: 10px 3px; border-bottom: 1px solid var(--line); }
.mh-articles .faq summary { color: var(--ink); font-size: 0.93rem; font-weight: 800; cursor: pointer; }
.mh-articles .faq p { padding-left: 17px; }

@media (max-width: 1250px) {
  .mh-articles .wrap,
  .marketing-home .mh-sources .sources-section { width: calc(100% - 64px); }
}
@media (max-width: 800px) {
  .mh-articles .wrap,
  .marketing-home .mh-sources .sources-section { width: calc(100% - 40px); }
}

@media (max-width: 760px) {
  .mh-articles .lookup {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "art title"
      "text text"
      "search search";
    row-gap: 10px;
  }
  .mh-articles .info-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .mh-articles .accounting-routes { display: none; }
  .mh-articles .accounting-flow { grid-template-columns: minmax(0, 1fr); gap: var(--area-gap); }
  .mh-articles .accounting-flow > li {
    position: relative;
    grid-template: auto auto / minmax(86px, 36%) minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 3px 8px;
    text-align: left;
  }
  .mh-articles .accounting-flow > li + li::before {
    position: absolute;
    top: -10px;
    left: calc(18% - 4px);
    width: 8px;
    height: 8px;
    border: solid var(--accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    content: "";
  }
  .mh-articles .accounting-art { grid-area: 1 / 1 / span 2; height: 74px; align-self: center; }
  .mh-articles .accounting-flow h3 { align-self: end; }
  .mh-articles .client-paper { width: 43px; height: 49px; padding: 3px 4px; font-size: 0.55rem; }
  .mh-articles .client-paper::before { height: 10px; margin-bottom: 4px; }
  .mh-articles .accounting-cloud > img.accounting-symbol { width: 43px; }
  .mh-articles .accounting-peppol { width: 14px; height: 14px; }
  .mh-articles .accounting-file { left: calc(50% + 10px); bottom: 14px; padding: 2px 4px; font-size: 0.55rem; }
  .mh-articles .accounting-flow > li:last-child { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
  .mh-articles .accounting-flow > li:last-child .accounting-art { grid-area: auto; height: auto; margin-bottom: 4px; }
  .mh-articles .programs li { width: 63px; }
}

@media (max-width: 540px) {
  .mh-articles .flow,
  .mh-articles .pair,
  .mh-articles .related { grid-template-columns: minmax(0, 1fr); }
  .mh-articles .flow li { display: grid; grid-template-columns: 54px 1fr; gap: 4px 10px; }
  .mh-articles .flow li:has(.topic-invoice),
  .mh-articles .flow li:has(.topic-conversion),
  .mh-articles .flow li:has(.topic-efaktura) { grid-template-columns: minmax(0, 1fr); }
  .mh-articles .flow .topic-art { grid-row: span 2; width: 54px; height: 54px; margin-bottom: 0; }
  .mh-articles .flow .topic-art.topic-invoice,
  .mh-articles .flow .topic-art.topic-conversion,
  .mh-articles .flow .topic-art.topic-efaktura { grid-row: auto; margin-bottom: 8px; }
  .mh-articles .flow p { margin-top: 0; }
  .mh-articles .card .topic-art { height: 48px; }
  .mh-articles .benefit { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 440px) {
  .mh-articles .info-topics { grid-template-columns: minmax(0, 1fr); }
}
.finpost-invoice-conversion {
  --ink: #18223c;
  --muted: #49556a;
  --white: #fff;
  position: relative;
  container-type: inline-size;
  min-width: 0;
  padding: clamp(14px, 2vw, 23px);
  padding-top: 11px;
  border: 1px solid #cfd2ed;
  border-radius: 6px;
  background: #f0f0fb;
  color: var(--ink);
  font: 16px/1.6 inherit;
}
.finpost-invoice-conversion *, .finpost-invoice-conversion *::before, .finpost-invoice-conversion *::after { box-sizing: border-box; }
.finpost-invoice-conversion [hidden] { display: none !important; }
.finpost-invoice-conversion :is(h2, h3, p, dl, dd) { margin: 0; }
.finpost-invoice-conversion :is(h2, h3) { font-weight: 800; line-height: 1.15; }
.finpost-invoice-conversion button:focus-visible { outline: 3px solid #4163cc; outline-offset: 2px; }
:where(.finpost-invoice-conversion) .conversion-heading h2 { font-size: clamp(1.25rem, 4.15cqi, 2rem); text-wrap: balance; }
.finpost-invoice-conversion .conversion-promise { display: block; color: var(--accent, #1232a5); }
:where(.finpost-invoice-conversion) .conversion-heading { margin-top: 0; }
:where(.finpost-invoice-conversion) .document-icons { position: absolute; overflow: hidden; }
:where(.finpost-invoice-conversion) .formats { margin: 12px 0; }
:where(.finpost-invoice-conversion) .formats > div { display: flex; flex-wrap: wrap; gap: 6px; }
:where(.finpost-invoice-conversion) .format-pdf { --file-accent: #9e3c4d; --file-tint: #fbe9e9; }
:where(.finpost-invoice-conversion) .format-xls { --file-accent: #196242; --file-tint: #e1f4e6; }
:where(.finpost-invoice-conversion) .format-jpg { --file-accent: #8b4f15; --file-tint: #fff0d9; }
:where(.finpost-invoice-conversion) .format-docx { --file-accent: #205197; --file-tint: #e2eeff; }
:where(.finpost-invoice-conversion) .format-qr { --file-accent: #2d4255; --file-tint: #e7eef4; }
:where(.finpost-invoice-conversion) .format-upload { --file-accent: #203c9b; --file-tint: #e5ebff; }
.finpost-invoice-conversion .format {
  display: grid;
  width: 46px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #c6cfe4;
  border-radius: 6px;
  background: var(--white);
  color: var(--file-accent);
  cursor: pointer;
}
.finpost-invoice-conversion .format:hover,
.finpost-invoice-conversion .format[aria-pressed="true"] { background: var(--file-tint); }
.finpost-invoice-conversion .format[aria-pressed="true"] { border-color: var(--file-accent); box-shadow: inset 0 -3px var(--file-accent); }
.finpost-invoice-conversion .format svg { width: 29px; height: 34px; }
.finpost-invoice-conversion .upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--teal, #1232a5);
  color: var(--on-accent, #fff);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.finpost-invoice-conversion .upload-button:hover { background: var(--teal-dark, #0c227d); }
.finpost-invoice-conversion .upload-button svg { flex: none; width: 18px; height: 18px; }
:where(.finpost-invoice-conversion) .formats .upload-formats { margin-top: 5px; color: var(--muted); font-size: .69rem; }

:where(.finpost-invoice-conversion) .conversion-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(82px, 15%, 105px) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 5px;
  padding: 12px 10px 14px;
  border: 1px solid #d8e0f3;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 24% 50%, #d7f8f2, transparent 54%),
    radial-gradient(ellipse at 54% 48%, #ebe2ff, transparent 66%),
    #f8f8fe;
}
:where(.finpost-invoice-conversion) .flow-stage { display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; width: 100%; min-width: 0; justify-items: stretch; align-items: stretch; }
:where(.finpost-invoice-conversion) .source-stage { grid-column: 1; }
:where(.finpost-invoice-conversion) .output-stage { grid-column: 3; grid-row: 1 / span 3; }
:where(.finpost-invoice-conversion) .flow-stage h3 { justify-self: center; color: #35466d; font-size: .75rem; font-weight: 800; letter-spacing: 0; text-align: center; }
:where(.finpost-invoice-conversion) .xml-file {
  width: 100%;
  height: 100%;
  min-height: 227px;
  padding: 9px;
  border: 1px solid;
  border-radius: 6px;
}
:where(.finpost-invoice-conversion) .source-file {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 227px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid #b9c8e3;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 3px 5px 0 #dbe4f8, 0 7px 15px #243b6612;
}
:where(.finpost-invoice-conversion) .source-file::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 17px;
  height: 17px;
  border-radius: 0 6px 0 4px;
  background: var(--file-tint);
  box-shadow: -1px 1px #b9c8e3;
  content: "";
}
:where(.finpost-invoice-conversion) .source-file.is-drop {
  padding: 0;
  border-color: #e4e9f2;
  background: #f7f8fc;
  box-shadow: none;
}
:where(.finpost-invoice-conversion) .source-file.is-drop::after { content: none; }
.finpost-invoice-conversion .drop-prompt {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 20px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #3d4a5c;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}
.finpost-invoice-conversion .drop-prompt svg { width: 36px; height: 36px; color: #7b8ba0; }
:where(.finpost-invoice-conversion) .source-heading, :where(.finpost-invoice-conversion) .xml-heading { display: flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; line-height: 1.18; }
:where(.finpost-invoice-conversion) .source-heading { padding-right: 10px; color: var(--file-accent); }
:where(.finpost-invoice-conversion) .file-icon { flex: none; width: 23px; height: 27px; }
:where(.finpost-invoice-conversion) .xml-heading .file-icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:where(.finpost-invoice-conversion) .invoice-view { display: grid; gap: 8px; margin-top: 9px; color: var(--muted); font-size: .71rem; line-height: 1.32; }
:where(.finpost-invoice-conversion) .format-jpg .invoice-view {
  padding: 6px 5px;
  background: linear-gradient(#f7f2e5ba, #f7f2e5ba), repeating-linear-gradient(0deg, #c8b89b 0 1px, #fff 1px 4px);
  border: 1px dashed #b88854;
  border-radius: 4px;
}
:where(.finpost-invoice-conversion) .format-docx .invoice-view { padding-left: 6px; border-left: 3px solid var(--file-tint); }
:where(.finpost-invoice-conversion) .invoice-number { padding-block: 5px; border-block: 1px solid var(--file-tint); color: var(--ink); overflow-wrap: anywhere; }
:where(.finpost-invoice-conversion) .source-total { display: grid; gap: 2px; margin-top: 1px; padding-top: 5px; border-top: 1px solid #e0e5ef; }
:where(.finpost-invoice-conversion) .source-total strong { color: var(--file-accent); font-size: .86rem; }
:where(.finpost-invoice-conversion) .sheet-view { width: 100%; margin-top: 7px; border-collapse: collapse; table-layout: fixed; font-size: .65rem; line-height: 1.25; }
:where(.finpost-invoice-conversion) .sheet-view th, :where(.finpost-invoice-conversion) .sheet-view td { padding: 4px 3px; border: 1px solid #dbe7e5; overflow-wrap: anywhere; text-align: left; }
:where(.finpost-invoice-conversion) .sheet-view th { background: var(--file-tint); color: var(--file-accent); }
:where(.finpost-invoice-conversion) .sheet-view th:first-child { width: 34%; }
:where(.finpost-invoice-conversion) .source-file > :is(.invoice-view, .sheet-view, .qr-view, .upload-view) {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
:where(.finpost-invoice-conversion) .qr-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  /* Intrinsic image height must not stretch the shared card row. */
  contain: size;
}
:where(.finpost-invoice-conversion) .qr-view img {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
:where(.finpost-invoice-conversion) .qr-view img:first-child { max-height: calc(100% - 40px); }
:where(.finpost-invoice-conversion) .qr-view img:last-child { flex: none; max-height: 32px; }
:where(.finpost-invoice-conversion) .source-file.is-sample-done::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: #6d7684;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  content: "";
  animation: sample-dim 2s linear forwards;
}
:where(.finpost-invoice-conversion) .source-file.is-sample-done .drop-prompt {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: transparent;
  color: #18223c;
  opacity: 0;
  animation: sample-label-in 2s linear forwards;
}
:where(.finpost-invoice-conversion) .source-file.is-sample-done .drop-prompt svg {
  color: #18223c;
  opacity: 1;
}
@keyframes sample-dim { to { opacity: 0.5; } }
/* A black-and-white QR stays too busy under a 50% grey veil, so the label cannot be read. */
:where(.finpost-invoice-conversion) .source-file.format-qr.is-sample-done::before {
  background: #f3f5f8;
  animation-name: sample-dim-qr;
}
@keyframes sample-dim-qr { to { opacity: 0.94; } }
@keyframes sample-label-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :where(.finpost-invoice-conversion) .source-file.is-sample-done::before,
  :where(.finpost-invoice-conversion) .source-file.is-sample-done .drop-prompt {
    animation-duration: 2s;
    animation-play-state: running;
  }
}
:where(.finpost-invoice-conversion) .format-upload .source-heading p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* An uploaded preview fits the card of the samples and never stretches the shared card row. */
:where(.finpost-invoice-conversion) .upload-view { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; contain: size; }
:where(.finpost-invoice-conversion) .preview-window {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d8e2e9;
  border-radius: 4px;
  background: #f8faff;
  color: var(--ink);
  font-size: .67rem;
  line-height: 1.4;
}
:where(.finpost-invoice-conversion) .preview-window img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
}
/* A PDF page fills the Predloha width; a tall page is cut at the fixed card bottom. */
:where(.finpost-invoice-conversion) .preview-window canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
:where(.finpost-invoice-conversion) .preview-window .sheet-view { margin: 0; }
:where(.finpost-invoice-conversion) .preview-window .sheet-view th:first-child { width: auto; }
:where(.finpost-invoice-conversion) .preview-word { padding: 7px; background: #fff; overflow-wrap: anywhere; }
:where(.finpost-invoice-conversion) .preview-word p + p { margin-top: 4px; }
:where(.finpost-invoice-conversion) .preview-note { color: var(--muted); font-size: .65rem; line-height: 1.35; overflow-wrap: anywhere; }
:where(.finpost-invoice-conversion) .invoice-view,
:where(.finpost-invoice-conversion) .sheet-view,
:where(.finpost-invoice-conversion) .qr-view { position: relative; }
:where(.finpost-invoice-conversion) .upload-gauge {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(24 34 60 / 0.16);
  pointer-events: none;
}
:where(.finpost-invoice-conversion) .upload-gauge > span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #1232a5;
  transition: width 200ms linear;
}

:where(.finpost-invoice-conversion) .scan-beam {
  position: absolute;
  inset-inline: 1px;
  top: 3%;
  z-index: 1;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  background: #e53246;
  box-shadow: 0 0 6px 1px #ff515e87;
}
.finpost-invoice-conversion[data-phase="working"] .source-file {
  border-color: #dc7787;
  box-shadow: 0 0 0 3px #ff515e24, 3px 5px 0 #e8d3de;
}
:where(.finpost-invoice-conversion) .scan-sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
:where(.finpost-invoice-conversion) .spark {
  position: absolute;
  translate: -50% -50%;
  opacity: 0;
  fill: #7153db;
  filter: drop-shadow(0 0 4px #b693f8);
}
:where(.finpost-invoice-conversion) .spark:nth-child(3n + 2) { fill: #a5388a; }
:where(.finpost-invoice-conversion) .spark:nth-child(3n) { fill: #9a58ce; }
:where(.finpost-invoice-conversion) .scan-indicator {
  display: grid;
  grid-area: 2 / 2;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: 100%;
  height: 100%;
}
:where(.finpost-invoice-conversion) .processor-mark {
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #d5cef0;
  border-radius: 8px;
  background: #f8f6ff;
  box-shadow: 0 4px 11px #4c3d7e19;
}
:where(.finpost-invoice-conversion) .processor-mark img { display: block; width: 62px; height: auto; }
.finpost-invoice-conversion[data-phase="transferring"] .processor-mark {
  border-color: #927af0;
  box-shadow: 0 0 0 4px #927af032, 0 4px 14px #927af067;
}
:where(.finpost-invoice-conversion) .transfer-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
:where(.finpost-invoice-conversion) .transfer-token {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 8px;
  border: 1px solid #a793ef;
  border-radius: 999px;
  background: #f2eaff;
  color: #45338c;
  box-shadow: 0 0 10px #9075e989;
  font-size: .71rem;
  font-weight: 800;
  line-height: 1.35;
  max-width: min(180px, 55%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.finpost-invoice-conversion) .xml-file { border-color: #182f65; background: #142554; color: #f0f4ff; box-shadow: 3px 5px 0 #cfdaef; }
:where(.finpost-invoice-conversion) .xml-heading { padding-bottom: 5px; border-bottom: 1px solid #ffffff32; }
:where(.finpost-invoice-conversion) .xml-heading .file-icon, :where(.finpost-invoice-conversion) .xml-heading span { color: #a4efbb; }
:where(.finpost-invoice-conversion) .xml-heading span { display: block; margin-top: 2px; font-size: .65rem; }
:where(.finpost-invoice-conversion) .xml-fields { margin-top: 5px; }
:where(.finpost-invoice-conversion) .xml-fields > div + div { margin-top: 4px; }
:where(.finpost-invoice-conversion) .xml-fields dt { color: #d3dffc; font-size: .68rem; }
:where(.finpost-invoice-conversion) .xml-fields dd { font-size: .68rem; line-height: 1.33; overflow-wrap: anywhere; }
:where(.finpost-invoice-conversion) .xml-fields code { color: #f0f4ff; font-family: Consolas, monospace; }
:where(.finpost-invoice-conversion) .xml-slot {
  display: inline-grid;
  max-width: 100%;
  grid-template-areas: "value";
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 1px dashed #8296c7;
  border-radius: 2px;
  background: #273e73;
  color: #152d31;
}
:where(.finpost-invoice-conversion) .xml-slot::before, :where(.finpost-invoice-conversion) .xml-slot > span { grid-area: value; }
:where(.finpost-invoice-conversion) .xml-slot::before { visibility: hidden; content: attr(data-value); }
:where(.finpost-invoice-conversion) .xml-slot.filled { border-bottom-color: transparent; background: #a4efbb; }
:where(.finpost-invoice-conversion) .conversion-actions { display: grid; gap: 4px; margin-top: 10px; }
:where(.finpost-invoice-conversion) .conversion-status { min-height: 1.5em; color: var(--muted); font-size: .76rem; white-space: pre-line; }
.finpost-invoice-conversion[data-phase="error"] .conversion-status { color: var(--muted); }
:where(.finpost-invoice-conversion) .demo-note { color: var(--muted); font-size: .72rem; }
:where(.finpost-invoice-conversion) .conversion-offer { display: grid; gap: 6px; }
.finpost-invoice-conversion .download-xml, .finpost-invoice-conversion .register-link {
  justify-self: start;
  border: 0;
  border-radius: 6px;
  background: var(--accent, #1232a5);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.finpost-invoice-conversion .download-xml {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
}
.finpost-invoice-conversion .download-xml svg { width: 18px; height: 18px; flex: none; }
.finpost-invoice-conversion .download-xml[hidden] { display: none; }
.finpost-invoice-conversion #conversion-offer .register-link,
.finpost-invoice-conversion #office-upsell .register-link {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--teal, #1232a5);
  color: var(--on-accent, #fff);
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none;
}
.finpost-invoice-conversion #conversion-offer .register-link:hover,
.finpost-invoice-conversion #office-upsell .register-link:hover,
.finpost-invoice-conversion #conversion-offer .register-link:active,
.finpost-invoice-conversion #office-upsell .register-link:active { background: var(--teal-dark, #0c227d); color: var(--on-accent, #fff); }
.finpost-invoice-conversion .register-note { color: var(--ink); font-size: .8rem; }
.finpost-invoice-conversion .invoice-error,
.finpost-invoice-conversion .office-upsell {
  position: absolute;
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 6;
  align-self: center;
  justify-self: stretch;
  left: 0;
  right: 0;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}
.finpost-invoice-conversion .invoice-error[hidden],
.finpost-invoice-conversion .office-upsell[hidden] { display: none; }
.finpost-invoice-conversion .invoice-error-card,
.finpost-invoice-conversion .office-upsell-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--accent, #1232a5);
  border-radius: 6px;
  background: #fff;
  color: #18223c;
  box-shadow: 0 10px 28px rgb(24 34 60 / 0.18);
}
.finpost-invoice-conversion .message-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent, #1232a5);
  border-radius: 6px;
  background: transparent;
  color: #49556a;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.finpost-invoice-conversion .message-close:hover { background: rgb(24 34 60 / 0.06); }
.finpost-invoice-conversion .invoice-error-card h2,
.finpost-invoice-conversion .office-upsell-card h2 { margin: 0; padding-right: 24px; color: #18223c; font-size: .92rem; line-height: 1.3; }
.finpost-invoice-conversion .invoice-error-card p {
  margin: 0;
  max-height: min(180px, 40vh);
  overflow: auto;
  padding-right: 24px;
  color: #18223c;
  font-size: .75rem;
  line-height: 1.4;
  white-space: pre-line;
}
.finpost-invoice-conversion .office-upsell-card p { margin: 0; padding-right: 24px; color: #18223c; font-size: .8rem; line-height: 1.4; }
.finpost-invoice-conversion .invoice-error-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  box-sizing: border-box;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #b42318;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.finpost-invoice-conversion .invoice-error-ok:hover { background: #912018; color: #fff; }
.finpost-invoice-conversion .peppol-adjust { margin: 0; color: var(--ink); }
.finpost-invoice-conversion #conversion-offer.is-warning .register-link {
  background: #e99a00;
  color: #172231;
}
.finpost-invoice-conversion #conversion-offer.is-warning .register-link:hover,
.finpost-invoice-conversion #conversion-offer.is-warning .register-link:active {
  background: #d98c00;
  color: #172231;
}

.finpost-invoice-conversion .drop-overlay {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 2px dashed var(--accent, #1232a5);
  border-radius: 6px;
  background: rgb(229 235 255 / .95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--accent, #1232a5);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  animation: finpost-drop-overlay-in .12s ease-out;
}
.finpost-invoice-conversion .drop-overlay > * { pointer-events: none; }
.finpost-invoice-conversion .drop-overlay svg { width: 48px; height: 48px; }
@keyframes finpost-drop-overlay-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .finpost-invoice-conversion .drop-overlay { animation: none; }
}

@container (max-width: 490px) {
  :where(.finpost-invoice-conversion) .conversion-flow {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto 1fr auto;
  }
  :where(.finpost-invoice-conversion) .scan-indicator { grid-area: 3 / 1; width: auto; height: auto; margin-block: 6px; }
  :where(.finpost-invoice-conversion) .output-stage { grid-area: 4 / 1 / span 3; }
  .finpost-invoice-conversion .invoice-error,
  .finpost-invoice-conversion .office-upsell { grid-row: 2 / 6; }
}

@container (max-width: 300px) {
  :where(.finpost-invoice-conversion) .conversion-flow { padding-inline: 7px; }
  :where(.finpost-invoice-conversion) .xml-file { padding: 7px; }
}

/* The countdown uses the same width as the header row. */
.site-top .mh-deadline-inner { width: min(var(--container), calc(100% - 96px)); }
@media (max-width: 1250px) {
  .site-top .mh-deadline-inner { width: calc(100% - 64px); }
}
@media (max-width: 800px) {
  .site-top .mh-deadline-inner { width: calc(100% - 40px); }
}
