:root {
  --wl-ink: #172028;
  --wl-muted: #5e6b75;
  --wl-line: #d9e0e4;
  --wl-soft: #f6f8f9;
  --wl-accent: #246878;
  --wl-accent-dark: #194f5b;
  --wl-width: 1120px;
}

.wheel-library-page {
  min-height: 100vh;
  background: #ffffff;
  color: var(--wl-ink);
}

.wheel-library-page main {
  padding: 3.2rem 0 0;
}

.wheel-library-page a {
  color: var(--wl-accent);
}

.wl-skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border: 2px solid var(--wl-accent);
  border-radius: 6px;
  background: #ffffff;
  color: var(--wl-ink);
  transform: translateY(-160%);
}

.wl-skip-link:focus {
  transform: translateY(0);
}

.wheel-library-page .wl-header {
  --sc-header-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-bottom-color: var(--wl-line);
  background: #ffffff;
  box-shadow: none;
  font-family: var(--sc-header-font);
}

.wheel-library-page .wl-header__inner {
  max-width: calc(var(--wl-width) + 48px);
  margin: 0 auto;
  padding-inline: 24px;
}

.wheel-library-page .logo-text {
  color: var(--wl-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.wl-header__right,
.wl-nav {
  display: flex;
  align-items: center;
}

.wl-header__right {
  gap: 22px;
}

.wl-nav {
  gap: 20px;
}

.wl-nav a {
  color: #34434e;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.wl-nav a[aria-current="page"] {
  color: var(--wl-ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.wl-header__cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 6px;
  background: var(--wl-accent);
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.wl-wrap {
  width: min(var(--wl-width), calc(100% - 48px));
  margin: 0 auto;
}

.wl-hero {
  padding: 36px 0 30px;
  border-bottom: 1px solid var(--wl-line);
  background: var(--wl-soft);
}

.wl-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 17px;
  color: var(--wl-muted);
  font-size: 0.82rem;
}

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

.wl-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--wl-ink);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.wl-intro {
  max-width: 740px;
  margin: 13px 0 0;
  color: var(--wl-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.wl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.wl-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 700 0.9rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  text-decoration: none !important;
}

.wl-button--primary {
  background: var(--wl-accent);
  color: #ffffff !important;
}

.wl-button:hover,
.wl-header__cta:hover {
  text-decoration: none;
}

.wl-button--primary:hover,
.wl-header__cta:hover {
  background: var(--wl-accent-dark);
}

.wl-catalog {
  padding: 0 0 58px;
}

.wl-review-note {
  margin: 24px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #d39b33;
  background: #fffaf0;
  color: #62481d;
  font-size: 0.9rem;
}

.wl-finder {
  margin-top: 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--wl-line);
}

.wl-finder__heading {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wl-finder__search label,
.wl-category-nav > span {
  color: var(--wl-ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.wl-finder__heading p {
  margin: 0;
  color: var(--wl-muted);
  font-size: 0.82rem;
}

.wl-finder__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.wl-finder input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #aebdc4;
  border-radius: 7px;
  background: #ffffff;
  color: var(--wl-ink);
  font: 500 1rem/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wl-finder input::placeholder {
  color: #71808a;
}

.wl-finder input:focus {
  border-color: var(--wl-accent);
}

.wl-finder__input-row button {
  min-width: 68px;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid #aebdc4;
  border-radius: 7px;
  background: #ffffff;
  color: var(--wl-accent-dark);
  font: 700 0.86rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.wl-finder__status {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: var(--wl-muted);
  font-size: 0.78rem;
}

.wl-category-nav {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-top: 16px;
}

.wl-category-nav > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 17px;
}

.wl-category-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-bottom: 1px solid transparent;
  color: #3c4b55;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.wl-category-nav a:hover {
  border-bottom-color: var(--wl-accent);
  color: var(--wl-accent-dark);
}

.wl-category-nav a[aria-current="page"] {
  border-bottom-color: var(--wl-ink);
  color: var(--wl-ink);
}

.wl-search-empty {
  margin-top: 36px;
  padding: 26px;
  border: 1px solid var(--wl-line);
  border-radius: 8px;
  background: var(--wl-soft);
}

.wl-search-empty h2 {
  margin: 0 0 8px;
  color: var(--wl-ink);
  font-size: 1.2rem;
}

.wl-search-empty p {
  margin: 0 0 14px;
  color: var(--wl-muted);
}

.wl-search-empty a,
.wl-empty a {
  font-weight: 700;
}

.wheel-library-page [hidden] {
  display: none !important;
}

.wl-group {
  padding: 38px 0 0;
}

.wl-group__heading {
  display: flex;
  gap: 30px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--wl-ink);
}

.wl-group__heading h2 {
  margin: 0;
  color: var(--wl-ink);
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}

.wl-group__heading p {
  max-width: 580px;
  margin: 0;
  color: var(--wl-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: right;
}

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

.wl-item {
  min-width: 0;
  border-bottom: 1px solid var(--wl-line);
}

.wl-link {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.35fr) minmax(150px, auto) auto;
  gap: 20px;
  min-height: 92px;
  align-items: center;
  padding: 18px 4px;
  color: inherit !important;
  text-decoration: none !important;
}

.wl-link__title {
  color: var(--wl-ink);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.wl-link__description {
  color: var(--wl-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.wl-link__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #4d5c66;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wl-link__action {
  color: var(--wl-accent);
  font-size: 0.8rem;
  font-weight: 750;
  white-space: nowrap;
}

.wl-link:hover .wl-link__title {
  color: var(--wl-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wl-empty {
  max-width: 680px;
  margin: 42px 0 0;
  padding: 26px 0;
  border-top: 2px solid var(--wl-ink);
  border-bottom: 1px solid var(--wl-line);
}

.wl-empty h2,
.wl-empty p {
  margin-top: 0;
}

.wl-empty p {
  color: var(--wl-muted);
}

.wl-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--wl-line);
  color: var(--wl-muted);
  font-size: 0.86rem;
}

.wl-pagination a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.wl-pagination a:last-child {
  justify-self: end;
}

.wl-pagination > span[aria-current="page"] {
  color: var(--wl-ink);
  font-variant-numeric: tabular-nums;
}

.wl-community {
  padding: 30px 0;
  border-top: 1px solid var(--wl-line);
  background: var(--wl-soft);
}

.wl-community__inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.wl-community h2 {
  margin: 0 0 5px;
  color: var(--wl-ink);
  font-size: 1.15rem;
}

.wl-community p {
  max-width: 760px;
  margin: 0;
  color: var(--wl-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wl-community a {
  flex: 0 0 auto;
  font-weight: 700;
}

.wheel-library-page .wl-footer {
  border-top-color: #d5dde1;
  background: #172128;
}

.wheel-library-page :focus-visible {
  outline: 3px solid #d39b33;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .wl-link {
    grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1.25fr) auto;
  }

  .wl-link__meta {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .wl-link__action {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .wl-nav {
    display: none;
  }

  .wl-wrap {
    width: min(var(--wl-width), calc(100% - 32px));
  }

  .wheel-library-page .wl-header__inner {
    padding-inline: 16px;
  }

  .wl-hero {
    padding: 30px 0 26px;
  }

  .wl-category-nav,
  .wl-group__heading {
    display: grid;
    gap: 7px;
  }

  .wl-group {
    padding-top: 32px;
  }

  .wl-group__heading p {
    max-width: none;
    text-align: left;
  }

  .wl-community__inner {
    display: grid;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .wl-finder__heading {
    display: block;
  }

  .wl-finder__heading p {
    margin-top: 4px;
  }

  .wl-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 16px;
    min-height: 0;
    padding: 18px 0;
  }

  .wl-link__description,
  .wl-link__meta {
    grid-column: 1 / -1;
  }

  .wl-link__meta {
    grid-row: auto;
  }

  .wl-link__action {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 420px) {
  .wl-header__cta {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .wl-actions {
    display: grid;
  }

  .wl-finder__input-row {
    grid-template-columns: 1fr;
  }

  .wl-finder__input-row button {
    justify-self: start;
    min-height: 42px;
  }

  .wl-button {
    width: 100%;
  }

  .wl-pagination {
    gap: 10px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-library-page *,
  .wheel-library-page *::before,
  .wheel-library-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
