/* Desktop archive refinement. Match the homepage's neutral surfaces and sans
   typography; retain the original mobile presentation and tablet motion.
   Design: preserve / variance 4 / motion unchanged / density 4.
   Specificity matches homepage-typography.css; !important is limited to
   declarations already locked by earlier homepage review styles. */
@media (min-width: 960px) {
  html.home-page .magic-home .magic-tablet {
    --archive-surface: #fbfcfc;
    --archive-sidebar: #f1f4f4;
    --archive-ink: #252a28;
    --archive-copy: #596365;
    --archive-muted: #616d70;
    --archive-accent: #246c72;
    --archive-line: #dfe5e5;
    --archive-font: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  }

  html.home-page .magic-home .magic-tablet .magic-tablet-card {
    background: linear-gradient(145deg, #33393b, #15191b 32%, #090c0d 72%, #262b2d) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%),
      inset 0 -1px 0 rgb(0 0 0 / 70%),
      0 16px 32px rgb(27 40 44 / 16%),
      0 32px 64px rgb(27 40 44 / 12%) !important;
  }

  html.home-page .magic-home .magic-tablet :is(.workspace-screen, .workspace-app, .workspace-content) {
    color: var(--archive-ink);
    background: var(--archive-surface);
    font-family: var(--archive-font);
  }

  html.home-page .magic-home .magic-tablet .workspace-sidebar {
    width: clamp(140px, 13.8vw, 180px);
    min-width: clamp(140px, 13.8vw, 180px);
    padding: 18px 12px 14px;
    border-right: 1px solid var(--archive-line);
    background: var(--archive-sidebar);
  }

  html.home-page .magic-home .magic-tablet .workspace-sidebar__brand {
    min-width: 0;
    min-height: 44px;
    gap: 7px;
    padding: 0 6px 14px;
    border-bottom-color: var(--archive-line);
  }

  html.home-page .magic-home .magic-tablet .workspace-sidebar__brand-name {
    color: var(--archive-ink);
    font-family: var(--archive-font);
    font-size: 14px;
    font-weight: 600;
  }

  html.home-page .magic-home .magic-tablet .workspace-nav {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 30px 0 0;
  }

  html.home-page .magic-home .magic-tablet .workspace-nav-link {
    min-width: 0;
    min-height: 44px;
    gap: 8px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    color: var(--archive-copy);
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  html.home-page .magic-home .magic-tablet .workspace-nav-link__label {
    font-family: var(--archive-font);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
  }

  html.home-page .magic-home .magic-tablet .workspace-nav-link::before {
    top: 13px;
    bottom: 13px;
    width: 2px;
    border-radius: 2px;
    background: var(--archive-accent);
  }

  html.home-page .magic-home .magic-tablet .workspace-nav-link:hover {
    color: var(--archive-accent);
    background: #e8eeee;
    transform: none;
  }

  html.home-page .magic-home .magic-tablet .workspace-nav-link.is-active {
    color: var(--archive-accent);
    background: #e2eded;
    box-shadow: none;
  }

  html.home-page .magic-home .magic-tablet .workspace-nav-link:focus-visible {
    color: var(--archive-accent);
    background: #e2eded;
    outline: 2px solid var(--archive-accent);
    outline-offset: 2px;
  }

  html.home-page .magic-home .magic-tablet .workspace-sidebar__footer {
    min-width: 0;
    padding: 0 8px;
    border-top-color: var(--archive-line);
    color: var(--archive-muted);
    font-size: 11px;
  }

  html.home-page .magic-home .magic-tablet .workspace-content {
    padding: 22px clamp(24px, 3vw, 44px) 14px;
  }

  html.home-page .magic-home .magic-tablet .workspace-topbar {
    flex: 0 0 auto;
    min-height: 43px;
    padding-bottom: 15px;
    border-bottom-color: var(--archive-line);
  }

  /* The view already contains its category; avoid a repeated eyebrow. */
  html.home-page .magic-home .magic-tablet .workspace-topbar p { display: none; }

  html.home-page .magic-home .magic-tablet .workspace-topbar h2 {
    color: var(--archive-ink);
    font-family: var(--archive-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
  }

  html.home-page .magic-home .magic-tablet .workspace-view {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #cad4d5 transparent;
  }

  html.home-page .magic-home .magic-tablet .workspace-kicker {
    margin-bottom: 12px;
    color: var(--archive-accent);
    font-family: var(--archive-font);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .04em;
  }

  html.home-page .magic-home .magic-tablet .workspace-view h3 {
    color: var(--archive-ink);
    font-family: var(--archive-font);
    font-size: clamp(27px, 2.45vw, 36px);
    font-weight: 600;
    line-height: 1.4 !important;
    letter-spacing: -.035em;
  }

  html.home-page .magic-home .magic-tablet :is(.company-intro__copy, .company-environment__copy) h3 {
    margin-bottom: 20px !important;
  }

  html.home-page .magic-home .magic-tablet :is(.company-intro__copy, .company-environment__copy, .company-history__heading) > p:not(.workspace-kicker) {
    color: var(--archive-copy);
    font-size: clamp(13px, 1.25vw, 15px) !important;
    font-weight: 400;
    line-height: 1.85 !important;
  }

  html.home-page .magic-home .magic-tablet .company-intro {
    min-height: 100%;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr) !important;
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: clamp(24px, 3vw, 46px) !important;
    row-gap: 0;
    padding: 26px 0;
  }

  html.home-page .magic-home .magic-tablet .company-intro__copy {
    padding: 0 !important;
  }

  html.home-page .magic-home .magic-tablet .company-intro__profile {
    grid-template-columns: 1fr;
    gap: 10px !important;
    margin: 22px 0 0 !important;
    padding: 16px 0 0 !important;
    border-top-color: var(--archive-line);
  }

  html.home-page .magic-home .magic-tablet .company-intro__profile div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
  }

  html.home-page .magic-home .magic-tablet .company-intro__profile dt {
    margin: 0;
    color: var(--archive-ink);
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.7;
  }

  html.home-page .magic-home .magic-tablet .company-intro__profile dd {
    color: var(--archive-copy);
    font-size: 12px;
    line-height: 1.7;
  }

  html.home-page .magic-home .magic-tablet .tablet-editorial-figure--intro {
    height: clamp(265px, 29vw, 400px);
    transform: none;
  }

  html.home-page .magic-home .magic-tablet .tablet-editorial-figure img {
    mix-blend-mode: multiply;
    filter: saturate(.85);
  }

  html.home-page .magic-home .magic-tablet .company-history {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(24px, 3.2vw, 48px);
    padding: 26px 0;
  }

  html.home-page .magic-home .magic-tablet .company-history__lead { gap: 20px; }
  html.home-page .magic-home .magic-tablet .tablet-editorial-figure--history {
    height: clamp(130px, 13vw, 185px);
    margin-top: 0;
    transform: none;
  }

  html.home-page .magic-home .magic-tablet .company-history__timeline {
    grid-template-columns: 1fr;
    align-self: center;
    border: 0;
  }

  html.home-page .magic-home .magic-tablet .company-history__timeline li {
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 4px;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--archive-line);
  }

  html.home-page .magic-home .magic-tablet .company-history__timeline li:first-child { padding-top: 0; }
  html.home-page .magic-home .magic-tablet .company-history__timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
  html.home-page .magic-home .magic-tablet .company-history__timeline li > span {
    color: var(--archive-accent);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
  }

  html.home-page .magic-home .magic-tablet .company-history__timeline h4 {
    color: var(--archive-ink);
    font-family: var(--archive-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
  }

  html.home-page .magic-home .magic-tablet .company-history__timeline p {
    margin: 0;
    color: var(--archive-copy);
    font-size: 12px !important;
    line-height: 1.75 !important;
  }

  html.home-page .magic-home .magic-tablet .company-environment {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(24px, 3vw, 44px);
    padding: 26px 0;
  }

  html.home-page .magic-home .magic-tablet .company-environment__image {
    align-self: center;
    height: clamp(250px, 27vw, 365px);
    border-radius: 6px;
    background: var(--archive-sidebar);
  }

  html.home-page .magic-home .magic-tablet .company-environment__image img { filter: saturate(.85); }
  html.home-page .magic-home .magic-tablet .company-environment__notes { margin-top: 24px !important; }
  html.home-page .magic-home .magic-tablet .company-environment__notes span {
    grid-template-columns: 20px 58px minmax(0, 1fr) !important;
    gap: 8px;
    padding: 10px 0;
    border-bottom-color: var(--archive-line);
  }

  html.home-page .magic-home .magic-tablet .company-environment__notes em { color: var(--archive-accent); }
  html.home-page .magic-home .magic-tablet .company-environment__notes b {
    color: var(--archive-ink);
    font-size: 12px !important;
    font-weight: 500;
  }
  html.home-page .magic-home .magic-tablet .company-environment__notes small {
    color: var(--archive-copy);
    font-size: 12px !important;
    line-height: 1.75 !important;
  }

  html.home-page .magic-home .magic-tablet .workspace-footer-note {
    border-top: 0;
    color: var(--archive-muted);
  }
}

/* Compact desktops retain the same hierarchy without crowding the screen. */
@media (min-width: 960px) and (max-width: 1199px) {
  html.home-page .magic-home .magic-tablet .workspace-content { padding-top: 18px; }
  html.home-page .magic-home .magic-tablet :is(.company-intro, .company-history, .company-environment) { padding: 20px 0; }
  html.home-page .magic-home .magic-tablet .workspace-view h3 { font-size: 26px; }
  html.home-page .magic-home .magic-tablet .company-intro__profile { gap: 8px !important; margin-top: 18px !important; padding-top: 14px !important; }
  html.home-page .magic-home .magic-tablet .company-intro__profile div { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  html.home-page .magic-home .magic-tablet .company-history__timeline li { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 11px 0; }
  html.home-page .magic-home .magic-tablet .company-environment__notes span { grid-template-columns: 16px 52px minmax(0, 1fr) !important; gap: 6px; }
}

@media (min-width: 960px) and (max-width: 1023px) {
  html.home-page .magic-home .magic-tablet .company-history { padding: 16px 0; }
  html.home-page .magic-home .magic-tablet .company-history__lead { gap: 12px; }
  html.home-page .magic-home .magic-tablet .tablet-editorial-figure--history { height: 110px; }
}

@media (min-width: 1200px) {
  html.home-page .magic-home .magic-tablet .workspace-nav-link__label { font-size: 14px; }
  html.home-page .magic-home .magic-tablet .company-intro__profile dt,
  html.home-page .magic-home .magic-tablet .company-environment__notes b { font-size: 13px !important; }
  html.home-page .magic-home .magic-tablet .company-intro__profile dd { font-size: 13px; }
  html.home-page .magic-home .magic-tablet .company-history__timeline p,
  html.home-page .magic-home .magic-tablet .company-environment__notes small { font-size: 13px !important; }
}
