:root {
  /* e首發票客製樣式。Tailwind CDN 已移除，樣式集中於本檔維護。 */
  --einv-primary: #2563eb;
  --einv-primary-dark: #1d4ed8;
  --einv-accent: #f59e0b;
  --einv-ink: #1f2937;
  --einv-muted: #667085;
  --einv-soft-blue: #eff6ff;
  --einv-soft-amber: #fff7ed;
  --einv-card: #ffffff;
  --einv-border: #dbeafe;
}

[data-md-color-scheme="slate"] {
  --einv-ink: #f8fafc;
  --einv-muted: #cbd5e1;
  --einv-soft-blue: #172554;
  --einv-soft-amber: #431407;
  --einv-card: #111827;
  --einv-border: #1e3a8a;
}

.md-header {
  min-height: 4.45rem;
  border-bottom: 1px solid rgba(255, 141, 67, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 0.2rem 0.85rem rgba(28, 92, 148, 0.1);
}

.md-header::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.16rem;
  background: linear-gradient(90deg, #1f3b35, #0b8bdb 42%, #ff8a34);
  content: "";
}

.md-header__inner {
  width: min(100% - 2rem, 62rem);
  min-height: 4.45rem;
  padding: 0;
}

.md-header__button.md-logo {
  position: relative;
  width: auto;
  height: 4.45rem;
  margin: 0 1.35rem 0 0;
  padding: 0 1.5rem 0 0;
  border-radius: 0;
  background: transparent;
}

.md-header__button.md-logo::after {
  position: absolute;
  top: 0.85rem;
  right: 0;
  width: 1px;
  height: 2.75rem;
  background: rgba(132, 179, 218, 0.36);
  content: "";
}

.md-header__button.md-logo svg {
  display: none;
}

.einv-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
}

.einv-header-brand__mark {
  display: inline-flex;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.einv-header-brand__mark img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  object-position: left center;
}

.einv-header-brand__text {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.einv-header-brand__title {
  color: #0874e8;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.einv-header-brand__subtitle {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.md-header__title {
  display: none;
}

.md-header__topic {
  color: #0e5ca8;
}

.md-header__button {
  color: #0e5ca8;
}

.md-header__button:hover {
  color: #e86b18;
  opacity: 1;
}

.md-search__form {
  border: 1px solid rgba(132, 179, 218, 0.28);
  border-radius: 0.5rem;
  background: #f6fbff;
  box-shadow: none;
}

.md-search__input {
  color: #182230;
}

.md-search__input::placeholder {
  color: #667085;
}

.md-tabs {
  border-bottom: 1px solid rgba(132, 179, 218, 0.18);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: none;
}

.md-tabs__inner {
  width: min(100% - 2rem, 62rem);
  margin: 0 auto;
}

.md-tabs__list {
  gap: clamp(1.1rem, 2.35vw, 2.25rem);
}

.md-tabs__link {
  position: relative;
  margin-top: 0;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 800;
  opacity: 1;
}

.md-tabs__link:hover {
  color: #e86b18;
}

.md-tabs__item--active .md-tabs__link,
.md-tabs__link--active {
  color: #0e5ca8;
}

.md-tabs__item--active .md-tabs__link::after,
.md-tabs__link--active::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a34, #ffb15f);
  box-shadow: 0 0.35rem 0.8rem rgba(255, 138, 52, 0.28);
  content: "";
}

@media screen and (max-width: 48rem) {
  .md-header__inner,
  .md-tabs__inner {
    width: min(100% - 1.5rem, 62rem);
  }

  .md-header__button.md-logo {
    padding-right: 1rem;
  }

  .einv-header-brand__mark,
  .einv-header-brand__mark img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .einv-header-brand__title {
    font-size: 1.15rem;
  }

  .einv-header-brand__subtitle {
    font-size: 0.75rem;
  }
}

.einv-home {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 0 3rem;
}

.einv-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: stretch;
  min-height: 28rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--einv-border);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 42%),
    linear-gradient(160deg, var(--einv-soft-blue), #ffffff 52%, var(--einv-soft-amber));
}

[data-md-color-scheme="slate"] .einv-home-hero {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.18), transparent 42%),
    linear-gradient(160deg, #0f172a, #111827 54%, #1f2937);
}

.einv-home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.einv-home-eyebrow {
  width: fit-content;
  margin: 0 0 0.8rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: var(--einv-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

[data-md-color-scheme="slate"] .einv-home-eyebrow {
  color: #bfdbfe;
}

.einv-home h1,
.einv-home h2,
.einv-home h3 {
  color: var(--einv-ink);
  letter-spacing: 0;
}

.einv-home h1 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.05rem, 6vw, 4.15rem);
  line-height: 1.08;
}

.einv-home-lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--einv-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.9;
}

.einv-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.einv-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--einv-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.einv-home-button:hover {
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--einv-primary-dark);
  transform: translateY(-1px);
}

.einv-home-actions .einv-home-button--primary {
  border-color: #0e78c8;
  background: #0e78c8;
  color: #ffffff;
}

.einv-home-actions .einv-home-button--primary:hover {
  border-color: #095e9e;
  background: #095e9e;
  color: #ffffff;
}

.einv-home-panel {
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.einv-home-panel div {
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.08);
}

[data-md-color-scheme="slate"] .einv-home-panel div,
[data-md-color-scheme="slate"] .einv-home-button {
  background: rgba(15, 23, 42, 0.72);
}

.einv-home-panel span {
  display: block;
  color: var(--einv-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.einv-home-panel strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--einv-ink);
  font-size: 1rem;
  line-height: 1.55;
}

.einv-home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 3rem;
}

.einv-home-stats div {
  min-height: 7rem;
  padding: 1.1rem;
  border: 1px solid var(--einv-border);
  border-radius: 0.5rem;
  background: var(--einv-card);
}

.einv-home-stats strong {
  display: block;
  color: var(--einv-primary);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.einv-home-stats span {
  display: block;
  margin-top: 0.55rem;
  color: var(--einv-muted);
  font-weight: 700;
  line-height: 1.5;
}

.einv-home-features {
  margin-top: 2rem;
}

.einv-home-section-head {
  max-width: 46rem;
  margin-bottom: 1.25rem;
}

.einv-home-section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.einv-home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.einv-home-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid var(--einv-border);
  border-radius: 0.5rem;
  background: var(--einv-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.einv-home-card:hover {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0.9rem 2rem rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.einv-home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--einv-primary-dark);
  font-weight: 900;
}

[data-md-color-scheme="slate"] .einv-home-card__icon {
  color: #bfdbfe;
}

.einv-home-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.einv-home-card p {
  margin: 0.7rem 0 0;
  color: var(--einv-muted);
  line-height: 1.75;
}

.md-typeset .einv-hero {
  display: grid;
  grid-template-columns: minmax(22rem, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  max-width: 64rem;
  margin: 1.25rem auto 2.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--einv-border);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 16rem),
    linear-gradient(135deg, var(--einv-soft-blue), var(--einv-soft-amber));
  box-shadow: 0 1.2rem 3rem rgba(37, 99, 235, 0.12);
}

.md-typeset .einv-hero-copy {
  min-width: 0;
}

.md-typeset .einv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--einv-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset .einv-eyebrow {
  color: #bfdbfe;
}

.md-typeset .einv-hero-title {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  color: var(--einv-ink);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: normal;
}

.md-typeset .einv-hero-title span {
  display: block;
}

.md-typeset .einv-hero-lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--einv-muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.md-typeset .einv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.md-typeset .einv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.md-typeset .einv-button:hover {
  transform: translateY(-1px);
}

.md-typeset .einv-button--primary {
  background: var(--einv-primary);
  color: #ffffff;
  box-shadow: 0 0.7rem 1.4rem rgba(37, 99, 235, 0.24);
}

.md-typeset .einv-button--primary:hover {
  background: var(--einv-primary-dark);
  color: #ffffff;
}

.md-typeset .einv-button--secondary {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--einv-primary-dark);
}

[data-md-color-scheme="slate"] .md-typeset .einv-button--secondary {
  background: rgba(15, 23, 42, 0.72);
  color: #bfdbfe;
}

.md-typeset .einv-hero-card {
  padding: 1.25rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  box-shadow: 0 0.7rem 1.8rem rgba(15, 23, 42, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset .einv-hero-card {
  background: rgba(15, 23, 42, 0.72);
}

.md-typeset .einv-hero-card strong {
  color: var(--einv-ink);
}

.md-typeset .einv-hero-card h3 {
  margin: 0 0 0.8rem;
  color: var(--einv-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.md-typeset .einv-checklist {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.md-typeset .einv-checklist li {
  margin: 0.4rem 0;
  color: var(--einv-muted);
}

.md-typeset .einv-section-lead {
  max-width: 42rem;
  margin-top: -0.25rem;
  margin-bottom: 1rem;
  color: var(--einv-muted);
}

.md-typeset .einv-article-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.4rem 0 2rem;
  border: 1px solid rgba(132, 179, 218, 0.28);
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.12);
}

.md-typeset .einv-band {
  margin: 2rem 0;
  padding: 1.4rem;
  border: 1px solid var(--einv-border);
  border-radius: 1.25rem;
  background: var(--einv-card);
}

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border-radius: 1rem;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0.8rem 1.8rem rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.md-typeset .einv-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.md-typeset .einv-article-section {
  margin: 3rem auto;
}

.md-typeset .einv-article-section h2 {
  margin: 0 0 1.6rem;
  color: var(--einv-ink);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
  text-align: center;
}

.md-typeset .einv-article-section h2 span {
  color: #f97316;
}

.md-typeset .einv-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.md-typeset .einv-article-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: var(--einv-card);
  box-shadow: 0 0.7rem 1.8rem rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.md-typeset .einv-article-card:hover {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 1rem 2.4rem rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.md-typeset .einv-article-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 11rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 48%),
    var(--einv-soft-blue);
}

.md-typeset .einv-article-thumb::before,
.md-typeset .einv-article-thumb::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.md-typeset .einv-article-thumb::before {
  width: 42%;
  height: 42%;
  right: 10%;
  top: 16%;
}

.md-typeset .einv-article-thumb::after {
  width: 56%;
  height: 18%;
  left: 10%;
  bottom: 15%;
}

.md-typeset .einv-article-thumb--green {
  background-color: #bbf7d0;
}

.md-typeset .einv-article-thumb--orange {
  background-color: #fed7aa;
}

.md-typeset .einv-article-thumb--blue {
  background-color: #bfdbfe;
}

.md-typeset .einv-article-thumb--amber {
  background-color: #fde68a;
}

.md-typeset .einv-article-thumb--cyan {
  background-color: #a5f3fc;
}

.md-typeset .einv-article-thumb--navy {
  background-color: #c7d2fe;
}

.md-typeset .einv-article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.15rem 1.25rem 1.2rem;
}

.md-typeset .einv-article-body h3 {
  margin: 0;
  color: var(--einv-ink);
  font-size: 1rem;
  line-height: 1.45;
}

.md-typeset .einv-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  color: var(--einv-muted);
  font-size: 0.78rem;
}

.md-typeset .einv-article-meta a {
  flex: 0 0 auto;
  color: var(--einv-primary);
  font-weight: 700;
  text-decoration: none;
}

.md-typeset .einv-article-meta a:hover {
  color: var(--einv-primary-dark);
}

.md-typeset .einv-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--einv-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-typeset .einv-pill {
  color: #bfdbfe;
}

.md-footer-meta__inner {
  display: block;
  width: min(100% - 2rem, 76rem);
  max-width: 76rem;
}

.md-footer .md-copyright {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem 0;
  color: #ffffff;
  font-size: 0.62rem;
}

.md-footer .md-copyright__highlight {
  display: block;
  width: 100%;
}

.einv-footer {
  width: 100%;
  padding: 0.75rem 0 0.25rem;
}

.einv-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.2rem;
}

.einv-footer section {
  padding-top: 0;
}

.einv-footer h2 {
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.einv-footer p {
  margin: 0.28rem 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.einv-footer a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.48);
  text-underline-offset: 0.18em;
}

.einv-footer a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

@media screen and (max-width: 72rem) {
  .einv-home-hero,
  .einv-home-card-grid {
    grid-template-columns: 1fr;
  }

  .einv-home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-typeset .einv-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .md-typeset .einv-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 36rem) {
  .einv-home {
    padding-top: 0.5rem;
  }

  .einv-home-hero {
    min-height: auto;
    padding: 1.2rem;
  }

  .einv-home-actions,
  .einv-home-stats {
    grid-template-columns: 1fr;
  }

  .einv-home-actions {
    display: grid;
  }

  .md-typeset .einv-hero-title {
    font-size: clamp(1.55rem, 9vw, 2rem);
  }

  .md-typeset .einv-actions {
    display: grid;
  }

  .md-typeset .einv-article-grid {
    grid-template-columns: 1fr;
  }

  .md-typeset .einv-article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media screen and (max-width: 52rem) {
  .einv-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 52.0625rem) and (max-width: 76rem) {
  .einv-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body:has(.einv-portal) {
  background: #f5f6f8;
}

body:has(.einv-portal) .md-tabs {
  display: none;
}

body:has(.einv-portal) .md-main__inner {
  max-width: none;
  margin: 0;
}

body:has(.einv-portal) .md-content {
  max-width: none;
}

body:has(.einv-portal) .md-content__inner {
  margin: 0;
  padding: 0;
}

body:has(.einv-portal) .md-content__inner::before {
  display: none;
}

.einv-portal {
  overflow: hidden;
  color: #182230;
  font-family: "Noto Sans TC", sans-serif;
}

.einv-home-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 4.45rem;
  border-bottom: 1px solid rgba(255, 141, 67, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.2rem 0.85rem rgba(28, 92, 148, 0.1);
}

.einv-home-header::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.16rem;
  background: linear-gradient(90deg, #1f3b35, #0b8bdb 42%, #ff8a34);
  content: "";
}

.einv-home-header__inner {
  display: flex;
  width: min(100% - 2rem, 76rem);
  min-height: 4.45rem;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 3.2rem);
  margin: 0 auto;
}

.einv-home-header__brand {
  display: inline-flex;
  min-width: 14rem;
  align-items: center;
  gap: 0.68rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(132, 179, 218, 0.36);
  color: #0b62d6;
  text-decoration: none;
}

.einv-home-header__brand:hover {
  color: #0b62d6;
}

.einv-home-header__brand img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.einv-home-header__brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.einv-home-header__brand strong {
  color: #0874e8;
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: 0;
}

.einv-home-header__brand small {
  margin-top: 0.2rem;
  color: #667085;
  font-size: 0.76rem;
  font-weight: 500;
}

.einv-home-header__nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: auto;
}

.einv-home-header__nav a {
  position: relative;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.einv-home-header__nav a:hover {
  color: #e86b18;
}

.einv-home-header__nav a[aria-current="page"] {
  color: #0e5ca8;
}

.einv-home-header__nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -0.58rem;
  left: 0;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a34, #ffb15f);
  box-shadow: 0 0.35rem 0.8rem rgba(255, 138, 52, 0.28);
  content: "";
}

.einv-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
}

.einv-header-actions a {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(8, 92, 217, 0.22);
  border-radius: 0.55rem;
  color: #085cd9;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.einv-header-actions a:hover {
  border-color: rgba(232, 107, 24, 0.42);
  color: #e86b18;
}

.einv-header-actions .einv-header-actions__primary {
  border-color: #0e78c8;
  background: #0e78c8;
  color: #ffffff;
}

.einv-header-actions .einv-header-actions__primary:hover {
  background: #095e9e;
  color: #ffffff;
}

.einv-site-header__menu {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  color: #0e5ca8;
  cursor: pointer;
}

.einv-site-header__menu svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hero.einv-hero-banner {
  position: relative;
  min-height: 12.5rem;
  padding: 1.55rem 0 1.45rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 161, 84, 0.2), transparent 14rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 255, 0.96) 35%, rgba(244, 250, 255, 0.28) 66%, rgba(244, 250, 255, 0.05) 100%),
    linear-gradient(180deg, rgba(255, 245, 235, 0.38), rgba(255, 255, 255, 0.12)),
    url("../assets/images/banner.jpg") no-repeat right top;
  background-size: cover;
  box-shadow: none;
}

.einv-hero-banner::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(110, 190, 255, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 30%, transparent 62%);
  content: "";
  pointer-events: none;
}

.einv-hero-banner__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  padding-left: clamp(0rem, 3vw, 2rem);
}

.einv-hero-banner h1 {
  max-width: 13em;
  margin: 0;
  color: #101828;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: none;
}

.einv-hero-banner h1 span {
  display: block;
  color: #0e5ca8;
}

.einv-hero-banner h1 em {
  color: #ff7a1a;
  font-style: normal;
}

.einv-hero-banner__lead {
  max-width: 31rem;
  margin: 0.7rem 0 0;
  color: #26384d;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 800;
  line-height: 1.6;
  text-shadow: none;
}

.einv-hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.05rem;
}

.einv-hero-banner__quick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(145, 198, 238, 0.5);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0.85rem 1.8rem rgba(42, 119, 192, 0.13);
  backdrop-filter: blur(10px);
}

.einv-hero-banner__quick::before {
  display: none;
}

.einv-hero-banner__quick > * {
  position: relative;
  z-index: 1;
}

.einv-hero-banner__button,
.einv-hero-banner__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 0.7rem;
  font-weight: 900;
  text-decoration: none;
  text-shadow: none;
}

.einv-hero-banner__button {
  min-width: 7.4rem;
  border: 1px solid rgba(255, 185, 139, 0.95);
  background: linear-gradient(180deg, #ff9a46, #f97316);
  box-shadow:
    0 0.65rem 1.1rem rgba(249, 115, 22, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.84rem;
}

.einv-hero-banner__button:hover {
  background: linear-gradient(180deg, #ff8a34, #ea5f0c);
  color: #ffffff;
}

.einv-hero-banner__button::before {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  margin-right: 0.45rem;
  border-radius: 0.16rem;
  background: rgba(255, 255, 255, 0.9);
  color: #e86b18;
  content: "";
  font-size: 0.68rem;
  text-shadow: none;
}

.einv-hero-banner__link {
  border: 1px solid rgba(8, 92, 217, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: #085cd9;
}

.einv-hero-banner__link:hover {
  color: #0647a7;
}

.einv-portal-hero {
  padding: 1.1rem 1rem 1.5rem;
  background:
    linear-gradient(90deg, rgba(211, 235, 255, 0.5), transparent 24%, transparent 78%, rgba(211, 235, 255, 0.5)),
    #f7fbff;
}

.einv-portal-heading {
  width: min(100%, 62rem);
  margin: 0 auto 0.8rem;
  text-align: center;
}

.einv-portal-kicker {
  margin: 0 0 0.35rem;
  color: #0e5ca8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.einv-portal-heading h2 {
  margin: 0;
  color: #182230;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.25;
}

.einv-scenario-grid,
.einv-entry-grid {
  display: grid;
  width: min(100%, 62rem);
  margin: 0 auto;
}

.einv-scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.einv-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.einv-scenario-card,
.einv-entry-card {
  display: flex;
  min-height: 9.25rem;
  flex-direction: column;
  padding: 0.85rem;
  border: 1px solid rgba(132, 179, 218, 0.34);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  color: #182230;
  text-decoration: none;
  box-shadow: 0 0.55rem 1.2rem rgba(31, 104, 174, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.einv-scenario-card:hover,
.einv-entry-card:hover {
  border-color: rgba(255, 138, 52, 0.38);
  color: #182230;
  box-shadow: 0 0.8rem 1.7rem rgba(31, 104, 174, 0.12);
  transform: translateY(-2px);
}

.einv-home-header a:focus-visible,
.einv-site-header__menu:focus-visible,
.einv-hero-banner__link:focus-visible,
.einv-hero-banner__button:focus-visible,
.einv-entry-card:focus-visible,
.einv-home-button:focus-visible {
  outline: 3px solid #ff8a34;
  outline-offset: 3px;
}

.einv-entry-card__heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(132, 179, 218, 0.28);
}

.einv-scenario-card__icon,
.einv-entry-card__heading > span {
  display: inline-flex;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: #eef8ff;
  color: #0e5ca8;
  font-size: 0.78rem;
  font-weight: 900;
}

.einv-scenario-card h3,
.einv-entry-card h3 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  line-height: 1.35;
}

.einv-scenario-card p,
.einv-entry-card p {
  margin: 0.4rem 0 0;
  color: #667085;
  font-size: 0.875rem;
  line-height: 1.55;
}

.einv-entry-card__heading strong {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.38rem 0.6rem;
  border: 1px solid rgba(14, 92, 168, 0.16);
  border-radius: 0.55rem;
  background: #eaf6ff;
  color: #0b70b8;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.einv-scenario-card strong {
  margin-top: auto;
  padding-top: 0.55rem;
  color: #0b7dcc;
  font-size: 0.875rem;
}

.einv-scenario-card strong::before,
.einv-entry-card__heading strong::before {
  color: #ff8a34;
  content: "→ ";
}

.einv-home-entries {
  width: min(100% - 2rem, 62rem);
  margin: 0 auto 3rem;
}

.einv-home-entries .einv-portal-heading {
  width: 100%;
}

.einv-portal-stats {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  width: min(100% - 2rem, 62rem);
  margin: 0 auto 3.4rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(105, 180, 238, 0.55);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.26), transparent 14rem),
    linear-gradient(135deg, #075fa6, #0087d8 54%, #4bb8f0);
  box-shadow:
    0 0 0 0.35rem rgba(179, 223, 255, 0.16),
    0 1rem 2rem rgba(31, 104, 174, 0.22);
}

.einv-portal-stats__head {
  align-self: center;
}

.einv-portal-stats__head p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
}

.einv-portal-stats__head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.28;
}

.einv-portal-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.13);
}

.einv-portal-stats__grid div {
  display: flex;
  min-height: 5.8rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.einv-portal-stats__grid div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.einv-portal-stats i {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0074bc;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.einv-portal-stats strong {
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.einv-portal-stats span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.35;
}

.einv-portal-articles {
  width: min(100% - 2rem, 45rem);
  margin: 0 auto 3rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.einv-portal-articles h2 {
  margin: 0 0 1rem;
  color: #27364a;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  text-align: center;
}

.einv-portal-articles h2 span {
  color: #ff7a1a;
}

.einv-portal-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.einv-article-tile,
.einv-article-tile:nth-child(2),
.einv-article-tile:nth-child(3) {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  background: #ffffff;
  color: #101828;
  text-decoration: none;
  box-shadow: 0 0.75rem 1.45rem rgba(20, 60, 100, 0.13);
  transform: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.einv-article-tile:hover {
  color: #101828;
  transform: translateY(-2px);
}

.einv-article-tile__image {
  display: block;
  aspect-ratio: 1.72 / 1;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.9) 0 10%, transparent 11%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 45%),
    #cfeee0;
}

.einv-article-tile__image--orange {
  background:
    repeating-linear-gradient(0deg, rgba(255, 122, 26, 0.12) 0 0.8rem, transparent 0.8rem 1.6rem),
    linear-gradient(135deg, #fff2e7, #ffd1b6);
}

.einv-article-tile__image--photo {
  background:
    linear-gradient(90deg, rgba(8, 125, 222, 0.16), transparent 42%),
    linear-gradient(135deg, #dbeafe, #f8fafc 55%, #e0f2fe);
}

.einv-article-tile__image--regulations-compliance {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 44%),
    url("../assets/images/article/e-invoice-regulations-compliance.png") center / cover no-repeat;
}

.einv-article-tile__image--winning-invoice {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 44%),
    url("../assets/images/article/winning-invoice-printing.png") center / cover no-repeat;
}

.einv-article-tile strong {
  display: block;
  min-height: 3.55rem;
  padding: 0.75rem 0.8rem 0.25rem;
  color: #101828;
  font-size: 0.68rem;
  line-height: 1.45;
}

.einv-article-tile > span:not(.einv-article-tile__image) {
  display: block;
  padding: 0 0.8rem 0.75rem;
  color: #64748b;
  font-size: 0.58rem;
  text-align: right;
}

@media screen and (max-width: 72rem) {
  .einv-home-header__inner {
    width: min(100% - 1.5rem, 62rem);
    gap: 1.35rem;
  }

  .einv-home-header__brand {
    min-width: 12.8rem;
  }

  .einv-home-header__nav {
    gap: 1rem;
    overflow-x: auto;
    padding: 0.4rem 0;
  }

  .einv-home-header__nav a {
    font-size: 0.84rem;
  }

  .einv-header-actions {
    display: none;
  }

  .einv-portal-stats {
    grid-template-columns: 1fr;
  }

  .einv-scenario-grid,
  .einv-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .einv-portal-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .einv-portal-stats__grid div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .einv-portal-stats__grid div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .einv-portal-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 42rem) {
  .einv-home-header,
  .einv-home-header__inner {
    min-height: 4.45rem;
  }

  .einv-home-header__inner {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    padding: 0;
  }

  .einv-home-header__brand {
    min-width: auto;
    border-right: 0;
  }

  .einv-home-header__brand img {
    width: 3.1rem;
    height: 3.1rem;
  }

  .einv-home-header__brand strong {
    font-size: 1.45rem;
  }

  .einv-home-header__brand small {
    font-size: 0.78rem;
  }

  .einv-site-header__menu {
    display: inline-flex;
    margin-left: auto;
  }

  .einv-home-header__nav {
    display: none;
  }

  .hero.einv-hero-banner {
    min-height: auto;
    padding: 1.45rem 0 1.5rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.9)),
      url("../assets/images/banner.jpg") no-repeat 70% top;
    background-size: cover;
  }

  .einv-hero-banner h1 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

  .einv-hero-banner__lead {
    color: #26384d;
    text-shadow: 1px 1px #ffffff;
  }

  .einv-hero-banner__quick {
    display: grid;
    width: min(100%, 19rem);
    gap: 0.62rem;
  }

  .einv-scenario-grid,
  .einv-entry-grid,
  .einv-portal-stats__grid,
  .einv-portal-article-grid {
    grid-template-columns: 1fr;
  }

  .einv-scenario-card,
  .einv-entry-card {
    min-height: auto;
  }

  .einv-portal-stats__grid div + div,
  .einv-portal-stats__grid div:nth-child(3),
  .einv-portal-stats__grid div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

body:has(.einv-portal) .md-footer {
  border-top: 1px solid rgba(106, 156, 198, 0.14);
}

body:has(.einv-portal) .md-footer .md-copyright {
  color: #ffffff;
}

body:has(.einv-portal) .einv-footer p {
  color: #ffffff;
}

body:has(.einv-portal) .einv-footer h2 {
  color: #ffffff;
}
