.site-nav {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  border-bottom: var(--site-line-width) solid var(--site-line-color);
}

.site-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 46px;
  /* Tight on small screens; 1rem is the desktop maximum */
  padding: 0 clamp(0.1rem, calc((100vw - 300px) / 25), 1rem);
  font-size: var(--site-ui-font-size);
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: clamp(2px, 0.3vw, 4px);
  right: clamp(2px, 0.3vw, 4px);
  bottom: 0;
  border-bottom: 3px solid transparent;
  border-radius: 2px;
  transition: border-color 180ms ease;
}

.site-nav--light .site-nav__link {
  color: #001529;
}

.site-nav--dark .site-nav__link {
  color: rgba(255, 255, 255, 0.85);
}

.site-nav--light .site-nav__link:hover,
.site-nav--light .site-nav__link:focus-visible {
  color: #001529;
  background: rgba(0, 21, 41, 0.06);
}

.site-nav--dark .site-nav__link:hover,
.site-nav--dark .site-nav__link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav--light .site-nav__link:hover::after,
.site-nav--light .site-nav__link:focus-visible::after {
  border-bottom-color: #001529;
}

.site-nav--dark .site-nav__link:hover::after,
.site-nav--dark .site-nav__link:focus-visible::after {
  border-bottom-color: #ffffff;
}

.site-nav__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.site-header.ant-layout-header {
  padding-inline: 5%;
  line-height: normal;
  height: auto;
}

@media (max-width: 600px) {
  .site-header.ant-layout-header {
    padding-inline: clamp(0.5rem, 3vw, 1.25rem);
  }
}

.site-header .site-header__row.ant-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo nav theme";
  align-items: center;
  width: 100%;
  min-height: 64px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  grid-area: logo;
}

.site-header__logo .ant-btn {
  width: auto;
  height: auto;
  padding: 0;
}

.site-header__nav {
  display: flex;
  align-items: center;
  grid-area: nav;
  /* Push nav start away from the logo; logo stays on the content left edge */
  /* Shrinks with the viewport so the four links stay on one line */
  padding-left: clamp(0.25rem, calc((100vw - 280px) / 20), 3.5rem);
  min-width: 0;
}

.site-header__theme {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  grid-area: theme;
  margin-left: clamp(0.2rem, 1.5vw, 0.75rem);
}

@media (max-width: 360px) {
  .site-header .site-header__row.ant-row {
    grid-template-areas:
      "logo . theme"
      "nav nav nav";
    row-gap: 0.1rem;
  }

  .site-header__nav {
    justify-content: center;
    padding-left: 0;
    min-width: 0;
    overflow-x: auto;
  }

  .site-header__theme {
    margin-left: 0.5rem;
  }
}

.theme-switch.ant-switch {
  min-width: 55px;
  height: 28px;
  line-height: 26px;
  background: transparent !important;
  border: var(--site-line-width) solid var(--site-line-color);
  border-radius: 4px;
  box-shadow: none;
}

.theme-switch--dark.ant-switch {
  border-color: var(--site-line-color);
}

.theme-switch.ant-switch:hover:not(.ant-switch-disabled) {
  background: rgba(0, 21, 41, 0.04) !important;
}

.theme-switch--dark.ant-switch:hover:not(.ant-switch-disabled) {
  background: rgba(255, 255, 255, 0.06) !important;
}

.theme-switch.ant-switch.ant-switch-checked {
  background: transparent !important;
  border-color: var(--site-line-color);
}

.theme-switch--dark.ant-switch.ant-switch-checked {
  border-color: var(--site-line-color);
}

.theme-switch.ant-switch .ant-switch-handle {
  width: 20px;
  height: 20px;
  top: 3px;
  inset-inline-start: 4px;
  border-radius: 2px;
}

.theme-switch.ant-switch.ant-switch-checked .ant-switch-handle {
  inset-inline-start: calc(100% - 24px);
}

.theme-switch.ant-switch .ant-switch-handle::before {
  border-radius: 2px;
  background-color: #001529;
  box-shadow: none;
}

.theme-switch--dark.ant-switch .ant-switch-handle::before {
  background-color: #ffffff;
}

.theme-switch.ant-switch .ant-switch-inner {
  overflow: hidden;
  padding-inline: 28px 8px;
  font-size: 15px;
}

.theme-switch.ant-switch.ant-switch-checked .ant-switch-inner {
  padding-inline: 8px 28px;
}

.theme-switch.ant-switch .ant-switch-inner,
.theme-switch.ant-switch .ant-switch-inner .ant-switch-inner-unchecked,
.theme-switch.ant-switch .ant-switch-inner .ant-switch-inner-checked,
.theme-switch.ant-switch .ant-switch-inner .anticon {
  color: #001529 !important;
}

.theme-switch--dark.ant-switch .ant-switch-inner,
.theme-switch--dark.ant-switch .ant-switch-inner .ant-switch-inner-unchecked,
.theme-switch--dark.ant-switch .ant-switch-inner .ant-switch-inner-checked,
.theme-switch--dark.ant-switch .ant-switch-inner .anticon {
  color: #ffffff !important;
}

.theme-switch.ant-switch .ant-switch-inner .anticon {
  font-size: 15px;
  vertical-align: -0.05em;
}

/* Fully hide the inactive icon so it can't peek past the handle */
.theme-switch.ant-switch:not(.ant-switch-checked) .ant-switch-inner-checked,
.theme-switch.ant-switch.ant-switch-checked .ant-switch-inner-unchecked {
  visibility: hidden;
  opacity: 0;
}

.theme-switch.ant-switch:focus-visible {
  outline: 2px solid #001529;
  outline-offset: 3px;
}

.theme-switch--dark.ant-switch:focus-visible {
  outline-color: #ffffff;
}

.ant-layout-content {
     padding-top: 1%;
     padding-left: 5%;
     padding-right: 5%;
     padding-bottom: 5%;
}
.site-footer,
.site-footer__copy.ant-typography {
  font-size: var(--site-ui-font-size);
}

.site-footer .ant-divider-vertical {
  border-inline-start: var(--site-line-width) solid var(--site-line-color);
  background: none;
}

.home {
  --home-fg: #001529;
  --home-muted: rgba(0, 21, 41, 0.62);
  --home-accent: #001529;

  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0 1.5rem;
  color: var(--home-fg);
}

.home--dark {
  --home-fg: #fff;
  --home-muted: rgba(255, 255, 255, 0.68);
  --home-accent: #7eb6ff;
}

.home__hero {
  width: 100%;
  height: clamp(220px, 42vh, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  animation: home-enter 280ms ease both;
}

.home__illustration,
.home__illustration.ant-image,
.home .ant-image {
  display: block;
  width: min(520px, 100%);
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

.home__illustration img,
.home .ant-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home__tagline {
  margin: 0;
  max-width: 34rem;
  text-align: center;
  color: var(--home-muted);
  font-size: var(--site-ui-font-size);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  animation: home-enter 280ms ease both;
  animation-delay: 60ms;
}

.home__nav {
  width: 100%;
  animation: home-enter 280ms ease both;
  animation-delay: 120ms;
}

.home__nav-space.ant-space {
  flex-wrap: nowrap !important;
  justify-content: center;
  gap: clamp(0.5rem, 8vw, 2rem) !important;
}

@media (max-width: 240px) {
  .home__nav-space.ant-space {
    flex-direction: column !important;
    align-items: center;
    gap: 0.75rem !important;
    width: 100%;
  }
}

.home .ant-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 20vw, 64px) !important;
  height: clamp(36px, 20vw, 64px) !important;
}

.home__link.ant-btn {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem clamp(0.2rem, 2.5vw, 0.85rem);
  color: var(--home-fg) !important;
  font-size: var(--site-ui-font-size);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  border-radius: 12px;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.home__link.ant-btn > span {
  margin-top: 0;
  margin-inline-start: 0 !important;
  color: inherit;
}

.home__link.ant-btn:hover {
  color: var(--home-accent) !important;
  opacity: 1;
  transform: translateY(-2px);
}

.home__link.ant-btn:focus-visible {
  color: var(--home-accent) !important;
  outline: 2px solid var(--home-accent);
  outline-offset: 4px;
  opacity: 1;
}

@keyframes home-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home__hero,
  .home__tagline,
  .home__nav,
  .home__link.ant-btn {
    animation: none;
    transition: none;
  }

  .home__link.ant-btn:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .home {
    gap: 1.25rem;
    padding-bottom: 1rem;
  }

  .home__hero {
    height: clamp(180px, 36vh, 280px);
  }
}

.about-carousel {
  --carousel-border: var(--site-line-color);
  --carousel-surface: rgba(255, 255, 255, 0.72);
  --carousel-muted: rgba(0, 21, 41, 0.62);
  --carousel-accent: #001529;

  /* Fill the allotted intro column only — never grow into the copy column */
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 0;
  outline: none;
}

.about-carousel:focus-visible {
  box-shadow: 0 0 0 2px var(--carousel-accent);
  border-radius: 14px;
}

.about-carousel--dark {
  --carousel-border: var(--site-line-color);
  --carousel-surface: rgba(255, 255, 255, 0.03);
  --carousel-muted: var(--site-text-muted);
  --carousel-accent: #ffffff;
}

.about-carousel .ant-carousel {
  border: var(--site-line-width) solid var(--carousel-border);
  border-radius: 14px;
  background: var(--carousel-surface);
  overflow: hidden;
}

.about-carousel__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.5rem 0.85rem;
}

.about-carousel__image {
  display: block;
  width: 100%;
  /* Landscape-friendly frame within the column; contain avoids cropping */
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: rgba(0, 21, 41, 0.04);
}

.about-carousel--dark .about-carousel__image {
  background: rgba(255, 255, 255, 0.04);
}

.about-carousel__caption {
  margin: 0.75rem 0 0;
  font-size: var(--site-ui-font-size);
  line-height: 1.45;
  text-align: center;
  color: var(--carousel-muted);
}

.about-carousel .slick-dots {
  bottom: 0.35rem;
  left: 50%;
  right: auto;
  width: calc(100% - 2.5rem);
  max-width: calc(100% - 2.5rem);
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  box-sizing: border-box;
}

.about-carousel .slick-dots li,
.about-carousel .slick-dots li.slick-active {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: 11px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.about-carousel .slick-dots li button,
.about-carousel .slick-dots li.slick-active button {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--carousel-muted);
  opacity: 0.35;
}

.about-carousel .slick-dots li.slick-active button {
  background: var(--carousel-accent);
  opacity: 1;
}

.about-carousel .slick-prev,
.about-carousel .slick-next {
  width: 2.5rem;
  height: 2.5rem;
  border: var(--site-line-width) solid var(--carousel-border);
  border-radius: 999px;
  background: var(--carousel-surface);
  color: var(--carousel-accent);
  z-index: 2;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.about-carousel .slick-prev:hover,
.about-carousel .slick-next:hover {
  border-color: var(--carousel-accent);
  /* Keep antd's vertical centering (translateY(-50%)) while nudging up */
  transform: translateY(calc(-50% - 1px));
}

.about-carousel .slick-prev {
  left: 0.5rem;
}

.about-carousel .slick-next {
  right: 0.5rem;
}

.about-carousel .slick-prev::before,
.about-carousel .slick-next::before {
  color: var(--carousel-accent);
  font-size: 18px;
  opacity: 1;
}

/* antd 6 draws the chevron with ::after, sized for a 16px arrow.
   Center that mark inside the larger circular button. */
.about-carousel .slick-prev::after,
.about-carousel .slick-next::after {
  top: 50%;
  left: 50%;
  inset-inline-start: 50%;
  margin: 0;
}

.about-carousel .slick-prev::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.about-carousel .slick-next::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

/* Mobile: tighter inset; same fill behavior with a slightly smaller max size */
@media (max-width: 700px) {
  .about-carousel .slick-dots {
    width: calc(100% - 0.75rem);
    max-width: calc(100% - 0.75rem);
    gap: 0.14rem;
    bottom: 0.25rem;
  }

  .about-carousel .slick-dots li,
  .about-carousel .slick-dots li.slick-active {
    max-width: 9px;
  }
}

.experience-tabs {
  --tab-fg: #001529;
  --tab-muted: rgba(0, 21, 41, 0.62);
  --tab-border: var(--site-line-color);
  --tab-surface: rgba(255, 255, 255, 0.72);
  --tab-accent: #001529;
  --tab-hover-bg: rgba(0, 21, 41, 0.04);
}

.experience-tabs--dark {
  --tab-fg: var(--site-text-color);
  --tab-muted: var(--site-text-muted);
  --tab-border: var(--site-line-color);
  --tab-surface: transparent;
  --tab-accent: #ffffff;
  --tab-hover-bg: rgba(255, 255, 255, 0.06);
}

.experience-tabs.ant-tabs {
  color: var(--tab-fg);
}

/* Left tab rail */
.experience-tabs.ant-tabs-left > .ant-tabs-nav {
  min-width: 11rem;
  margin-right: 1.25rem;
}

.experience-tabs.ant-tabs-left > .ant-tabs-nav .ant-tabs-nav-wrap {
  padding: 0.35rem;
  border: var(--site-line-width) solid var(--tab-border);
  border-radius: 12px;
  background: var(--tab-surface);
}

.experience-tabs.ant-tabs-top > .ant-tabs-nav {
  margin-bottom: 1rem;
}

.experience-tabs.ant-tabs-top > .ant-tabs-nav .ant-tabs-nav-wrap {
  padding: 0.25rem;
  border: var(--site-line-width) solid var(--tab-border);
  border-radius: 12px;
  background: var(--tab-surface);
}

.experience-tabs .ant-tabs-tab {
  margin: 0 !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: 8px;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.experience-tabs .ant-tabs-tab .ant-tabs-tab-btn {
  font-size: var(--site-ui-font-size);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--tab-muted);
  text-shadow: none;
  transition: color 180ms ease;
}

.experience-tabs .ant-tabs-tab:hover {
  background: var(--tab-hover-bg);
}

.experience-tabs .ant-tabs-tab:hover .ant-tabs-tab-btn {
  color: var(--tab-fg);
}

.experience-tabs .ant-tabs-tab.ant-tabs-tab-active {
  background: var(--tab-hover-bg);
}

.experience-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--tab-accent) !important;
  font-weight: 600;
  text-shadow: none;
}

.experience-tabs .ant-tabs-ink-bar {
  display: none;
}

.experience-tabs > .ant-tabs-content-holder {
  border: var(--site-line-width) solid var(--tab-border);
  border-radius: 14px;
  background: var(--tab-surface);
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.experience-tabs > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {
  padding: 0;
}

/* Tab panel content */
.experience-role + .experience-role {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: var(--site-line-width) solid var(--tab-border);
}

.experience-role__title.ant-typography {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.experience-role__dates.ant-typography {
  margin: 0 0 1rem;
  color: var(--tab-muted);
  font-size: var(--site-ui-font-size);
  line-height: 1.4;
}

.experience-role__description.ant-typography {
  margin: 0 0 1.25rem;
  font-size: var(--site-ui-font-size);
  line-height: 1.65;
}

.experience-role__description ul {
  margin: 0;
  padding-left: 1.15rem;
}

.experience-role__description li {
  margin-bottom: 0.55rem;
}

.experience-role__description li:last-child {
  margin-bottom: 0;
}

.experience-role__skills {
  margin-top: 1.25rem;
}

.experience-role__skills-title.ant-typography {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--site-text-muted);
}

.experience-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.experience-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border: var(--site-line-width) solid var(--tab-border);
  border-radius: 12px;
  background: var(--tab-hover-bg);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.experience-skill:hover {
  border-color: var(--tab-accent);
  transform: translateY(-2px);
}

.experience-skill__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem;
  box-sizing: border-box;
}

.experience-tabs--dark .experience-skill__icon {
  background: rgba(255, 255, 255, 0.08);
}

.experience-skill__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.experience-skill__label {
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
  color: var(--site-text-color);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.experience-tabs .ant-tabs-tab .ant-tabs-tab-btn,
.experience-role .ant-typography {
  background: transparent;
}

.experience-role__dates.ant-typography,
.experience-role__skills-title.ant-typography {
  color: var(--site-text-muted);
}

@media (max-width: 768px) {
  .experience-tabs.ant-tabs-left > .ant-tabs-nav {
    min-width: 0;
    margin-right: 0;
  }

  .experience-tabs .ant-tabs-tab {
    padding: 0.5rem 0.7rem !important;
  }

  .experience-skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  }
}

.about-page {
  display: flex;
  flex-direction: column;
  gap: var(--site-section-gap);
}

.about-page__section {
  display: flex;
  flex-direction: column;
  gap: inherit;
  width: 100%;
}

.about-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: start;
}

.about-page__intro-copy .ant-typography {
  max-width: none;
  font-size: var(--site-ui-font-size);
  line-height: 1.65;
  margin-bottom: 0;
  color: var(--site-text-color);
  background: transparent;
}

.about-page__intro-copy p {
  margin: 0 0 1rem;
}

.about-page__intro-copy p:last-child {
  margin-bottom: 0;
}

.about-page__intro-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 180ms ease;
}

.about-page__intro-copy a:hover {
  opacity: 0.75;
}

.about-page--dark .about-page__intro-copy a {
  color: #7eb6ff;
}

.about-page__carousel {
  display: flex;
  justify-content: stretch;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.about-page__section-title .ant-typography {
  margin-bottom: 0.35rem;
}

.about-page .ant-divider {
  margin: 0.5rem 0 0;
}

@media (max-width: 900px) {
  .about-page__intro {
    grid-template-columns: 1fr;
  }

  .about-page__carousel {
    order: -1;
  }
}

.content-card {
  --card-bg: #fff;
  --card-fg: #001529;
  --card-muted: rgba(0, 21, 41, 0.62);
  --card-border: var(--site-line-color);
  --card-border-hover: var(--site-line-color);
  --card-shadow: 0 1px 2px rgba(0, 21, 41, 0.04);
  --card-shadow-hover: 0 14px 28px rgba(0, 21, 41, 0.12);
  --card-accent: #001529;
  --card-media-bg: rgba(0, 21, 41, 0.04);

  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: var(--site-line-width) solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--card-fg);
  box-shadow: var(--card-shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.content-card--dark {
  --card-bg: #001529;
  --card-fg: #fff;
  --card-muted: rgba(255, 255, 255, 0.68);
  --card-border: var(--site-line-color);
  --card-border-hover: var(--site-line-color);
  --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.35);
  --card-accent: #7eb6ff;
  --card-media-bg: rgba(255, 255, 255, 0.04);
}

.content-card:hover,
.content-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.content-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.content-card__link:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 3px;
}

.content-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-media-bg);
}

.content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
}

.content-card__media--contain img {
  object-fit: contain;
  padding: 1.25rem;
}

.content-card:hover .content-card__media img,
.content-card:focus-within .content-card__media img {
  transform: scale(1.04);
}

.content-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.content-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-muted);
}

.content-card__eyebrow {
  font-weight: 600;
}

.content-card__date {
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
}

.content-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 180ms ease;
}

.content-card:hover .content-card__title,
.content-card:focus-within .content-card__title {
  color: var(--card-accent);
}

.content-card__excerpt {
  margin: 0;
  color: var(--card-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card__cta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--card-fg);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.content-card__cta-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.content-card:hover .content-card__cta-arrow,
.content-card:focus-within .content-card__cta-arrow {
  transform: translateX(3px);
}

.content-card__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 1.2rem 0.85rem;
  padding-top: 0.65rem;
  border-top: var(--site-line-width) solid var(--card-border);
}

.content-card__actions .ant-btn {
  color: var(--card-fg);
}

.content-card__actions .ant-btn:hover {
  color: var(--card-accent) !important;
}

.ant-list-grid .ant-list-item {
  height: 100%;
  padding-block: 12px;
}

.ant-list-grid .ant-col {
  display: flex;
}

.ant-list-grid .ant-col > .ant-list-item {
  width: 100%;
}

.reactmd {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 1.5rem clamp(0.5rem, 3vw, 1.5rem) 3rem;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .reactmd {
        width: min(720px, 100%);
    }
}

@media (max-width: 768px) {
    .reactmd {
        width: 100%;
        padding: 0.75rem 0 2rem;
    }
}

.reactmd h1 {
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.375rem);
    line-height: 1.25;
}

.reactmd h2 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    line-height: 1.3;
}

.reactmd h3 {
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.35;
}

.reactmd p {
    margin: 1.1em 0;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.7;
}

.reactmd ul,
.reactmd ol {
    padding-left: 1.25em;
    margin: 1em 0;
}

.reactmd li {
    margin-bottom: 0.5em;
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.7;
}

.reactmd pre {
    overflow-x: auto;
    max-width: 100%;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
}

.reactmd code {
    font-size: 0.9em;
    word-break: break-word;
}

.reactmd pre code {
    word-break: normal;
}

.reactmd img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
}

.reactmd a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.reactmd__source,
.reactmd__status,
.reactmd__error {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--site-text-muted);
    margin: 0 0 1.5rem;
}

.reactmd__error {
    color: var(--site-text-color);
}

.reactmd table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.reactmd th,
.reactmd td {
    padding: 8px 16px;
    border: var(--site-line-width) solid var(--site-line-color);
}

/*
    Global CSS
*/

:root {
  --site-ui-font-size: 14px;
  --site-text-color: #001529;
  --site-text-muted: rgba(0, 21, 41, 0.62);
  --site-line-width: 1px;
  --site-line-color: rgba(0, 21, 41, 0.24);
  --site-section-gap: 2.5rem;
}

.app--dark {
  --site-text-color: #ffffff;
  --site-text-muted: rgba(255, 255, 255, 0.82);
  --site-line-color: rgba(255, 255, 255, 0.28);
}

html, body, #root {
    margin: 0;
    padding: 0;
    height: 100%;
    color: var(--site-text-color);
}

.App,
.template {
  min-height: 100%;
}

.template__shell.ant-space,
.template__shell > .ant-space-item {
  width: 100%;
  min-height: 100%;
}

.template .ant-layout {
  min-height: 100vh;
  min-height: 100dvh;
}

.template .ant-layout-content {
  flex: 1 1 auto;
}

.site-footer.ant-layout-footer {
  flex-shrink: 0;
}

.App .ant-divider-horizontal {
  border-block-start: var(--site-line-width) solid var(--site-line-color);
  background: none;
}

.App .ant-divider-vertical {
  border-inline-start: var(--site-line-width) solid var(--site-line-color);
  background: none;
}

.app--dark .ant-typography {
  color: var(--site-text-color);
  background: transparent;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: var(--site-section-gap);
}

.page-stack__section {
  display: flex;
  flex-direction: column;
  gap: inherit;
  width: 100%;
}

.page-stack__header .ant-typography {
  margin-bottom: 0.35rem;
}

.page-stack__header .ant-divider-horizontal {
  margin: 0.5rem 0 0;
}

.page-stack__intro.ant-typography {
  margin-bottom: 0;
  max-width: none;
  font-size: var(--site-ui-font-size);
  line-height: 1.65;
  color: var(--site-text-color);
  background: transparent;
}

.page-stack__list {
  margin: 0;
}

