/* Wrocław Talent Explorer - styles layered on top of styles.css */

.te-page {
  display: grid;
  gap: 8px;
  padding-bottom: 56px;
}

.top-actions a[aria-current="page"] {
  background: var(--sky);
}

/* ---------- Hero ---------- */
.te-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: center;
  margin-top: 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(246, 178, 63, 0.28), transparent 38%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(24px, 4vw, 52px);
  color: var(--white);
}

.te-hero .service-label {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.te-hero h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.te-hero h1 span {
  color: var(--amber);
}

.te-hero .lead {
  max-width: 640px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.6;
}

.te-question {
  max-width: 600px;
  margin: 0 0 24px;
  border-left: 4px solid var(--amber);
  padding: 4px 0 4px 16px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
}

.te-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.te-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.te-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.te-hero-flow {
  counter-reset: flow;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-hero-flow li {
  counter-increment: flow;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 700;
}

.te-hero-flow li::before {
  content: counter(flow);
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

/* ---------- Sub navigation ---------- */
.te-subnav {
  display: flex;
  gap: 6px;
  margin: 16px 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.te-subnav::-webkit-scrollbar {
  display: none;
}

.te-subnav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.te-subnav a:hover,
.te-subnav a:focus-visible {
  background: var(--sky);
}

/* ---------- Sections ---------- */
.te-section {
  display: grid;
  gap: 22px;
  scroll-margin-top: 140px;
  padding: 40px 0 8px;
}

.te-heading {
  max-width: 860px;
}

.te-kicker {
  margin: 0 0 8px;
  color: #b87a0b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.te-heading h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}

.te-heading p:not(.te-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.te-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* ---------- Problem ---------- */
.te-problems,
.te-outcome ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-problems li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 14px 16px 14px 46px;
  position: relative;
  color: var(--text);
  line-height: 1.45;
}

.te-problems li::before {
  content: "?";
  position: absolute;
  left: 14px;
  top: 12px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: #8a5a00;
  font-size: 13px;
  font-weight: 900;
}

.te-outcome {
  border-radius: 14px;
  background: var(--navy);
  padding: 22px;
  color: var(--white);
}

.te-outcome h3 {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 17px;
}

.te-outcome li {
  position: relative;
  padding-left: 28px;
  line-height: 1.45;
}

.te-outcome li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 900;
}

/* ---------- Layers ---------- */
.te-layers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.te-layer {
  border-radius: 16px;
  padding: 22px;
}

.te-layer h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 19px;
}

.te-layer > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.te-layer-existing {
  border: 1px dashed #9db6cc;
  background: var(--white);
}

.te-layer-local {
  border: 2px solid var(--amber);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.te-arrow {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 34px;
  font-weight: 900;
}

.te-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky-2);
  padding: 6px 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.te-gaps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-gaps li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.te-gaps li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
}

.te-gaps strong {
  color: var(--navy);
}

/* ---------- Status pill ---------- */
.te-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.te-status.live {
  background: #dcf5e4;
  color: #14602c;
}

.te-status.partial {
  background: var(--amber-soft);
  color: #8a5a00;
}

.te-status.planned {
  background: #e7edf3;
  color: #46586b;
}

/* ---------- Journey ---------- */
.te-journey {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr);
  gap: 18px;
  align-items: start;
}

.te-steps {
  display: grid;
  gap: 8px;
}

.te-steps button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.te-steps button b {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  font-size: 14px;
}

.te-steps button:hover {
  border-color: #9db6cc;
}

.te-steps button[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  transform: translateX(4px);
}

.te-steps button[aria-selected="true"] b {
  background: var(--amber);
  color: var(--navy);
}

.te-panels {
  min-height: 100%;
}

.te-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.js .te-panel {
  margin-bottom: 0;
}

.js .te-panel[hidden] {
  display: none;
}

.te-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
}

.te-panel-sub {
  margin: -6px 0 0;
  color: #b87a0b;
  font-weight: 800;
}

.te-panel p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.te-bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.5;
}

.te-bullets-lg {
  gap: 14px;
  font-size: 17px;
}

.te-link {
  width: fit-content;
  min-height: 0;
  color: var(--navy);
  font-weight: 800;
}

/* ---------- Industry map ---------- */
.te-map {
  margin-top: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
  padding: clamp(18px, 3vw, 36px);
}

.te-explorer {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 2fr);
  gap: 16px;
  align-items: start;
}

.te-areas {
  display: grid;
  gap: 6px;
}

.te-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 9px 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.te-area small {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--sky);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
}

.te-area:hover {
  border-color: #9db6cc;
}

.te-area[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.te-area[aria-selected="true"] small {
  background: var(--amber);
  color: var(--navy);
}

.te-area-detail {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.te-area-detail h3 {
  margin: 0;
  color: var(--navy);
  font-size: 26px;
}

.te-area-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.te-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.te-stats div {
  border-radius: 12px;
  background: var(--sky-2);
  padding: 12px 14px;
}

.te-stats strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.te-stats span {
  color: var(--muted);
  font-size: 13px;
}

.te-area-detail h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 15px;
}

.te-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.te-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.te-list li strong {
  display: block;
  color: var(--navy);
}

.te-list li span {
  color: var(--muted);
  font-size: 13px;
}

.te-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.te-badge {
  border-radius: 999px;
  background: var(--sky);
  padding: 2px 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.te-badge.dual {
  background: var(--amber);
}

.te-list a {
  min-height: 0;
  color: var(--navy);
  font-weight: 800;
}

.te-soon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.te-soon div {
  border: 1px dashed #b7c8d8;
  border-radius: 12px;
  background: #fafcfe;
  padding: 12px 14px;
}

.te-soon strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 14px;
}

.te-soon span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.te-soon .te-status {
  margin-top: 8px;
}

.te-open-map {
  width: fit-content;
}

.te-note,
.te-loading {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Roles ---------- */
.te-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.te-role {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 18px;
}

.te-role header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.te-role header b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--amber);
  font-size: 16px;
}

.te-role h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.te-role small {
  color: #b87a0b;
  font-weight: 800;
}

.te-role p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Resources ---------- */
.te-res-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.te-res {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 18px;
}

.te-res-tag {
  width: fit-content;
  border-radius: 999px;
  background: var(--amber-soft);
  padding: 3px 10px;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 800;
}

.te-res h3 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 19px;
}

.te-res small {
  color: var(--muted);
}

.te-res p {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.te-res-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.te-res-links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.te-res-links a:hover,
.te-res-links a:focus-visible {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Counsellor mock ---------- */
.te-mock {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow);
}

.te-mock figcaption {
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 800;
}

.te-mock figcaption em {
  color: var(--muted);
  font-weight: 400;
}

.te-mock-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.te-mock-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy) var(--w), var(--sky) var(--w));
}

.te-mock-row b {
  color: var(--navy);
  text-align: right;
}

/* ---------- Decision ---------- */
.te-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.te-say {
  border-radius: 14px;
  padding: 20px 22px;
}

.te-say span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.te-say p {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.te-say-no {
  border: 1px solid #f0c5c5;
  background: #fff5f5;
  color: #7a2323;
}

.te-say-no p {
  text-decoration: line-through;
  text-decoration-color: rgba(122, 35, 35, 0.45);
}

.te-say-yes {
  border: 1px solid #b9e0c6;
  background: #f1fbf4;
  color: #14602c;
}

.te-result {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-result li {
  border-radius: 14px;
  background: var(--navy);
  padding: 18px;
  color: var(--white);
}

.te-result strong {
  display: block;
  color: var(--amber);
  font-size: 28px;
  line-height: 1.1;
}

.te-result span {
  font-size: 14px;
}

/* ---------- Roadmap ---------- */
.te-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.te-roadmap li {
  border: 1px solid var(--line);
  border-top: 4px solid #b7c8d8;
  border-radius: 12px;
  background: var(--white);
  padding: 16px 18px;
}

.te-roadmap li.is-current {
  border-top-color: var(--amber);
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.te-stage {
  color: #b87a0b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.te-roadmap h3 {
  margin: 6px 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
}

.te-roadmap p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Final ---------- */
.te-final {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(24px, 4vw, 44px);
  color: var(--white);
}

.te-final h2 {
  margin: 0;
  color: var(--amber);
  font-size: 22px;
}

.te-final p {
  max-width: 760px;
  margin: 0 0 6px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.te-disclaimer {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .te-hero,
  .te-split,
  .te-journey,
  .te-explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .te-layers {
    grid-template-columns: minmax(0, 1fr);
  }

  .te-arrow {
    transform: rotate(90deg);
  }

  .te-roles,
  .te-roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-steps,
  .te-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-hero-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .te-res-grid,
  .te-roles,
  .te-roadmap,
  .te-compare,
  .te-two,
  .te-soon,
  .te-steps,
  .te-areas,
  .te-hero-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .te-result,
  .te-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .te-steps button[aria-selected="true"] {
    transform: none;
  }

  .te-mock-row {
    grid-template-columns: 90px minmax(0, 1fr) 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .te-steps button,
  .te-area {
    transition: none;
  }
}

@media print {
  .site-header,
  .te-subnav,
  .te-hero-actions {
    display: none;
  }

  .js .te-panel[hidden] {
    display: grid;
  }
}
