/* SkillsWiki shared design and profession catalog */
body {
  --sw-ink: #101d2d;
  --sw-muted: #43586a;
  --sw-green: #096e57;
  --sw-line: #dfe8e8;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--sw-ink);
  background: #fcfdfd;
}
body .shell { width: min(1370px, calc(100% - 96px)); }
.sw-header { background: #fcfdfd; border-bottom: 1px solid #e8efed; }
.sw-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3.4vw, 57px);
}
.sw-brand { display: inline-flex; gap: 12px; align-items: center; font-size: 32px; font-weight: 800; letter-spacing: -.055em; color: var(--sw-ink); }
.sw-brand:hover { text-decoration: none; }
.sw-brand-mark { display: inline-flex; align-items: center; gap: 4px; padding-inline: 6px; height: 38px; }
.sw-brand-mark i { width: 13px; height: 35px; border-radius: 12px; transform: rotate(29deg); background: linear-gradient(155deg, #0b8d73, #4fceb2); box-shadow: inset 0 -3px 5px #08624a15; }
.sw-brand-mark i:last-child { height: 28px; align-self: end; margin-bottom: 1px; background: linear-gradient(175deg, #70cfb2, #0d8067); }
.sw-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 37px); }
.sw-nav a { color: var(--sw-ink); font-size: .95rem; font-weight: 650; white-space: nowrap; }
.sw-nav a:hover, .sw-nav a[aria-current] { color: var(--sw-green); }
.sw-search { display: flex; align-items: center; gap: 8px; width: min(100%, 382px); min-width: 0; padding: 0 12px; min-height: 44px; border: 1px solid var(--sw-line); border-radius: 12px; background: #fff; }
.sw-search:focus-within { border-color: var(--sw-green); }
.sw-search input { min-width: 0; flex: 1; padding: 8px 0; font: inherit; font-size: .87rem; color: var(--sw-ink); background: transparent; border: 0; }
.sw-search input::placeholder { color: var(--sw-muted); opacity: 1; }
.sw-search input:focus { outline: none; }
.sw-search button { display: grid; place-items: center; padding: 3px; border: 0; cursor: pointer; color: var(--sw-ink); background: none; }
.sw-search button svg { width: 20px; height: 20px; }
.sw-search kbd { font: 600 .72rem/1.2 system-ui, sans-serif; white-space: nowrap; padding: 4px 6px; color: var(--sw-muted); background: #f1f5f6; border-radius: 6px; }

.sw-hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.32fr); gap: clamp(26px, 4.3vw, 70px); align-items: center; padding: clamp(29px, 2.7vw, 40px) 0 22px; }
.sw-hero-tag { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 8px 13px; border-radius: 11px; background: #dcf5f0; color: #153a34; font-size: .86rem; font-weight: 650; line-height: 1.35; }
.sw-hero-tag svg { color: var(--sw-green); width: 18px; height: 18px; flex-shrink: 0; }
.sw-hero h1 { margin: 0; font-size: clamp(2.55rem, 3.55vw, 3.55rem); font-weight: 800; line-height: 1.05; letter-spacing: -.048em; text-wrap: balance; }
.sw-hero-intro { max-width: 51ch; margin: 20px 0 24px; color: var(--sw-muted); font-size: clamp(1rem, 1.28vw, 1.18rem); line-height: 1.45; text-wrap: pretty; }
.sw-hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.sw-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; color: var(--sw-ink); font-size: .92rem; font-weight: 700; }
.sw-button:hover { text-decoration: none; }
.sw-button svg { width: 19px; height: 19px; }
.sw-button-primary { background: var(--sw-green); color: white; }
.sw-button-primary:hover { background: #075844; }
.sw-button-outline { border-color: var(--sw-line); background: #fff; }
.sw-button-outline svg { color: var(--sw-green); }
.sw-button-outline:hover { border-color: #8bbdb0; background: #f2fbf8; }
.sw-hero-visual { position: relative; isolation: isolate; }
.sw-hero-visual img { display: block; width: 100%; aspect-ratio: 1.98; height: auto; object-fit: cover; object-position: 50% 70%; border-radius: 30% 23% 22% 18% / 28% 28% 24% 24%; mix-blend-mode: multiply; }
.sw-hero-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(6px, .9vw, 12px) clamp(7px, 1vw, 14px);
  border: 1px solid #d9e8e6;
  border-radius: 14px;
  box-shadow: 0 9px 25px #234c4020;
  color: var(--sw-ink);
  background: #fff;
  font-size: clamp(.70rem, 1.05vw, .97rem);
  font-weight: 700;
  white-space: nowrap;
}
.sw-hero-float svg { color: var(--sw-green); width: 20px; height: 20px; }
.sw-hero-float-skills { left: 18%; top: -1%; }
.sw-hero-float-career { right: 2%; top: 4%; }
.sw-hero-float-learning { left: 0; top: 30%; }
.sw-hero-float-levels { right: -1%; top: 40%; }

.sw-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 22px; padding: 12px 0; margin: 0; list-style: none; }
.sw-benefits li { min-width: 0; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 19px); }
.sw-benefits li:not(:first-child) { border-left: 1px solid var(--sw-line); padding-left: clamp(10px, 1.7vw, 26px); }
.sw-benefits svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--sw-green); }
.sw-benefits strong, .sw-benefits span { display: block; line-height: 1.3; }
.sw-benefits strong { font-size: .97rem; font-weight: 750; }
.sw-benefits span { color: var(--sw-muted); margin-top: 4px; font-size: .79rem; }

.sw-catalog { padding: clamp(32px, 3.2vw, 48px) 0 0; scroll-margin-top: 16px; }
.sw-catalog-page .sw-catalog { padding-bottom: 64px; }
.sw-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.sw-section-heading :is(h1, h2) { margin: 0; font-size: clamp(1.95rem, 2.85vw, 2.7rem); line-height: 1.1; letter-spacing: -.042em; font-weight: 800; }
.sw-text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--sw-green); font-size: .91rem; font-weight: 650; }
.sw-text-link svg { width: 19px; height: 19px; }
.sw-filters { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 25px; }
.sw-filters[hidden], .sw-profession-card[hidden] { display: none; }
.sw-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f0f3f5;
  color: var(--sw-ink);
  line-height: 1.25;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}
.sw-filters button:hover { border-color: #93c7ba; }
.sw-filters button[aria-pressed="true"] { color: white; background: var(--sw-green); }
.sw-filters button svg { width: 19px; height: 19px; }

.sw-profession-grid, .sw-learning-steps, .sw-career-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 29px); }
.sw-profession-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--sw-line); border-radius: 17px; overflow: hidden; background: #fff; transition: border-color .16s, box-shadow .16s; }
.sw-profession-card:hover, .sw-profession-card:focus-within { border-color: #85bdae; box-shadow: 0 8px 23px #12594014; }
.sw-profession-card:focus-within { outline: 2px solid var(--sw-green); outline-offset: 2px; }
.sw-profession-art { display: block; width: 100%; height: auto; aspect-ratio: 2.98; object-fit: cover; background: #eaf4f0; }
.sw-profession-copy { padding: 14px clamp(14px, 1.65vw, 24px); display: flex; flex-direction: column; flex: 1; }
.sw-profession-copy :is(h2, h3) { margin: 0 0 4px; font-size: clamp(1.08rem, 1.45vw, 1.32rem); font-weight: 800; line-height: 1.22; letter-spacing: -.025em; }
.sw-profession-copy :is(h2, h3) a { color: var(--sw-ink); }
.sw-profession-copy :is(h2, h3) a::after { position: absolute; inset: 0; content: ""; }
.sw-profession-copy p { margin: 0 0 12px; color: var(--sw-muted); font-size: .92rem; line-height: 1.38; }
.sw-profession-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; }
.sw-profession-bottom span:first-child { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--sw-muted); }
.sw-profession-bottom svg { width: 17px; height: 17px; color: var(--sw-green); }
.sw-profession-arrow { display: grid; place-items: center; flex: 0 0 36px; height: 29px; border-radius: 9px; background: #eaf5f1; }
.sw-profession-card:hover .sw-profession-arrow { background: #d6efe7; }

.sw-learning, .sw-career { padding: clamp(44px, 6vw, 88px) 0 0; }
.sw-career { margin-bottom: clamp(45px, 6vw, 88px); }
.sw-learning-steps { margin: 0; padding: 0; list-style: none; }
.sw-learning-steps li, .sw-career-grid article { min-width: 0; padding: 20px; border: 1px solid var(--sw-line); border-radius: 15px; background: #f4faf8; }
.sw-learning-steps li > svg { color: var(--sw-green); }
.sw-learning-steps h3, .sw-career-grid h3 { margin: 6px 0; font-size: 1rem; line-height: 1.4; }
.sw-learning-steps p { margin: 0; color: var(--sw-muted); font-size: .91rem; line-height: 1.45; }
.sw-career-grid article { background: white; }
.sw-career-grid a { color: var(--sw-ink); }
.sw-career-grid a svg { width: 17px; height: 17px; vertical-align: middle; color: var(--sw-green); }

@media (max-width: 1120px) {
  body .shell { width: calc(100% - 64px); }
  .sw-search kbd { display: none; }
  .sw-nav { gap: 15px; }
  .sw-hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.2rem); }
  .sw-desktop-break { display: none; }
}
@media (max-width: 850px) {
  body .shell { width: calc(100% - 40px); }
  .sw-header-inner { flex-wrap: wrap; min-height: 0; gap: 9px 22px; padding: 10px 0 12px; }
  .sw-nav { order: 2; width: 100%; justify-content: flex-start; gap: 12px clamp(14px, 4vw, 34px); flex-wrap: wrap; }
  .sw-search { width: min(57%, 345px); }
  .sw-hero { grid-template-columns: 1fr 1fr; gap: 18px; }
  .sw-hero-float-levels { display: none; }
  .sw-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .sw-benefits li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .sw-hero { grid-template-columns: 1fr; gap: 25px; padding-top: 26px; }
  .sw-hero-visual img { aspect-ratio: 1.84; object-position: 50% 62%; }
  .sw-hero h1 { max-width: 16ch; font-size: clamp(2rem, 7.2vw, 2.8rem); }
  .sw-hero-tag { margin-bottom: 14px; }
  .sw-hero-intro { margin: 15px 0 18px; }
  .sw-hero-float-levels { display: inline-flex; }
  .sw-hero-float { border-radius: 10px; }
  .sw-hero-float svg { width: 15px; height: 15px; }
  .sw-profession-grid, .sw-learning-steps, .sw-career-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-profession-art { aspect-ratio: 2.3; }
}
@media (max-width: 430px) {
  body .shell { width: calc(100% - 32px); }
  .sw-brand { font-size: 27px; gap: 7px; }
  .sw-brand-mark { transform: scale(.85); transform-origin: left center; margin-right: -5px; }
  .sw-header-inner { gap: 9px 10px; }
  .sw-nav { gap: 6px 13px; justify-content: space-between; }
  .sw-nav a { font-size: .78rem; }
  .sw-search { flex: 1; min-height: 36px; height: 36px; gap: 2px; padding-inline: 5px; }
  .sw-search input { font-size: .73rem; }
  .sw-search button svg { height: 16px; width: 16px; }
  .sw-hero-actions { column-gap: 8px; }
  .sw-button { min-height: 44px; padding-inline: 10px; font-size: .8rem; gap: 5px; }
  .sw-button svg { width: 15px; height: 15px; }
  .sw-hero-float-career { right: 0; }
  .sw-hero-float-levels { right: 0; }
  .sw-benefits { column-gap: 10px; }
  .sw-benefits svg { width: 23px; height: 23px; }
  .sw-benefits strong { font-size: .82rem; }
  .sw-benefits span { font-size: .73rem; }
  .sw-profession-grid, .sw-learning-steps, .sw-career-grid { grid-template-columns: 1fr; }
  .sw-profession-art { aspect-ratio: 2.75; }
  .sw-filters { gap: 7px; }
  .sw-filters button { font-size: .75rem; padding-inline: 9px; min-height: 35px; }
  .sw-filters button svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-profession-card { transition: none; }
}

/* Shared footer */
.sw-footer { border-color: var(--sw-line); background: #f2f8f6; }
.sw-footer-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 28px; padding-block: clamp(20px, 3vw, 38px);
}
.sw-footer .sw-brand { font-size: 1.6rem; }
.sw-footer .sw-brand-mark { transform: scale(.78); margin-right: -5px; }
.sw-footer p { margin: 0; color: var(--sw-muted); font-size: .9rem; }
.sw-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-inline-start: auto; }
.sw-footer nav a { color: var(--sw-ink); font-size: .9rem; font-weight: 650; }
.sw-footer nav a:hover, .sw-footer nav a[aria-current] { color: var(--sw-green); }
@media (max-width: 850px) {
  .sw-footer nav { margin-inline-start: 0; }
}
@media (max-width: 530px) {
  .sw-footer p { flex-basis: 100%; }
}
