/* Standalone website only. Match the homepage and model workbench UI scale;
   keep the shared embedded storefront independent of website typography. */
@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/openfox-ui/public-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --of-ui-font: 'Public Sans Variable', 'Public Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --of-navigation-font: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --of-header-height: 64px;
  --of-sidebar-width: 256px;
  --of-ui-text: 16px;
  --of-ui-small: 14px;
  font-family: var(--of-ui-font);
  /* Keep navigation anchored while the catalog changes document height.
     Homepage/workbench use the same thin scrollbar. */
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.skill-storefront {
  font-family: var(--of-ui-font);
  font-size: var(--of-ui-text);
  line-height: 1.5;
}
.site-header { height: var(--of-header-height); }
.header-inner { height: var(--of-header-height); padding: 0 16px; }
.brand { gap: 10px; font-family: var(--of-navigation-font); }
.brand-logo { width: 30px; height: 30px; }
.brand-name { font-size: 18px; font-weight: 650; letter-spacing: -.45px; line-height: 1.5; }
.product-nav a { font-family: var(--of-navigation-font); font-size: 15px; min-height: 36px; line-height: 24px; padding: 6px 10px; }
.theme-button, .account-trigger { width: 36px; height: 36px; }
.header-actions { gap: 8px; }
.header-actions > .account-login,
.header-actions > .account-menu { flex: 0 0 36px; width: 36px; }
.header-actions .sign-in {
  width: 36px; height: 36px; min-height: 36px; padding: 0;
  justify-content: center; gap: 0; border: 0; border-radius: 8px;
  background: transparent;
}
/* Retain the accessible login name without changing the header's geometry. */
.header-actions .sign-in-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.header-actions .sign-in:disabled { opacity: .5; }

.skill-storefront .directory-layout { grid-template-columns: var(--of-sidebar-width) minmax(0, 1fr); }
.skill-storefront .directory-filters { padding: 24px 12px; top: var(--of-header-height); max-height: calc(100vh - var(--of-header-height)); }
.skill-storefront .directory-personal a,
.skill-storefront .directory-device-list label {
  min-height: 44px; padding: 10px 8px; gap: 10px;
  font-size: var(--of-ui-text); line-height: 24px;
}
.skill-storefront .directory-personal svg { width: 18px; height: 18px; }
.skill-storefront .directory-device-list input { width: 16px; height: 16px; flex-shrink: 0; }
.skill-storefront .directory-device-list label > span { font-size: var(--of-ui-small); }
.skill-storefront .directory-device-list legend { font-size: var(--of-ui-small); line-height: 20px; }
.skill-storefront .directory-results { padding: 24px 32px 40px; }
.skill-storefront .directory-search { height: 44px; border-radius: 10px; }
.skill-storefront .directory-search input { font: inherit; font-size: var(--of-ui-text); }
.skill-storefront .directory-toolbar h2 { font-size: var(--of-ui-small); line-height: 20px; }
.skill-storefront .directory-card-title,
.skill-storefront .card-title-row > a {
  font-size: var(--of-ui-text); line-height: 24px; font-weight: 600;
  white-space: normal; overflow-wrap: anywhere;
}
.skill-storefront .directory-card-title { min-height: 48px; margin-top: 10px; }
.skill-storefront .card-meta { font-size: var(--of-ui-small); line-height: 20px; flex-wrap: wrap; }
.skill-storefront .target-chips > span { font-size: 12px; line-height: 18px; }
.skill-storefront .stat-row strong { font-size: 14px; }
.skill-storefront .stat-row > span { font-size: 12px; }
.skill-storefront .detail-page--compact .detail-title h1,
.skill-storefront .personal-skills h1 { font-size: 24px; line-height: 32px; }
.skill-storefront .detail-page--compact .detail-summary,
.skill-storefront .detail-page--compact .public-description p,
.skill-storefront .detail-page--compact .public-description li { font-size: var(--of-ui-text); line-height: 1.75; }
.skill-storefront .detail-meta,
.skill-storefront .detail-install-help,
.skill-storefront .personal-description { font-size: var(--of-ui-small); }
.account-actions button, .account-current strong, .account-list strong { font-size: 14px; }
.account-current small, .account-list small { font-size: 12px; }

@container (max-width: 1023px) {
  .skill-storefront .directory-layout { grid-template-columns: 224px minmax(0, 1fr); }
  .skill-storefront .directory-results { padding: 24px; }
}
@container (max-width: 680px) {
  .skill-storefront .directory-layout { display: block; }
  .skill-storefront .directory-filters { position: static; max-height: none; padding: 16px; }
  .skill-storefront .directory-results { padding: 20px 16px 36px; }
  .skill-storefront .directory-personal a,
  .skill-storefront .directory-device-list label { font-size: 14px; min-height: 40px; padding: 8px; }
  .skill-storefront .directory-device-list input { width: 1px; height: 1px; }
  .skill-storefront .card-meta { font-size: 12px; }
  .skill-storefront .target-chips { max-width: 100%; }
  .skill-storefront .target-chips > span { white-space: normal; }
}
