@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Rajdhani:wght@600;700&display=swap");

:root {
  --hx-navy: #0b1e3d;
  --hx-navy-deep: #071323;
  --hx-cyan: #00c5dc;
  --hx-blue: #176bff;
  --hx-gold: #c89038;
  --hx-text: #172b49;
  --hx-muted: #536984;
  --hx-line: #cfdae6;
  --hx-surface: #f2f5f9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hx-article-page {
  margin: 0;
  color: var(--hx-text);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
}

.hx-article-page a {
  color: inherit;
  text-decoration: none;
}

.hx-article-page img {
  display: block;
  max-width: 100%;
}

.hx-article-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hx-article-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--hx-navy);
}

.hx-article-header-inner {
  display: flex;
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hx-article-logo img {
  width: auto;
  height: 38px;
}

.hx-article-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hx-article-desktop-nav a {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
}

.hx-article-desktop-nav a:hover,
.hx-article-desktop-nav a.is-current {
  color: var(--hx-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.hx-article-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hx-article-language {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  font: 12px "DM Mono", monospace;
}

.hx-article-header-cta {
  padding: 12px 20px;
  color: var(--hx-navy);
  background: var(--hx-cyan);
  font-size: 14px;
  font-weight: 700;
}

.hx-article-mobile-menu {
  display: none;
}

.hx-article-blog-banner {
  position: relative;
  display: flex;
  min-height: clamp(220px, 27vw, 360px);
  overflow: hidden;
  align-items: flex-end;
  background-color: var(--hx-navy);
  background-image: var(--hx-article-banner-image);
  background-position: center;
  background-size: cover;
}

.hx-article-blog-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 19, 35, 0.9) 0%, rgba(7, 19, 35, 0.58) 48%, rgba(7, 19, 35, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 19, 35, 0.54) 0%, rgba(7, 19, 35, 0) 64%);
}

.hx-article-blog-banner__content {
  position: relative;
  z-index: 1;
  padding-bottom: 38px;
}

.hx-article-blog-banner__content p {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
}

.hx-article-blog-banner__content span {
  color: rgba(255, 255, 255, 0.76);
  font: 500 13px "DM Mono", monospace;
  letter-spacing: 0.04em;
}

.hx-article-hero {
  padding: 42px 0 58px;
  border-bottom: 1px solid var(--hx-line);
  background: var(--hx-surface);
}

.hx-article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--hx-muted);
  font: 12px "DM Mono", monospace;
}

.hx-article-breadcrumb a:hover {
  color: var(--hx-blue);
}

.hx-article-eyebrow,
.hx-article-section-heading p {
  margin: 0 0 14px;
  color: var(--hx-cyan);
  font: 600 12px "DM Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hx-article-hero h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--hx-navy);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: clamp(42px, 5.1vw, 70px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.hx-article-lead {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--hx-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hx-article-meta {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  color: #71849b;
  font: 12px "DM Mono", monospace;
}

.hx-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hx-article-content {
  min-width: 0;
  color: #354d69;
  font-size: 17px;
  line-height: 1.85;
}

.hx-article-content > *:first-child {
  margin-top: 0;
}

.hx-article-content h2,
.hx-article-content h3 {
  margin: 48px 0 16px;
  color: var(--hx-navy);
  font-family: "Rajdhani", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

.hx-article-content h2 {
  font-size: 34px;
}

.hx-article-content h3 {
  font-size: 25px;
}

.hx-article-content p {
  margin: 0 0 24px;
}

.hx-article-content ul,
.hx-article-content ol {
  margin: 0 0 28px;
  padding-left: 24px;
}

.hx-article-content li {
  margin-bottom: 10px;
}

.hx-article-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--hx-cyan);
  color: var(--hx-navy);
  background: var(--hx-surface);
  font-size: 19px;
  font-weight: 600;
}

.hx-article-content img {
  height: auto;
  margin: 36px 0;
}

.hx-article-aside {
  position: sticky;
  top: 104px;
  padding: 26px;
  border-top: 3px solid var(--hx-cyan);
  background: var(--hx-surface);
}

.hx-article-aside-label {
  margin: 0 0 10px;
  color: var(--hx-blue);
  font: 600 10px "DM Mono", monospace;
  letter-spacing: 0.16em;
}

.hx-article-aside-title {
  margin: 0 0 18px;
  color: var(--hx-navy);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.hx-article-category-list {
  display: grid;
}

.hx-article-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hx-line);
  color: var(--hx-navy);
  text-decoration: none;
}

.hx-article-category-list a:first-child {
  padding-top: 4px;
}

.hx-article-category-list a:hover span,
.hx-article-category-list a.is-current span {
  color: var(--hx-blue);
}

.hx-article-category-list span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.hx-article-category-list strong {
  display: inline-flex;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hx-line);
  background: #fff;
  color: #7a8da3;
  font: 10px "DM Mono", monospace;
}

.hx-article-category-list a.is-current strong {
  border-color: var(--hx-gold);
  color: var(--hx-navy);
  background: #f7ead5;
}

.hx-article-all-news-link {
  display: inline-flex;
  margin-top: 22px;
  align-items: center;
  gap: 8px;
  color: var(--hx-blue) !important;
  font-size: 13px;
  font-weight: 700;
}

.hx-article-all-news-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hx-article-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

.hx-article-aside dl,
.hx-article-aside dd {
  margin: 0;
}

.hx-article-aside dl > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--hx-line);
}

.hx-article-aside dt {
  margin-bottom: 4px;
  color: #7a8da3;
  font: 10px "DM Mono", monospace;
  text-transform: uppercase;
}

.hx-article-aside dd {
  color: var(--hx-navy);
  font-size: 14px;
  font-weight: 600;
}

.hx-article-back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--hx-blue) !important;
  font-size: 13px;
  font-weight: 700;
}

.hx-article-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0 68px;
  border-top: 1px solid var(--hx-line);
}

.hx-article-post-navigation > div:last-child {
  text-align: right;
}

.hx-article-post-navigation a {
  color: var(--hx-navy);
  font-size: 14px;
  font-weight: 700;
}

.hx-article-post-navigation a:hover {
  color: var(--hx-blue);
}

.hx-article-related {
  padding: 70px 0 78px;
  background: var(--hx-surface);
}

.hx-article-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.hx-article-section-heading h2 {
  margin: 0;
  color: var(--hx-navy);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
}

.hx-article-section-heading > a {
  color: var(--hx-blue);
  font-size: 13px;
  font-weight: 700;
}

.hx-article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hx-article-related-card {
  overflow: hidden;
  border: 1px solid var(--hx-line);
  background: #fff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.hx-article-related-card:hover {
  border-color: var(--hx-cyan);
  transform: translateY(-3px);
}

.hx-article-related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hx-article-related-card > div {
  padding: 20px;
}

.hx-article-related-card p {
  margin: 0 0 8px;
  color: #71849b;
  font: 10px "DM Mono", monospace;
}

.hx-article-related-card h3 {
  margin: 0 0 18px;
  color: var(--hx-navy);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.12;
}

.hx-article-related-card span {
  color: var(--hx-blue);
  font-size: 12px;
  font-weight: 700;
}

.hx-article-footer {
  color: rgba(255, 255, 255, 0.68);
  background: var(--hx-navy-deep);
}

.hx-article-footer-main {
  display: grid;
  grid-template-columns: 210px minmax(280px, 1fr) 260px;
  gap: 44px;
  align-items: center;
  padding: 54px 0;
}

.hx-article-footer-main > img {
  width: 170px;
}

.hx-article-footer strong {
  color: #fff;
  font-size: 14px;
}

.hx-article-footer p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.hx-article-footer a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.hx-article-footer a:hover {
  color: #d7b171;
  text-decoration: underline;
}

.hx-article-footer a:focus-visible {
  outline: 2px solid #d7b171;
  outline-offset: 3px;
}

.hx-article-footer-copy {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 11px;
}

@media (max-width: 980px) {
  .hx-article-desktop-nav,
  .hx-article-header-actions {
    display: none;
  }

  .hx-article-mobile-menu {
    position: relative;
    display: block;
  }

  .hx-article-mobile-menu summary {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 11px;
    align-content: center;
    gap: 5px;
    cursor: pointer;
    list-style: none;
  }

  .hx-article-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .hx-article-mobile-menu summary span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
  }

  .hx-article-mobile-menu nav {
    position: absolute;
    top: 54px;
    right: 0;
    width: min(88vw, 360px);
    padding: 14px 20px 22px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
    background: var(--hx-navy);
  }

  .hx-article-mobile-menu nav a {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 600;
  }

  .hx-article-mobile-menu nav a.is-current {
    color: var(--hx-cyan);
  }

  .hx-article-mobile-menu nav .hx-article-mobile-cta {
    margin-top: 16px;
    padding: 13px 18px;
    border: 0;
    color: var(--hx-navy);
    background: var(--hx-cyan);
    text-align: center;
  }

  .hx-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hx-article-aside {
    position: static;
  }

  .hx-article-footer-main {
    grid-template-columns: 180px 1fr;
  }

  .hx-article-footer-main > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .hx-article-container,
  .hx-article-header-inner {
    width: min(100% - 32px, 1180px);
  }

  .hx-article-site-header {
    height: 64px;
  }

  .hx-article-logo img {
    height: 32px;
  }

  .hx-article-hero {
    padding: 32px 0 42px;
  }

  .hx-article-blog-banner {
    min-height: 210px;
  }

  .hx-article-blog-banner__content {
    padding-bottom: 26px;
  }

  .hx-article-blog-banner__content span {
    max-width: 260px;
    font-size: 11px;
  }

  .hx-article-breadcrumb {
    margin-bottom: 30px;
  }

  .hx-article-hero h1 {
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1;
  }

  .hx-article-lead {
    margin-top: 22px;
    font-size: 16px;
  }

  .hx-article-layout {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .hx-article-content {
    font-size: 16px;
    line-height: 1.78;
  }

  .hx-article-content h2 {
    margin-top: 38px;
    font-size: 29px;
  }

  .hx-article-post-navigation {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }

  .hx-article-post-navigation > div:last-child {
    text-align: left;
  }

  .hx-article-related {
    padding: 52px 0 58px;
  }

  .hx-article-section-heading {
    align-items: start;
  }

  .hx-article-section-heading h2 {
    font-size: 31px;
  }

  .hx-article-related-grid {
    grid-template-columns: 1fr;
  }

  .hx-article-footer-main {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding: 42px 0;
  }
}
