:root {
  --ink: #101010;
  --line: #101010;
  --muted: #5c6670;
  --paper: #f7f3f4;
  --sky: #eaf7ff;
  --orange: #ff5a14;
  --yellow: #fff181;
  --mint: #94efc2;
  --pink: #ffc0cf;
  --blue: #b9e6fa;
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  min-height: 54px;
  border-bottom: 3px solid var(--line) !important;
  background: #fff !important;
}

.navbar .container-fluid,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.navbar-brand.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 0;
}

.navbar-brand.brand-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 2px 2px 0 var(--line);
}

.navbar .nav-link {
  font-weight: 800;
}

.page-shell {
  flex: 1 0 auto;
  padding-block: 28px;
}

.forge-hero {
  margin: -28px calc(50% - 50vw) 28px;
  padding: clamp(44px, 7vw, 92px) max(20px, calc((100vw - 1180px) / 2));
  text-align: center;
  background: var(--sky);
  border-bottom: 3px solid var(--line);
}

.hero-badge,
.quick-actions a,
.forge-search button,
.orange-banner a,
.search-summary a,
.load-more a,
.yellow-cta a,
.reset-filter,
.publish-form button,
.publish-actions a,
.role-page-search button,
.role-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--line);
  font-weight: 900;
}

.hero-badge {
  padding: 4px 18px;
  background: var(--mint);
  font-size: 0.9rem;
}

.forge-hero h1 {
  margin: 20px 0 4px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  font-weight: 950;
}

.forge-hero h1 span {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 8px;
  text-decoration-color: rgba(255, 90, 20, 0.25);
}

.skill-letters {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 44px);
  margin: 8px 0 18px;
}

.skill-letters b {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  font-weight: 400;
  -webkit-text-stroke: 2px var(--line);
  color: var(--pink);
  text-shadow: 2px 2px 0 #fff;
}

.skill-letters b:nth-child(2) {
  color: var(--mint);
}

.skill-letters b:nth-child(3) {
  color: var(--yellow);
}

.skill-letters b:nth-child(4) {
  color: var(--blue);
}

.skill-letters b:nth-child(5) {
  color: #ffa77d;
}

.forge-hero p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.8;
}

.forge-search {
  display: grid;
  grid-template-columns: minmax(0, 430px) 96px;
  justify-content: center;
  gap: 0;
  margin: 0 auto 16px;
}

.forge-search input {
  min-height: 48px;
  border: 3px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 16px;
  font-weight: 700;
  outline: none;
}

.forge-search button {
  min-height: 48px;
  border-radius: 0 8px 8px 0;
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quick-actions a {
  padding: 0 14px;
  min-height: 30px;
  box-shadow: 2px 2px 0 var(--line);
}

.quick-actions a:nth-child(1) {
  background: var(--yellow);
}

.quick-actions a:nth-child(2) {
  background: var(--mint);
}

.quick-actions a:nth-child(3) {
  background: var(--pink);
}

.quick-actions a:nth-child(4) {
  background: var(--orange);
  color: #fff;
}

.publish-toast {
  display: table;
  margin: 0 auto 16px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
  padding: 8px 18px;
  font-weight: 950;
}

.orange-banner,
.search-summary,
.yellow-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 940px;
  margin: 0 auto 48px;
  border: 4px solid var(--line);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--line);
}

.orange-banner {
  padding: 28px clamp(22px, 4vw, 46px);
  background: var(--orange);
  color: #fff;
}

.search-summary {
  padding: 24px clamp(22px, 4vw, 40px);
  background: var(--yellow);
}

.orange-banner span,
.search-summary span {
  font-weight: 900;
}

.orange-banner h2,
.search-summary h2,
.yellow-cta h2,
.section-title h2,
.section-heading-line h2,
.compact-list-section h2,
.creator-section h2,
.finder-panel h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: 0;
}

.orange-banner p,
.search-summary p,
.yellow-cta p {
  margin: 8px 0 0;
  font-weight: 700;
}

.orange-banner a,
.search-summary a {
  min-width: 132px;
  padding: 0 16px;
  color: var(--ink);
  box-shadow: none;
}

.section-title {
  margin: 34px 0 26px;
  text-align: center;
}

.section-title p {
  margin: 8px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-weight: 800;
}

.role-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.role-tile,
.skill-card,
.finder-panel,
.compact-list,
.creator-card {
  border: 3px solid var(--line);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--line);
}

.role-tile {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 16px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.role-tile:hover,
.role-tile.active,
.skill-card:hover,
.creator-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--line);
}

.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.role-tile strong {
  margin-top: 8px;
  font-size: 1.12rem;
  font-weight: 950;
}

.role-tile small {
  color: #333;
  font-weight: 700;
  line-height: 1.5;
}

.role-tile em {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-style: normal;
  font-weight: 950;
}

.card-yellow {
  background: var(--yellow);
}

.card-mint {
  background: var(--mint);
}

.card-pink {
  background: var(--pink);
}

.card-blue {
  background: var(--blue);
}

.role-tile.all {
  background: #fff;
}

.two-column-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
  scroll-margin-top: 24px;
}

.section-heading-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading-line span {
  font-weight: 900;
  color: var(--muted);
}

.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 16px;
  overflow: hidden;
}

.skill-top,
.skill-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.skill-top span,
.skill-top b {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 2px 8px;
}

.skill-card h3 {
  margin: 18px 0 8px;
  font-size: 1.08rem;
  font-weight: 950;
}

.skill-card p {
  margin: 0;
  color: #333;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.skill-footer {
  margin-top: auto;
  color: #303030;
}

.finder-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
  background: #fff;
}

.finder-panel p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pills a {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--sky);
  padding: 6px 10px;
  font-size: 0.9rem;
  font-weight: 900;
}

.category-pills a.active,
.category-pills a:hover {
  background: var(--orange);
  color: #fff;
}

.reset-filter {
  width: 100%;
  margin-top: 16px;
  background: var(--yellow);
}

.load-more {
  display: flex;
  justify-content: center;
  margin: 22px 0 0;
}

.load-more a {
  min-height: 42px;
  padding: 0 22px;
  background: var(--yellow);
}

.compact-list-section,
.creator-section {
  margin-bottom: 48px;
}

.compact-list-section h2,
.creator-section h2 {
  margin-bottom: 16px;
}

.compact-list {
  overflow: hidden;
  background: #fff;
}

.compact-row {
  display: grid;
  grid-template-columns: 32px minmax(120px, 1fr) minmax(160px, 1.2fr) 70px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 10px 16px;
  border-bottom: 2px solid var(--line);
  font-weight: 900;
}

.compact-row:last-child {
  border-bottom: 0;
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
}

.compact-row small {
  color: var(--muted);
  font-weight: 800;
}

.compact-row b {
  justify-self: end;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.creator-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  background: #fff7cc;
}

.creator-card:nth-child(2n) {
  background: #ffd6df;
}

.creator-card:nth-child(3n) {
  background: #d6f7e5;
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--blue);
  font-weight: 950;
}

.creator-card strong,
.creator-card span,
.creator-card small {
  display: block;
}

.creator-card strong {
  font-weight: 950;
}

.creator-card span,
.creator-card small {
  color: #3b3b3b;
  font-size: 0.86rem;
  font-weight: 800;
}

.yellow-cta {
  position: relative;
  padding: clamp(26px, 5vw, 48px);
  background: var(--yellow);
}

.yellow-cta p {
  max-width: 640px;
}

.yellow-cta div div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.yellow-cta a {
  min-width: 110px;
  padding: 0 16px;
}

.yellow-cta a:first-child {
  background: var(--ink);
  color: #fff;
}

.cta-circle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(82px, 12vw, 128px);
  height: clamp(82px, 12vw, 128px);
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--line);
  font-size: 2rem;
  font-weight: 950;
}

.footer {
  flex-shrink: 0;
  border-top: 3px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-weight: 800;
}

.publish-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.publish-intro,
.publish-form {
  border: 4px solid var(--line);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--line);
}

.publish-intro {
  position: sticky;
  top: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--yellow);
}

.publish-intro span {
  display: inline-flex;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 12px;
  font-weight: 950;
}

.publish-intro h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 950;
}

.publish-intro p {
  margin: 0;
  color: #333;
  font-weight: 800;
  line-height: 1.8;
}

.publish-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  background: #fff;
}

.publish-form label {
  display: grid;
  gap: 8px;
}

.publish-form label.wide,
.publish-actions.wide,
.publish-form .validation-summary-errors {
  grid-column: 1 / -1;
}

.publish-form strong {
  font-weight: 950;
}

.publish-form input,
.publish-form select,
.publish-form textarea {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--sky);
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.publish-form textarea {
  resize: vertical;
}

.publish-form input:focus,
.publish-form select:focus,
.publish-form textarea:focus {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--line);
}

.field-validation-error,
.validation-summary-errors {
  color: #d01818;
  font-size: 0.9rem;
  font-weight: 900;
}

.field-validation-valid {
  display: none;
}

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

.publish-form button,
.publish-actions a {
  min-height: 44px;
  padding: 0 22px;
}

.publish-form button {
  background: var(--orange);
  color: #fff;
}

.publish-actions a {
  background: var(--yellow);
}

.role-page-hero {
  margin: -28px calc(50% - 50vw) 28px;
  padding: 24px max(20px, calc((100vw - 1180px) / 2)) 34px;
  background: color-mix(in srgb, var(--role-accent) 12%, #fff);
  border-bottom: 3px solid var(--line);
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: #575757;
  font-weight: 900;
}

.role-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.role-page-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 1.3rem;
  font-weight: 950;
}

.role-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
}

.role-title-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.role-page-tools {
  max-width: 1100px;
  margin-inline: auto;
}

.role-page-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  max-width: 560px;
  margin-bottom: 14px;
}

.role-page-search input {
  min-height: 44px;
  border: 3px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 14px;
  font-weight: 800;
  outline: none;
}

.role-page-search button {
  min-height: 44px;
  border-radius: 0 8px 8px 0;
  background: var(--orange);
  color: #fff;
  box-shadow: none;
}

.role-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.role-category-bar a {
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 12px;
  font-size: 0.88rem;
  font-weight: 950;
}

.role-category-bar a.active,
.role-category-bar a:hover {
  background: var(--orange);
  color: #fff;
}

.role-result-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 950;
}

.role-result-bar a {
  color: var(--orange);
}

.role-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}

.role-skill-grid .skill-card {
  min-height: 250px;
}

.role-empty {
  border: 4px solid var(--line);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--line);
  padding: 32px;
}

.role-empty h2 {
  margin: 0 0 8px;
  font-weight: 950;
}

.role-empty p {
  color: #333;
  font-weight: 800;
}

.role-empty a {
  padding: 0 18px;
  background: var(--orange);
  color: #fff;
}

@media (max-width: 1040px) {
  .role-board,
  .creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-zone {
    grid-template-columns: 1fr;
  }

  .publish-shell {
    grid-template-columns: 1fr;
  }

  .role-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finder-panel {
    position: static;
  }

  .publish-intro {
    position: static;
  }

  .skill-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .navbar .container-fluid,
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .page-shell {
    padding-block: 18px;
  }

  .forge-hero {
    margin-top: -18px;
  }

  .forge-search,
  .role-page-search,
  .role-board,
  .skill-card-grid,
  .creator-grid,
  .publish-form,
  .role-skill-grid {
    grid-template-columns: 1fr;
  }

  .forge-search input,
  .role-page-search input {
    border-right: 3px solid var(--line);
    border-radius: 8px 8px 0 0;
  }

  .forge-search button,
  .role-page-search button {
    border-radius: 0 0 8px 8px;
  }

  .orange-banner,
  .yellow-cta,
  .section-heading-line,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-row {
    grid-template-columns: 30px 1fr 64px;
  }

  .compact-row small {
    grid-column: 2 / -1;
  }

  .skill-letters {
    gap: 10px;
  }
}
