:root {
  --color-bg: #0b0d0f;
  --color-bg-soft: #101316;
  --color-surface: #15191d;
  --color-surface-raised: #191e23;
  --color-navigation: #171b1f;
  --color-text: #f4f5f6;
  --color-text-soft: #c1c6cc;
  --color-muted: #8e969f;
  --color-border: #2b3137;
  --color-border-strong: #3b434b;
  --color-accent: #ff8a00;
  --color-accent-hover: #ffad42;
  --color-focus: #ffd08a;
  --container: 1200px;
  --content-width: 820px;
  --sidebar-width: 300px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.18);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --transition: 180ms ease;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text-soft);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 138, 0, 0.035), transparent 34rem),
    var(--color-bg);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  color: #111;
  background: var(--color-accent);
}

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

.site-container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section-space {
  padding-block: var(--space-12) var(--space-16);
}

.site-header {
  position: relative;
  z-index: 50;
  background: #0e1012;
}

.site-header__bar {
  min-height: 72px;
  background: #0e1012;
}

.site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: 112px;
  min-height: 48px;
}

.site-brand img {
  width: 112px;
  height: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-mobile-actions {
  display: none;
}

.site-mobile-action {
  display: inline-flex;
  min-width: 116px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(91, 20, 0, 0.22);
  touch-action: manipulation;
}

.site-mobile-action:hover {
  color: #fff;
}

.site-mobile-action--register {
  background: #ff5a2a;
}

.site-mobile-action--login {
  background: #c91616;
}

.site-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.site-button:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.site-button--primary {
  color: #17120b;
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.site-button--primary:hover {
  color: #17120b;
  background: var(--color-accent-hover);
}

.site-navigation {
  min-height: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 138, 0, 0.32);
  background: linear-gradient(180deg, #1a1e22 0%, var(--color-navigation) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 26px rgba(0, 0, 0, 0.2);
}

.site-navigation__list {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 42px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation a {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding-inline: 10px;
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 650;
}

.site-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-accent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.site-navigation a:hover {
  color: var(--color-text);
}

.site-navigation .is-current > a,
.page-home .site-navigation__home > a {
  color: var(--color-accent-hover);
  background: linear-gradient(
    180deg,
    rgba(255, 138, 0, 0.04) 0%,
    rgba(255, 138, 0, 0.12) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.08);
  font-weight: 750;
}

.site-navigation a:hover::after,
.site-navigation .is-current > a::after,
.page-home .site-navigation__home > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.site-navigation__mobile-action {
  display: none;
}

.site-menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.home-hero {
  padding-top: var(--space-8);
}

.home-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.home-slider__track {
  position: relative;
  aspect-ratio: 1920 / 500;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}

.home-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slider__dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-slider__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.home-slider__dots button.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.trust-strip {
  padding-block: var(--space-6) var(--space-10);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(130deg, var(--color-surface), #121518);
}

.trust-item {
  position: relative;
  padding: var(--space-6);
}

.trust-item + .trust-item::before {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 1px;
  content: "";
  background: var(--color-border);
}

.trust-item h2 {
  margin: 0 0 var(--space-2);
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.4;
}

.trust-item h2::before {
  display: inline-block;
  width: 3px;
  height: 16px;
  margin-right: 10px;
  content: "";
  background: var(--color-accent);
  vertical-align: -2px;
}

.trust-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
}

.home-explainer {
  padding-block: var(--space-8) var(--space-12);
}

.home-explainer__title,
.page-heading h1 {
  max-width: 980px;
  margin: 0 auto var(--space-8);
  color: var(--color-text);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.3;
  text-align: center;
}

.home-explainer__content {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.section-heading h2,
.latest-panel__title {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: var(--color-text);
  font-size: 26px;
  line-height: 1.35;
}

.section-heading h2::before,
.latest-panel__title::before {
  position: absolute;
  top: 0.18em;
  bottom: 0.18em;
  left: 0;
  width: 3px;
  content: "";
  border-radius: 3px;
  background: var(--color-accent);
}

.section-heading > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 700;
}

.section-heading > a:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.home-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-latest__grid .article-card:first-child {
  grid-column: span 2;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-surface), #121518);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transition: border-color var(--transition), transform var(--transition);
}

.article-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.article-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0c0e10;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.018);
}

.article-card__body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: var(--space-5);
}

.article-card__body h2,
.article-card__body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
  font-size: 19px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card__body h2 a,
.article-card__body h3 a {
  color: inherit;
}

.article-card__body h2 a:hover,
.article-card__body h3 a:hover {
  color: var(--color-accent-hover);
}

.article-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 var(--space-4);
  color: var(--color-text-soft);
  font-size: 15px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card__body time {
  margin-top: auto;
  color: var(--color-muted);
  font-size: 13px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  align-items: start;
  gap: var(--space-10);
}

.page-heading {
  margin-bottom: var(--space-10);
}

.page-heading__description {
  max-width: 760px;
  margin-inline: auto;
  color: var(--color-muted);
  text-align: center;
}

.latest-panel {
  position: sticky;
  top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-surface), #111416);
}

.latest-panel__title {
  margin-bottom: var(--space-5);
  font-size: 21px;
}

.latest-panel__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.latest-panel__item + .latest-panel__item {
  border-top: 1px solid var(--color-border);
}

.latest-panel__link {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-4);
}

.latest-panel__image {
  width: 80px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #0b0d0f;
}

.latest-panel__content {
  min-width: 0;
}

.latest-panel__item-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-panel__link:hover .latest-panel__item-title {
  color: var(--color-accent-hover);
}

.latest-panel__date {
  display: block;
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
}

.latest-panel__more {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 700;
}

.latest-panel__more:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.pagination {
  margin-top: var(--space-10);
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  display: inline-flex;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
  background: var(--color-surface);
  font-size: 14px;
}

.pagination a:hover,
.pagination .thisclass,
.pagination .current {
  color: #17120b;
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.article-detail {
  min-width: 0;
}

.article-detail__header {
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs {
  margin-bottom: var(--space-4);
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--color-muted);
}

.breadcrumbs a:hover {
  color: var(--color-accent-hover);
}

.article-detail__header h1 {
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  font-size: clamp(30px, 3.5vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.article-detail__header time {
  color: var(--color-muted);
  font-size: 14px;
}

.article-detail__content {
  padding-top: var(--space-8);
}

.content-prose {
  color: var(--color-text-soft);
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.content-prose > :first-child {
  margin-top: 0;
}

.content-prose > :last-child {
  margin-bottom: 0;
}

.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose h4,
.content-prose h5,
.content-prose h6 {
  color: var(--color-text);
  line-height: 1.4;
  scroll-margin-top: 24px;
}

.content-prose h2 {
  margin: 2.2em 0 0.8em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--color-border);
  font-size: 28px;
}

.content-prose h3 {
  margin: 1.8em 0 0.65em;
  font-size: 23px;
}

.content-prose h4 {
  margin: 1.6em 0 0.55em;
  font-size: 19px;
}

.content-prose p,
.content-prose ul,
.content-prose ol,
.content-prose blockquote,
.content-prose figure,
.content-prose table {
  margin: 0 0 1.35em;
}

.content-prose ul,
.content-prose ol {
  padding-left: 1.5em;
}

.content-prose li + li {
  margin-top: 0.45em;
}

.content-prose a {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-color: rgba(255, 173, 66, 0.4);
  text-underline-offset: 3px;
}

.content-prose a:hover {
  text-decoration-color: currentColor;
}

.content-prose img {
  width: auto;
  max-width: 100%;
  margin: var(--space-6) auto;
  border-radius: var(--radius-md);
}

.content-prose blockquote {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-surface);
  color: var(--color-text-soft);
}

.content-prose table {
  display: table;
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.content-prose th,
.content-prose td {
  padding: 12px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.content-prose th {
  color: var(--color-text);
  background: var(--color-surface-raised);
  font-weight: 700;
}

.content-prose tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.content-prose tr:last-child td {
  border-bottom: 0;
}

.content-prose th:last-child,
.content-prose td:last-child {
  border-right: 0;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-6);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

.article-share a {
  padding: 6px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-soft);
}

.article-share a:hover {
  color: var(--color-accent-hover);
  border-color: var(--color-accent);
}

.article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.article-navigation__item {
  min-width: 0;
  padding: var(--space-4);
}

.article-navigation__item + .article-navigation__item {
  border-left: 1px solid var(--color-border);
}

.article-navigation__item--next {
  text-align: right;
}

.article-navigation a {
  color: var(--color-text-soft);
}

.article-navigation a:hover {
  color: var(--color-accent-hover);
}

.site-footer {
  margin-top: var(--space-16);
  border-top: 1px solid var(--color-border);
  background: #0e1113;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.35fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: var(--space-12);
}

.site-footer__logo {
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  font-size: 34px;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-footer__logo span {
  color: var(--color-accent);
}

.site-footer__brand p,
.site-footer__section li {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.75;
}

.site-footer__brand p {
  margin: 0;
}

.site-footer__section h2 {
  position: relative;
  margin: 0 0 var(--space-4);
  padding-left: 12px;
  color: var(--color-text);
  font-size: 16px;
}

.site-footer__section h2::before {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: 0;
  width: 3px;
  content: "";
  background: var(--color-accent);
}

.site-footer__section ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__section li + li {
  margin-top: 7px;
}

.site-footer__section a {
  color: var(--color-muted);
}

.site-footer__section a:hover {
  color: var(--color-accent-hover);
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border);
}

.site-footer__bottom-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer__bottom p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
}

@media (max-width: 1040px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: var(--space-6);
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header__bar,
  .site-header__inner {
    min-height: 66px;
  }

  .site-brand,
  .site-brand img {
    width: 96px;
  }

  .site-button {
    display: none;
  }

  .site-menu-toggle {
    display: block;
  }

  .site-mobile-actions {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 8vw, 36px);
    padding: 10px var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(80, 38, 0, 0.32);
    background: linear-gradient(180deg, #ff9c00 0%, #ff8600 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 9px 22px rgba(0, 0, 0, 0.22);
  }

  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 138, 0, 0.32);
    background: #171b1f;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation__list {
    display: block;
    padding-block: var(--space-3);
  }

  .site-navigation a {
    min-height: 48px;
    width: 100%;
    padding-inline: var(--space-4);
  }

  .site-navigation .is-current > a,
  .page-home .site-navigation__home > a {
    background: rgba(255, 138, 0, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 138, 0, 0.06);
  }

  .site-navigation a::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0.5);
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item:nth-child(3)::before {
    display: none;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

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

  .latest-panel {
    position: static;
  }

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

  .home-latest__grid .article-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section-space {
    padding-block: var(--space-8) var(--space-12);
  }

  .home-hero {
    padding-top: var(--space-4);
  }

  .home-slider {
    border-radius: var(--radius-md);
  }

  .home-slider__track {
    aspect-ratio: 16 / 7;
  }

  .trust-strip {
    padding-block: var(--space-4) var(--space-8);
  }

  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item::before {
    display: none;
  }

  .trust-item:nth-child(n + 2) {
    border-top: 1px solid var(--color-border);
  }

  .home-explainer {
    padding-block: var(--space-6) var(--space-8);
  }

  .home-explainer__title,
  .page-heading h1 {
    margin-bottom: var(--space-6);
    font-size: 26px;
    text-align: left;
  }

  .home-explainer__content {
    padding: var(--space-5);
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading > a {
    padding-inline: 10px;
    font-size: 13px;
  }

  .home-latest__grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .home-latest__grid .article-card:first-child {
    grid-column: auto;
  }

  .article-card__body {
    min-height: 0;
  }

  .page-heading {
    margin-bottom: var(--space-8);
  }

  .page-heading__description {
    text-align: left;
  }

  .article-detail__header h1 {
    font-size: 29px;
  }

  .content-prose {
    font-size: 16px;
    line-height: 1.8;
  }

  .content-prose h2 {
    font-size: 23px;
  }

  .content-prose h3 {
    font-size: 20px;
  }

  .content-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .latest-panel__item:nth-child(n + 4) {
    display: none;
  }

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

  .article-navigation__item + .article-navigation__item {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .article-navigation__item--next {
    text-align: left;
  }

  .site-footer {
    margin-top: var(--space-12);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    padding-block: var(--space-8);
  }

  .site-footer__bottom-inner {
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
