/* ── Inheritor List / Detail Prototype Pages ─────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inheritor-list-page,
.inheritor-detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0, rgba(190, 117, 56, 0.08), transparent 30%),
    linear-gradient(180deg, #fffaf5 0%, #fffdfb 42%, #fffaf6 100%);
}

.inheritor-list-shell,
.inheritor-detail-shell {
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
}

.inheritor-list-hero {
  position: relative;
  min-height: 126px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(129, 79, 41, 0.08);
  border-bottom: 1px solid rgba(129, 79, 41, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 249, 241, 0.96) 0%, rgba(255, 249, 241, 0.82) 42%, rgba(78, 39, 18, 0.24) 100%),
    url('assets/generated/heritage-hero-v2.webp') center/cover no-repeat;
}

.inheritor-list-hero__inner {
  width: min(100% - 48px, 1480px);
  margin: 0 auto;
  padding: 24px 16px;
}

.inheritor-list-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  color: #3a2818;
  letter-spacing: 0;
}

.inheritor-list-hero p {
  margin: 10px 0 0;
  color: #5d4632;
  font-size: 18px;
  font-weight: 600;
}

.inheritor-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  color: #8b7462;
  font-size: 14px;
}

.inheritor-breadcrumb a {
  color: #7c6654;
}

.inheritor-breadcrumb a:hover,
.inheritor-breadcrumb strong {
  color: #3d2a1b;
}

.inheritor-filter-panel {
  display: grid;
  gap: 18px;
}

.inheritor-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 260px 260px minmax(140px, 0.55fr) auto;
  align-items: end;
  gap: 16px;
}

.inheritor-search {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 68px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(145, 91, 54, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.94);
  overflow: hidden;
}

.inheritor-search .search-icon {
  width: 18px;
  height: 18px;
  margin-left: 13px;
  color: #9b806b;
}

.inheritor-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #332418;
  font-size: 14px;
}

.inheritor-search button {
  height: 100%;
  border: 0;
  background: #9f4828;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.inheritor-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.inheritor-select span {
  color: #3f3024;
  font-weight: 700;
  white-space: nowrap;
}

.inheritor-select select,
.inheritor-filter-button {
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(145, 91, 54, 0.16);
  background: rgba(255, 253, 250, 0.96);
  color: #493527;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.inheritor-select--sort {
  display: block;
}

.inheritor-select--sort select {
  width: 100%;
}

.inheritor-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 92px;
  color: #9f4828;
  border-color: rgba(159, 72, 40, 0.4);
  font-weight: 700;
}

.inheritor-filter-button__icon {
  width: 16px;
  height: 16px;
}

.inheritor-category-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-height: 58px;
  border: 1px solid rgba(145, 91, 54, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  overflow: hidden;
}

.inheritor-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid rgba(145, 91, 54, 0.1);
  background: transparent;
  color: #493527;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.inheritor-category-tab:last-child {
  border-right: 0;
}

.inheritor-category-tab:hover,
.inheritor-category-tab.is-active {
  background: linear-gradient(180deg, #fbf2ea, #f4e9df);
  color: #9f4828;
}

.inheritor-category-tab__icon {
  width: 21px;
  height: 21px;
}

.inheritor-result-count {
  margin: 24px 0 14px;
  color: #3d3027;
  font-size: 15px;
}

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

.inheritor-card {
  overflow: hidden;
  border: 1px solid rgba(145, 91, 54, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 16px 32px rgba(70, 38, 18, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.inheritor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(159, 72, 40, 0.35);
  box-shadow: 0 18px 38px rgba(70, 38, 18, 0.12);
}

.inheritor-card__media {
  position: relative;
  display: block;
  height: 132px;
  overflow: hidden;
  background: #ead5c2;
}

.inheritor-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inheritor-card__ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(146, 68, 30, 0.9);
  color: #fff5eb;
  font-size: 12px;
  font-weight: 700;
}

.inheritor-card__body {
  padding: 14px 16px 16px;
}

.inheritor-card__headline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.inheritor-card__headline h2 {
  margin: 0;
  color: #2f241b;
  font-size: 17px;
  line-height: 1.25;
}

.inheritor-card__headline span {
  min-width: 0;
  max-width: 120px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f3dfd0;
  color: #a45c35;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inheritor-card__project {
  margin: 8px 0;
  color: #3e3025;
  font-size: 13px;
  font-weight: 600;
}

.inheritor-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7e6a58;
  font-size: 12px;
}

.inheritor-card__meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.inheritor-card__meta-icon {
  width: 14px;
  height: 14px;
  color: #a85a35;
  flex: 0 0 auto;
}

.inheritor-card__desc {
  min-height: 42px;
  margin: 10px 0 0;
  color: #746252;
  font-size: 12px;
  line-height: 1.7;
}

.inheritor-card__foot {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: #7d6a58;
  font-size: 12px;
}

.inheritor-card__foot a {
  justify-self: end;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(159, 72, 40, 0.36);
  border-radius: 6px;
  color: #a04929;
  font-weight: 700;
}

.inheritor-card__foot a:hover {
  background: #a04929;
  color: #fff;
}

.inheritor-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 22px 0 34px;
}

.inheritor-pagination button,
.inheritor-pagination span {
  min-width: 36px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(145, 91, 54, 0.14);
  background: rgba(255, 253, 250, 0.95);
  color: #3d3027;
  cursor: pointer;
}

.inheritor-pagination button.is-active {
  background: #a04929;
  border-color: #a04929;
  color: #fff;
}

.inheritor-empty {
  padding: 42px;
  border: 1px solid rgba(145, 91, 54, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  text-align: center;
  color: #7e6a58;
}

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

.inheritor-skeleton-grid div,
.inheritor-detail-loading {
  height: 270px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f7eadf, #fff9f4, #f7eadf);
  background-size: 220% 100%;
  animation: inheritorShimmer 1.2s ease-in-out infinite;
}

@keyframes inheritorShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.inheritor-detail-page {
  padding: 0 0 36px;
}

.inheritor-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.inheritor-detail-main,
.inheritor-detail-side {
  min-width: 0;
}

.inheritor-detail-side {
  display: grid;
  gap: 16px;
}

.inheritor-detail-hero {
  position: relative;
  min-height: 242px;
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr) auto;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(45, 25, 13, 0.18);
  background:
    linear-gradient(90deg, rgba(28, 15, 7, 0.08) 0%, rgba(31, 17, 8, 0.84) 44%, rgba(32, 18, 10, 0.94) 100%),
    var(--hero-image) left center/cover no-repeat;
  box-shadow: 0 18px 38px rgba(54, 31, 16, 0.12);
}

.inheritor-detail-hero::after {
  content: "传承匠心";
  position: absolute;
  right: 28px;
  top: 30px;
  writing-mode: vertical-rl;
  color: rgba(210, 136, 70, 0.42);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.16em;
}

.inheritor-detail-hero__portrait {
  align-self: stretch;
  min-height: 242px;
}

.inheritor-detail-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inheritor-detail-hero__content {
  position: relative;
  z-index: 1;
  padding: 30px 28px 28px;
  color: #fff5e9;
}

.inheritor-detail-hero__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.inheritor-detail-hero__title-row h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
  color: #fff5e9;
}

.inheritor-detail-hero__title-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0c882;
  color: #653414;
  font-weight: 800;
}

.inheritor-detail-hero__badge-icon,
.inheritor-detail-hero__region-icon {
  width: 17px;
  height: 17px;
}

.inheritor-detail-hero__project,
.inheritor-detail-hero__region,
.inheritor-detail-hero__slogan {
  margin: 12px 0 0;
  color: rgba(255, 243, 228, 0.92);
}

.inheritor-detail-hero__project {
  font-size: 20px;
  font-weight: 700;
}

.inheritor-detail-hero__region {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inheritor-detail-hero__slogan {
  font-size: 20px;
  font-family: var(--font-display);
}

.inheritor-detail-hero__metrics {
  display: flex;
  gap: 0;
  margin-top: 20px;
}

.inheritor-detail-hero__metrics div {
  min-width: 112px;
  padding: 0 26px;
  border-right: 1px solid rgba(255, 239, 222, 0.22);
}

.inheritor-detail-hero__metrics div:first-child {
  padding-left: 0;
}

.inheritor-detail-hero__metrics div:last-child {
  border-right: 0;
}

.inheritor-detail-hero__metrics strong,
.inheritor-detail-hero__metrics span {
  display: block;
}

.inheritor-detail-hero__metrics strong {
  color: #fff9ef;
  font-size: 24px;
}

.inheritor-detail-hero__metrics span {
  margin-top: 6px;
  color: rgba(255, 243, 228, 0.72);
  font-size: 13px;
}

.inheritor-follow-button {
  position: relative;
  z-index: 2;
  align-self: end;
  margin: 0 28px 20px 0;
  min-width: 124px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9793d, #9f4b27);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(76, 32, 12, 0.28);
}

.inheritor-detail-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 48px;
  margin-top: 10px;
  padding: 0 20px;
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(145, 91, 54, 0.14);
  border-bottom: 0;
  background: rgba(255, 253, 250, 0.98);
}

.inheritor-detail-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #4a382b;
  font-weight: 700;
  cursor: pointer;
}

.inheritor-detail-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: #a04929;
  transform: translateX(-50%);
}

.inheritor-detail-card,
.inheritor-side-card {
  border: 1px solid rgba(145, 91, 54, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.98);
  box-shadow: 0 14px 30px rgba(70, 38, 18, 0.07);
}

.inheritor-detail-card {
  padding: 22px 24px;
  margin-top: 0;
}

.inheritor-detail-card + .inheritor-detail-card {
  margin-top: 14px;
}

.inheritor-side-card {
  padding: 18px 20px;
}

.inheritor-detail-card h2,
.inheritor-side-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #3a281b;
  font-size: 18px;
}

.inheritor-section-icon {
  width: 20px;
  height: 20px;
  color: #a04929;
}

.inheritor-intro-card p {
  margin: 0;
  color: #4c3a2c;
  line-height: 1.9;
  text-indent: 2em;
}

.inheritor-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid rgba(145, 91, 54, 0.12);
  border-radius: 8px;
  background: #fbf3e8;
  overflow: hidden;
}

.inheritor-value-grid div {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 18px;
  border-right: 1px solid rgba(145, 91, 54, 0.12);
}

.inheritor-value-grid div:last-child {
  border-right: 0;
}

.inheritor-value-grid__icon {
  width: 32px;
  height: 32px;
  color: #a04929;
}

.inheritor-value-grid strong {
  color: #3a281b;
}

.inheritor-value-grid span {
  color: #75604e;
  font-size: 13px;
  line-height: 1.7;
}

.inheritor-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.inheritor-section-head h2 {
  margin: 0;
}

.inheritor-section-head a {
  color: #6e563f;
  font-size: 13px;
  font-weight: 700;
}

.inheritor-work-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.inheritor-work-card {
  overflow: hidden;
  border-radius: 7px;
  background: #f7ede3;
  border: 1px solid rgba(145, 91, 54, 0.12);
}

.inheritor-work-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
  display: block;
}

.inheritor-work-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 9px 10px;
}

.inheritor-work-card strong {
  min-width: 0;
  overflow: hidden;
  color: #3a281b;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inheritor-work-card span {
  color: #8a6f59;
  font-size: 12px;
}

.inheritor-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding-top: 12px;
}

.inheritor-timeline::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 22px;
  height: 2px;
  background: #b98663;
}

.inheritor-timeline__item {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.inheritor-timeline__item span {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 3px solid #a04929;
  background: #fffaf5;
}

.inheritor-timeline__item strong {
  color: #8d482b;
  font-size: 18px;
}

.inheritor-timeline__item p {
  margin: 0;
  color: #6f5947;
  font-size: 13px;
  line-height: 1.6;
}

.inheritor-profile-card {
  background:
    linear-gradient(120deg, rgba(255, 253, 250, 0.97), rgba(255, 247, 236, 0.94)),
    url('assets/generated/exhibit-museum-folk-courtyard-v1.webp') right bottom/48% auto no-repeat;
}

.inheritor-profile-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.inheritor-profile-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.inheritor-profile-card dt {
  color: #75604e;
}

.inheritor-profile-card dd {
  margin: 0;
  color: #3a281b;
  font-weight: 700;
}

.inheritor-side-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.inheritor-side-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.inheritor-honor-card {
  background:
    linear-gradient(120deg, rgba(255, 253, 250, 0.96), rgba(255, 247, 236, 0.95)),
    url('assets/generated/exhibit-museum-national-atrium-v1.webp') right bottom/42% auto no-repeat;
}

.inheritor-honor-card ul,
.inheritor-activity-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inheritor-honor-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4b382a;
  font-weight: 700;
}

.inheritor-honor-card__icon {
  width: 18px;
  height: 18px;
  color: #c48535;
}

.inheritor-activity-list a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #3a281b;
}

.inheritor-activity-list img {
  width: 58px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
}

.inheritor-activity-list span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inheritor-activity-list time {
  color: #8a6f59;
  font-size: 12px;
}

.inheritor-promo-card {
  min-height: 150px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  color: #8b421f;
  background:
    linear-gradient(90deg, rgba(246, 209, 149, 0.96), rgba(237, 174, 94, 0.72)),
    url('assets/generated/heritage-festival-v2.webp') right center/cover no-repeat;
  box-shadow: 0 16px 32px rgba(70, 38, 18, 0.1);
}

.inheritor-promo-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: #813915;
}

.inheritor-promo-card p {
  margin: 8px 0 16px;
  color: #8a4a23;
}

.inheritor-promo-card a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #9f4828;
  color: #fff;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .inheritor-card,
  .inheritor-category-tab,
  .inheritor-skeleton-grid div,
  .inheritor-detail-loading {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1280px) {
  .inheritor-filter-row {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(210px, 0.6fr));
  }

  .inheritor-category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inheritor-card-grid,
  .inheritor-skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inheritor-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .inheritor-detail-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .inheritor-list-shell,
  .inheritor-detail-shell,
  .inheritor-list-hero__inner {
    width: min(100% - 24px, 1480px);
  }

  .inheritor-filter-row {
    grid-template-columns: 1fr;
  }

  .inheritor-select {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .inheritor-category-tabs,
  .inheritor-card-grid,
  .inheritor-skeleton-grid,
  .inheritor-detail-side,
  .inheritor-value-grid,
  .inheritor-work-gallery,
  .inheritor-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inheritor-detail-hero {
    grid-template-columns: 1fr;
    background:
      linear-gradient(180deg, rgba(31, 17, 8, 0.1), rgba(31, 17, 8, 0.92)),
      var(--hero-image) center/cover no-repeat;
  }

  .inheritor-detail-hero__portrait {
    display: none;
  }

  .inheritor-follow-button {
    margin: 0 28px 24px;
    justify-self: start;
  }

  .inheritor-detail-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 10px;
  }

  .inheritor-timeline::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .inheritor-list-hero {
    min-height: 112px;
  }

  .inheritor-category-tabs,
  .inheritor-card-grid,
  .inheritor-skeleton-grid,
  .inheritor-detail-side,
  .inheritor-value-grid,
  .inheritor-work-gallery,
  .inheritor-timeline {
    grid-template-columns: 1fr;
  }

  .inheritor-card__foot {
    grid-template-columns: 1fr 1fr;
  }

  .inheritor-card__foot a {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }

  .inheritor-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }

  .inheritor-detail-hero__content,
  .inheritor-detail-card,
  .inheritor-side-card {
    padding: 18px;
  }

  .inheritor-detail-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inheritor-detail-hero__metrics div {
    min-width: 0;
    padding: 0 10px;
  }

  .inheritor-detail-hero__metrics strong {
    font-size: 18px;
  }

  .inheritor-detail-tabs {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .inheritor-profile-card dl div,
  .inheritor-activity-list a {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Design System – 乡村非遗 Heritage Platform
   Based on web-desgin.png specification
   ============================================ */
:root {
  /* Core Palette - Brown heritage theme (matching design spec) */
  --c-primary: #5D4037;
  --c-primary-light: #EFEBE9;
  --c-primary-dark: #3E2723;
  --c-primary-hover: #4E342E;
  --c-accent: #FF9800;
  --c-accent-light: #FFF3E0;

  /* Brown icon color */
  --c-icon: #5D4037;

  /* Neutrals - Warm cream/beige (matching design #F5F5F5 / #D7CCC8) */
  --c-bg: #F5F5F5;
  --c-bg-elevated: #FFFFFF;
  --c-bg-subtle: #EFEBE9;
  --c-bg-muted: #D7CCC8;
  --c-surface: #FFFFFF;
  --c-border: #D7CCC8;
  --c-border-light: #EFEBE9;
  --c-text: #3E2723;
  --c-text-secondary: #5D4037;
  --c-text-tertiary: #8D6E63;
  --c-text-inverse: #FFFFFF;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 14px rgba(93,64,55,0.3);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Typography */
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Serif SC", "STSong", serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 15px;
  --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 22px; --fs-3xl: 28px;
  --fs-4xl: 36px; --fs-5xl: 48px;
  --lh-tight: 1.25; --lh-normal: 1.6; --lh-relaxed: 1.7;

  /* Layout */
  --max-w: 1200px;
  --header-h: 64px;

  /* Animation */
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.container {
  width: min(100% - var(--sp-8), var(--max-w));
  margin: 0 auto;
}

/* ============================================
   Header – White background, clean navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border-light);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: var(--c-text-inverse);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.brand-text strong {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  font-family: var(--font-display);
}

.brand-text span {
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
}

/* Navigation */
.site-nav {
  display: flex;
  gap: var(--sp-1);
}

.site-nav a {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-xs);
  color: var(--c-text-secondary);
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: color var(--duration-fast) ease;
}

.site-nav a:hover { color: var(--c-primary); }
.site-nav a.active { color: var(--c-primary); font-weight: 600; }

/* Header Search */
.header-search-bar {
  flex: 1;
  max-width: 320px;
  min-width: 180px;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-full);
  padding: 7px 14px;
  transition: border-color var(--duration-fast) ease;
}

.header-search-form:focus-within {
  border-color: var(--c-primary);
}

.header-search-form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--fs-sm);
  color: var(--c-text);
  width: 100%;
}

.header-search-form input::placeholder { color: var(--c-text-tertiary); }

.header-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
  align-items: center;
}

.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: var(--c-text-inverse);
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.header-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  color: var(--c-text-secondary);
  transition: all var(--duration-fast) ease;
}
.header-icon:hover { background: var(--c-bg-subtle); color: var(--c-text); }
.header-icon[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  border: none;
  border-radius: var(--r-full);
  padding: 9px 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--c-accent);
  color: var(--c-text-inverse);
}
.btn.primary:hover { background: #F57C00; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,152,0,0.4); }

.btn.outline {
  background: transparent;
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
}
.btn.outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.btn.ghost {
  background: transparent;
  color: var(--c-text-secondary);
  font-weight: 500;
}
.btn.ghost:hover { background: var(--c-bg-subtle); color: var(--c-text); }

.btn.dark {
  background: var(--c-text);
  color: var(--c-text-inverse);
}
.btn.dark:hover { opacity: 0.9; }

.btn.wide { width: 100%; }

/* ============================================
   Hero Banner – Full-width with image overlay
   ============================================ */
.hero-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(30,20,10,0.45), rgba(30,20,10,0.65)),
    url('assets/generated/heritage-hero-v2.webp') center/cover no-repeat;
  color: var(--c-text-inverse);
  overflow: hidden;
}

.hero-banner .container {
  position: relative;
  z-index: 1;
  padding: var(--sp-16) var(--sp-4);
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: var(--sp-3);
}

.hero-content .hero-subtitle {
  font-size: var(--fs-xl);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--sp-8);
  font-weight: 300;
}

.hero-content .btn-discover {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 28px;
  background: #FF9800;
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.hero-content .btn-discover:hover {
  background: #F57C00;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Mobile preview panel (right side) */
.hero-mobile-preview {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
}
@media (min-width: 1100px) {
  .hero-mobile-preview { display: block; }
}
.hero-mobile-preview .mobile-header {
  background: var(--c-accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.hero-mobile-preview .mobile-body {
  padding: var(--sp-3);
}
.hero-mobile-preview .mobile-item {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border-light);
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
}
.hero-mobile-preview .mobile-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-accent-light);
  flex-shrink: 0;
}

/* ============================================
   Feature Icons Section – 6 icons in a row
   ============================================ */
.feature-icons {
  padding: var(--sp-10) 0;
  background: var(--c-surface);
}

.feature-icons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-4);
  text-align: center;
}

.feature-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}

.feature-icon-item:hover { transform: translateY(-3px); }

.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-primary-light);
  display: grid;
  place-items: center;
  transition: all var(--duration-fast) ease;
}

.feature-icon-item:hover .feature-icon-circle {
  background: var(--c-accent);
}

.feature-icon-circle svg {
  width: 28px; height: 28px;
  stroke: var(--c-icon);
  fill: none;
  stroke-width: 1.8;
  transition: stroke var(--duration-fast) ease;
}

.feature-icon-item:hover .feature-icon-circle svg {
  stroke: #fff;
}

.feature-icon-label {
  font-size: var(--fs-sm);
  color: var(--c-text);
  font-weight: 500;
}

/* ============================================
   Section Common
   ============================================ */
.section-block {
  padding: var(--sp-16) 0;
}

.section-head {
  margin-bottom: var(--sp-8);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-text);
}

.section-head p {
  color: var(--c-text-secondary);
  font-size: var(--fs-md);
  margin-top: var(--sp-2);
}

.section-head .view-more {
  font-size: var(--fs-sm);
  color: var(--c-primary);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}
.section-head .view-more:hover { color: var(--c-primary-dark); }

.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   Inheritor Cards (推荐传承人)
   ============================================ */
.inheritor-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: var(--sp-5);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
}

.inheritor-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  scroll-snap-align: start;
  transition: box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
  border: 1px solid var(--c-border-light);
}

.inheritor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.inheritor-card-photo {
  height: 160px;
  background: linear-gradient(135deg, #e8ddd0, #d5c8b5);
  position: relative;
  overflow: hidden;
}

.inheritor-card-photo::after {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.inheritor-card-info {
  padding: var(--sp-3) var(--sp-4);
}

.inheritor-card-info h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}

.inheritor-card-info .skill {
  font-size: var(--fs-xs);
  color: var(--c-primary);
  font-weight: 500;
  margin-bottom: var(--sp-1);
}

.inheritor-card-info .region {
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
}

/* ============================================
   Content Cards (精选内容)
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.content-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border-light);
  transition: box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.content-card-image {
  height: 140px;
  background: linear-gradient(135deg, #e0d4c4, #d0c2ae);
  position: relative;
}

.content-card-image .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,152,0,0.9);
  display: grid;
  place-items: center;
}

.content-card-image .play-icon svg {
  width: 18px; height: 18px; fill: #fff; margin-left: 2px;
}

.content-card-body {
  padding: var(--sp-3) var(--sp-4);
}

.content-card-body h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}

.content-card-body .learn-count {
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
}

/* ============================================
   Workshop Map + Timeline (数字工坊-地图时间轴)
   ============================================ */
.workshop-section {
  padding: var(--sp-16) 0;
  background: var(--c-bg-subtle);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-8);
  align-items: center;
}

.map-container {
  position: relative;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: var(--r-lg);
  min-height: 320px;
  overflow: hidden;
  padding: var(--sp-6);
}

.map-container svg.map-svg {
  width: 100%;
  height: auto;
}

.map-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255,152,0,0.3);
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}
.map-dot:hover { transform: scale(1.4); }

.map-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  color: var(--c-text);
  background: #fff;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-xs);
}

.timeline-container {
  background: #2c2c2c;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  color: #fff;
}

.timeline-container h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: #fff;
}

.timeline-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: var(--sp-4);
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}

.timeline-year {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  min-width: 42px;
}

.timeline-desc {
  font-size: var(--fs-sm);
  color: var(--c-accent);
}

/* ============================================
   Generic Card Grid
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card .media {
  height: 160px;
  background: linear-gradient(135deg, var(--c-bg-subtle), var(--c-bg-muted), var(--tone, var(--c-bg-muted)));
}

.card-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}

.card h3 { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.card p { margin: 0; color: var(--c-text-secondary); font-size: var(--fs-sm); }

.card .meta {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
}

.chip {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--c-bg-subtle);
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  border: 1px solid var(--c-border-light);
}

.chip.accent {
  background: var(--c-accent-light);
  color: #E65100;
  border-color: rgba(255,152,0,0.3);
  font-weight: 600;
}

.card .cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border-light);
}

.card .price {
  color: #E65100;
  font-weight: 700;
  font-size: var(--fs-lg);
}

.card .card-link {
  color: var(--c-primary);
  font-weight: 600;
}
.card:hover .card-link { color: var(--c-primary-dark); }

/* ============================================
   Expert Cards
   ============================================ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
}

.expert-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.expert-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.expert-avatar {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  margin: 0 auto var(--sp-3);
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-bg-subtle));
  display: grid; place-items: center;
  font-family: var(--font-display);
  color: var(--c-primary);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.expert-card h3 { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.expert-card p { margin: var(--sp-1) 0; font-size: var(--fs-xs); color: var(--c-text-tertiary); }

/* ============================================
   Stack Items (Events, Community)
   ============================================ */
.stack-list { display: grid; gap: var(--sp-3); }

.stack-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  transition: all var(--duration-normal) ease;
}

.stack-item:hover { box-shadow: var(--shadow-sm); }
.stack-item h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-base); font-weight: 600; }
.stack-item p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-secondary); }

/* ============================================
   Governance
   ============================================ */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.governance-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: center;
  transition: all var(--duration-normal) ease;
}
.governance-card:hover { box-shadow: var(--shadow-sm); }
.governance-card.highlight {
  background: var(--c-accent-light);
  border-color: rgba(255,152,0,0.2);
}
.governance-card span { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-tertiary); text-transform: uppercase; letter-spacing: 1px; }
.governance-card strong { display: block; font-size: var(--fs-2xl); font-weight: 800; margin: var(--sp-2) 0; }
.governance-card p { font-size: var(--fs-xs); color: var(--c-text-tertiary); }

/* ============================================
   CTA
   ============================================ */
.cta-card {
  background: linear-gradient(135deg, #3E2723, #1a1210);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-12);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,152,0,0.15), transparent 70%);
  pointer-events: none;
}

.cta-card h2 { color: #fff; font-size: var(--fs-3xl); font-weight: 700; position: relative; }
.cta-card p { color: rgba(255,255,255,0.65); font-size: var(--fs-md); position: relative; }

.cta-actions { display: flex; gap: var(--sp-3); flex-shrink: 0; position: relative; }
.cta-actions .btn.outline { border-color: rgba(255,255,255,0.25); color: #fff; }
.cta-actions .btn.outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ============================================
   Footer – Clean design matching spec
   ============================================ */
.site-footer {
  padding: var(--sp-10) 0 var(--sp-6);
  background: #3E2723;
  color: var(--c-text-inverse);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-left {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  color: rgba(255,255,255,0.9);
}

.footer-col a, .footer-col span {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-2);
  transition: color var(--duration-fast) ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-normal) ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-primary);
}

/* ============================================
   Skeleton Loader
   ============================================ */
.skeleton-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
  overflow: hidden;
}

.skeleton-media {
  height: 160px;
  background: linear-gradient(90deg, var(--c-bg-subtle) 25%, var(--c-bg-muted) 50%, var(--c-bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-lines { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.skeleton-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--c-bg-subtle) 25%, var(--c-bg-muted) 50%, var(--c-bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w100 { width: 100%; }
.skeleton-line.w40 { width: 40%; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Reveal Animation
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SPA: Section
   ============================================ */
.section { padding: var(--sp-12) 0; }
.section .container { padding: 0 var(--sp-4); }

/* ============================================
   SPA: Filter Controls
   ============================================ */
.courses-controls, .market-controls, .exhibits-controls,
.experts-controls, .community-controls, .events-controls {
  display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6);
}

.courses-search, .market-search, .exhibits-search,
.experts-search, .community-search, .events-search { margin-bottom: var(--sp-2); }

.courses-tags, .market-tags, .exhibits-tags,
.experts-tags, .community-tags, .events-tags {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  font-family: inherit;
}
.tag-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tag-chip--active { background: var(--c-primary); color: var(--c-text-inverse); border-color: var(--c-primary); }

.sort-btn {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-text-tertiary);
  font-size: var(--fs-xs);
  cursor: pointer;
  font-family: inherit;
}
.sort-btn:hover { color: var(--c-text); background: var(--c-bg-subtle); }
.sort-btn--active { background: var(--c-bg-subtle); color: var(--c-text); border-color: var(--c-border); }

/* ============================================
   SPA: Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-5) 0 var(--sp-4);
  font-size: var(--fs-sm); color: var(--c-text-tertiary);
}
.breadcrumb__link { color: var(--c-text-secondary); }
.breadcrumb__link:hover { color: var(--c-primary); }
.breadcrumb__sep { color: var(--c-text-tertiary); opacity: 0.5; }
.breadcrumb__current { color: var(--c-text); font-weight: 500; }

/* ============================================
   SPA: Detail Pages
   ============================================ */
.page-detail { min-height: 60vh; }
.page-detail .container { padding: 0 var(--sp-4); }
.detail-hero { padding: var(--sp-8) 0; }
.detail-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: var(--sp-3);
}
.detail-hero__desc { color: var(--c-text-secondary); font-size: var(--fs-md); line-height: var(--lh-relaxed); max-width: 640px; }
.detail-hero__meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text-tertiary); }
.detail-hero__rating { color: #f59e0b; font-weight: 600; }
.detail-hero__tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-3); }

.detail-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-8); align-items: start; }
.detail-main { min-width: 0; }
.detail-sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }

.detail-section__title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-4); }
.detail-description__body { color: var(--c-text-secondary); line-height: var(--lh-relaxed); white-space: pre-line; }

.stat-row { display: flex; gap: var(--sp-6); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border-light); margin-bottom: var(--sp-6); }
.stat-item__label { display: block; font-size: var(--fs-xs); color: var(--c-text-tertiary); margin-bottom: var(--sp-1); }
.stat-item__value { font-size: var(--fs-lg); font-weight: 700; }

.lesson-list { list-style: none; display: grid; gap: var(--sp-2); }
.lesson-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
}
.lesson-item:hover { border-color: var(--c-border); }
.lesson-item__num { width: 28px; height: 28px; border-radius: var(--r-xs); background: var(--c-bg-subtle); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; }
.lesson-item__check { color: var(--c-primary); font-weight: 700; margin-left: auto; }
.lesson-item__title { font-size: var(--fs-base); font-weight: 600; margin: 0; }
.lesson-item__desc { font-size: var(--fs-xs); color: var(--c-text-tertiary); margin: var(--sp-1) 0 0; }

.instructor-card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); background: var(--c-bg-subtle); border-radius: var(--r-md); margin-bottom: var(--sp-4); }
.instructor-card__avatar { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: var(--fs-md); }
.instructor-card__name { font-size: var(--fs-base); font-weight: 600; margin: 0; }
.instructor-card__role { font-size: var(--fs-xs); color: var(--c-text-tertiary); margin: var(--sp-1) 0 0; }

.detail-sidebar__actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.detail-sidebar__action { width: 100%; }
.btn--block { width: 100%; }
.btn--disabled { opacity: 0.6; cursor: not-allowed; }
.detail-sidebar__login-hint { text-align: center; font-size: var(--fs-sm); color: var(--c-text-tertiary); }
.detail-sidebar__login-hint a { color: var(--c-primary); font-weight: 600; }

.detail-not-found { text-align: center; padding: var(--sp-16) 0; }
.detail-not-found__icon { font-size: 3rem; margin-bottom: var(--sp-4); }
.detail-not-found__title { font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--sp-2); }
.detail-not-found__text { color: var(--c-text-secondary); margin-bottom: var(--sp-6); }

/* ============================================
   SPA: Auth Pages
   ============================================ */
.auth-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-8) var(--sp-4);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}
.auth-brand { text-align: center; margin-bottom: var(--sp-6); }
.auth-brand .brand-mark { width: 48px; height: 48px; margin: 0 auto var(--sp-3); border-radius: var(--r-md); background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.auth-brand h2 { font-size: var(--fs-lg); font-weight: 700; }
.auth-brand p { font-size: var(--fs-sm); color: var(--c-text-tertiary); margin-top: var(--sp-1); }

.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-secondary); }
.form-input {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--fs-base); color: var(--c-text);
  background: var(--c-bg-elevated);
  outline: none;
  transition: border-color var(--duration-fast) ease;
}
.form-input:focus { border-color: var(--c-primary); }
.form-input--error { border-color: #e74c3c; }
.form-error { font-size: var(--fs-xs); color: #e74c3c; }
.auth-error { padding: var(--sp-3); background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--r-sm); color: #dc2626; font-size: var(--fs-sm); text-align: center; }
.auth-footer { text-align: center; margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--c-text-tertiary); }
.auth-footer a { color: var(--c-primary); font-weight: 600; }

/* ============================================
   SPA: Cart
   ============================================ */
.cart-empty { text-align: center; padding: var(--sp-16) 0; }
.cart-empty__icon { font-size: 3rem; margin-bottom: var(--sp-4); }

.cart-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
}
.cart-item:hover { border-color: var(--c-border); }
.cart-item__image { width: 72px; height: 72px; border-radius: var(--r-sm); background: var(--c-bg-subtle); flex-shrink: 0; overflow: hidden; }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: var(--fs-base); font-weight: 600; margin: 0; }
.cart-item__name a { color: var(--c-text); }
.cart-item__name a:hover { color: var(--c-primary); }
.cart-item__price { font-size: var(--fs-sm); color: var(--c-text-tertiary); margin-top: var(--sp-1); }
.cart-item__qty { display: flex; align-items: center; gap: var(--sp-2); }
.cart-item__qty button { width: 32px; height: 32px; border-radius: var(--r-xs); border: 1px solid var(--c-border); background: var(--c-surface); font-size: var(--fs-md); font-weight: 600; display: grid; place-items: center; }
.cart-item__qty button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.cart-item__qty span { font-weight: 600; min-width: 24px; text-align: center; }
.cart-item__subtotal { font-weight: 700; color: var(--c-primary); min-width: 80px; text-align: right; }
.cart-item__remove { color: var(--c-text-tertiary); font-size: var(--fs-sm); }
.cart-item__remove:hover { color: #e74c3c; }

.cart-summary { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--r-md); margin-top: var(--sp-6); }
.cart-summary__total { font-size: var(--fs-lg); font-weight: 700; }
.cart-summary__total span { color: var(--c-primary); font-size: var(--fs-xl); }

/* ============================================
   SPA: Orders
   ============================================ */
.order-card { background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--r-md); overflow: hidden; }
.order-card:hover { border-color: var(--c-primary); }
.order-card__header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); background: var(--c-bg-subtle); font-size: var(--fs-sm); }
.order-card__id { font-weight: 600; }
.order-card__status { padding: 2px 10px; border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 600; color: #fff; }
.order-card__body { padding: var(--sp-4) var(--sp-5); }
.order-card__items { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.order-card__item-chip { font-size: var(--fs-xs); color: var(--c-text-secondary); background: var(--c-bg-subtle); padding: 2px 8px; border-radius: var(--r-full); }
.order-card__footer { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--c-border-light); }
.order-card__total { font-weight: 700; color: var(--c-primary); }

/* ============================================
   SPA: User Profile
   ============================================ */
.profile-card { text-align: center; padding: var(--sp-8); background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--r-lg); margin-bottom: var(--sp-8); }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary-light), var(--c-bg-subtle)); display: grid; place-items: center; margin: 0 auto var(--sp-4); font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 700; color: var(--c-primary); }
.profile-name { font-size: var(--fs-xl); font-weight: 700; margin-bottom: var(--sp-1); }
.profile-email { font-size: var(--fs-sm); color: var(--c-text-tertiary); }
.profile-role { display: inline-block; margin-top: var(--sp-2); padding: 2px 12px; border-radius: var(--r-full); background: var(--c-primary-light); color: var(--c-primary); font-size: var(--fs-xs); font-weight: 600; }
.profile-date { font-size: var(--fs-xs); color: var(--c-text-tertiary); margin-top: var(--sp-3); }

.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-3); }
.action-card { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-5); background: var(--c-surface); border: 1px solid var(--c-border-light); border-radius: var(--r-md); text-align: center; transition: all var(--duration-normal) var(--ease-out); color: var(--c-text); }
.action-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--c-primary); color: var(--c-primary); }
.action-card__icon { font-size: 1.5rem; }
.action-card__label { font-size: var(--fs-sm); font-weight: 600; }

/* ============================================
   SPA: Toast
   ============================================ */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 500;
  z-index: 9999; opacity: 0;
  transition: all 300ms var(--ease-out);
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: #065f46; color: #d1fae5; box-shadow: var(--shadow-md); }
.toast--error { background: #991b1b; color: #fecaca; box-shadow: var(--shadow-md); }

/* ============================================
   Search Form (generic)
   ============================================ */
.search-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 6px 8px 6px 16px;
}
.search-form:focus-within { border-color: var(--c-primary); }
.search-form input { border: none; background: transparent; outline: none; font-size: var(--fs-base); color: var(--c-text); }

.search-results { padding: var(--sp-12) 0; display: none; }
.search-results.is-active { display: block; }

/* ============================================
   Scroll Row
   ============================================ */
.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--sp-5);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-border) transparent;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: var(--r-full); }
.scroll-row .card { scroll-snap-align: start; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .feature-icons-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(3, 1fr); }
  .governance-grid { grid-template-columns: repeat(2, 1fr); }
  .workshop-grid { grid-template-columns: 1fr; }
  .hero-mobile-preview { display: none !important; }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: var(--sp-3) 0;
    gap: var(--sp-3);
  }
  .site-nav { flex-wrap: wrap; gap: var(--sp-1); }
  .header-search-bar { max-width: 100%; width: 100%; order: 10; }
  .header-actions { width: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .cta-card { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-left { flex-direction: column; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - var(--sp-6), var(--max-w)); }
  .feature-icons-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
  .feature-icon-circle { width: 44px; height: 44px; }
  .feature-icon-circle svg { width: 22px; height: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .governance-grid { grid-template-columns: 1fr; }
  .header-actions .btn { flex: 1; }
  .hero-banner { min-height: 320px; }
  .hero-content h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ============================================
   2026 UI Refactor Overrides
   ============================================ */
:root {
  --radius-xs: var(--r-xs);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
  --c-bg-primary: #fffdf8;
  --c-bg-secondary: #f5ede3;
  --c-bg-panel: #fcf7f0;
  --c-surface-strong: #fffaf3;
}

body {
  background:
    radial-gradient(circle at top left, rgba(191, 151, 111, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(120, 87, 54, 0.08), transparent 26%),
    #f8f3ec;
  color: #2d241d;
}

#app-main {
  min-height: calc(100vh - 280px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: auto;
  background: rgba(248, 243, 236, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(132, 95, 61, 0.12);
  box-shadow: 0 4px 22px rgba(55, 37, 18, 0.05);
}

.header-shell {
  padding: 14px 0;
}

.header-inner {
  min-height: 76px;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(157, 117, 78, 0.12);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(74, 44, 15, 0.08);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
  color: #36261b;
}

.brand-copy small {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9d7a57;
}

.site-nav {
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #6d5845;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a[data-active='true'],
.site-nav a:hover {
  color: #b36839;
  background: rgba(179, 104, 57, 0.1);
}

.header-search-form {
  flex: 1;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 44px;
  background: #fbf7f1;
  border: 1px solid rgba(157, 117, 78, 0.14);
  border-radius: 999px;
}

.header-search-form input,
.search-form input,
.search-bar__input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: #58422f;
}

.search-icon {
  width: 18px;
  height: 18px;
  color: #a18a73;
  flex: 0 0 auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f8f0e4;
  color: #6d5845;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
  position: relative;
}

.icon-btn:hover {
  background: #ead3ba;
  color: #9a5f37;
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.badge-btn[data-count]:not([data-count='0'])::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #d96c3f;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7d5334, #c28c57);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(122, 77, 36, 0.22);
}

.btn,
.btn--primary,
.btn--outline,
.btn--ghost,
.btn.primary,
.btn.outline,
.btn.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn--primary,
.btn.primary {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.22);
}

.btn--primary:hover,
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 152, 0, 0.35);
}

.btn--outline,
.btn.outline {
  background: rgba(255, 252, 246, 0.9);
  border-color: rgba(155, 101, 59, 0.2);
  color: #5D4037;
}

.btn--outline:hover,
.btn.outline:hover {
  border-color: #FF9800;
  color: #FF9800;
}

.btn--ghost,
.btn.ghost {
  background: transparent;
  color: #735b45;
}

.btn--ghost:hover,
.btn.ghost:hover {
  background: rgba(179, 104, 57, 0.08);
  color: #b36839;
}

.btn--block {
  width: 100%;
}

.hero-banner {
  min-height: 520px;
  margin: 22px auto 0;
  width: min(100% - 32px, 1480px);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(31, 18, 7, 0.8) 0%, rgba(31, 18, 7, 0.42) 48%, rgba(31, 18, 7, 0.18) 100%),
    url('assets/generated/heritage-hero-v2.webp') center/cover no-repeat;
  box-shadow: 0 32px 50px rgba(57, 34, 15, 0.16);
}

.hero-banner .container {
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 54px 44px 120px;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0.05em;
}

.hero-content .hero-subtitle {
  max-width: 420px;
  margin-bottom: 30px;
  font-size: 28px;
  color: rgba(255, 245, 232, 0.84);
}

.btn-discover {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: rgba(255, 246, 235, 0.95);
  border-radius: 999px;
  color: #7f502b;
  font-weight: 700;
}

.feature-icons {
  margin-top: -54px;
  padding: 0 0 46px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.feature-icons .container {
  background: rgba(255, 252, 247, 0.98);
  border-radius: 30px;
  padding: 26px 24px;
  box-shadow: 0 24px 36px rgba(62, 35, 12, 0.09);
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.feature-icons-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.feature-icon-item {
  gap: 10px;
}

.feature-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8ef, #f2e0ca);
  box-shadow: inset 0 0 0 1px rgba(157, 117, 78, 0.1);
}

.feature-icon-label {
  font-size: 12px;
}

.section-block,
.section {
  padding: 44px 0;
}

.section .container,
.section-block .container {
  width: min(100% - 32px, 1480px);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 4px;
}

.section-head p {
  font-size: 14px;
  color: #8e7560;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FF9800;
  font-size: 14px;
  font-weight: 600;
}

.section-link span {
  display: inline-block;
  transform: translateY(-1px);
}

.card-grid,
.courses-grid,
.market-grid,
.exhibits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.community-grid,
.events-grid {
  display: grid;
  gap: 18px;
}

.card,
.feed-card,
.event-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 252, 247, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(157, 117, 78, 0.12);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(62, 35, 12, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.feed-card:hover,
.event-card:hover,
.expert-card:hover,
.inheritor-card:hover,
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(62, 35, 12, 0.1);
  border-color: rgba(179, 104, 57, 0.22);
}

.media,
.event-card__media,
.feed-card__image,
.expert-media,
.content-card-image,
.inheritor-card-photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e5d1b8, #c9ad8c);
}

.media {
  height: 220px;
}

.media img,
.event-card__media img,
.feed-card__image img,
.expert-media img,
.content-card-image img,
.inheritor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px;
}

.media-overlay--dark {
  background: linear-gradient(180deg, rgba(14, 9, 5, 0.4), transparent 60%);
}

.media-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 236, 0.88);
  color: #8a5633;
  font-size: 12px;
  font-weight: 700;
}

.card-body,
.event-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 20px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9a8068;
}

.card h3,
.feed-card h3,
.event-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  color: #34261c;
}

.card p,
.feed-card p,
.event-card p {
  margin: 0;
  color: #7a6451;
  line-height: 1.65;
  font-size: 14px;
}

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

.chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6ede2;
  color: #875d3f;
  border: 1px solid rgba(157, 117, 78, 0.12);
  font-size: 12px;
  font-weight: 600;
}

.chip.accent {
  background: rgba(194, 140, 87, 0.12);
  color: #F57C00;
}

.tag-chip--active {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #fff;
  border-color: transparent;
}

.tag-chip--sm {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(157, 117, 78, 0.12);
  background: rgba(255, 252, 247, 0.8);
  color: #886a50;
}

.sort-btn--active {
  color: #b36839;
  border-color: rgba(179, 104, 57, 0.24);
  background: rgba(179, 104, 57, 0.09);
}

.cta,
.feed-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(157, 117, 78, 0.12);
  font-size: 13px;
  color: #8b715b;
}

.price {
  font-size: 28px;
  color: #d66138;
  font-weight: 800;
}

.card-link {
  color: #b36839;
  font-weight: 700;
}

.inheritor-scroll {
  grid-auto-columns: minmax(236px, 1fr);
  gap: 18px;
}

.inheritor-card-photo,
.content-card-image,
.expert-media {
  height: 220px;
}

.inheritor-card-info,
.expert-content {
  padding: 18px;
}

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

.expert-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 252, 247, 0.98);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 12px 26px rgba(62, 35, 12, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.expert-chip {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(194, 140, 87, 0.12);
  color: #a25e37;
  font-size: 12px;
  font-weight: 700;
}

.feed-card {
  padding: 18px;
}

.feed-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feed-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #c28c57, #7d5334);
  color: #fff;
  font-weight: 700;
}

.feed-card__header strong,
.feed-card__header span {
  display: block;
}

.feed-card__header span {
  font-size: 12px;
  color: #9a8068;
}

.feed-card__image {
  margin-top: 12px;
  height: 220px;
  border-radius: 18px;
}

.event-card {
  flex-direction: row;
}

.event-card__media {
  width: 220px;
  min-height: 180px;
  flex: 0 0 220px;
}

.section.market-section .container,
.section.experts-section .container,
.section.community-section .container,
.section.events-section .container,
.section.exhibits-section .container,
.section.courses-section .container,
.page-detail {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
}

.market-controls,
.courses-controls,
.experts-controls,
.community-controls,
.events-controls,
.exhibits-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0 8px;
  color: #8d745d;
  font-size: 13px;
}

.breadcrumb__link:hover {
  color: #b36839;
}

.page-detail .detail-hero {
  margin-top: 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(249, 241, 229, 0.96));
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 16px 30px rgba(58, 36, 17, 0.08);
  padding: 26px 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}

.detail-main,
.detail-sidebar {
  min-width: 0;
}

.detail-sidebar {
  position: sticky;
  top: 110px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 14px 28px rgba(62, 35, 12, 0.06);
}

.detail-hero__title,
.detail-hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.15;
}

.detail-hero__desc {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.75;
  color: #755e49;
}

.detail-hero__meta,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 14px;
}

.detail-section__title {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #34261c;
}

.detail-description,
.lesson-section,
.detail-timeline,
.detail-related-wrap,
.detail-sidebar__actions,
.post-detail article,
.post-detail section {
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(157, 117, 78, 0.12);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 24px rgba(62, 35, 12, 0.05);
}

.detail-description__body {
  color: #735d49;
  line-height: 1.85;
}

.stat-item {
  min-width: 120px;
  padding: 16px 18px;
  background: rgba(248, 240, 228, 0.82);
  border-radius: 18px;
  border: 1px solid rgba(157, 117, 78, 0.1);
}

.stat-item__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #947b64;
}

.stat-item__value {
  font-size: 22px;
  font-weight: 700;
}

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

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #f9f3ea;
  border: 1px solid rgba(157, 117, 78, 0.1);
}

.lesson-item__num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #8a5b39;
  font-weight: 700;
}

.lesson-item__body {
  flex: 1;
}

.lesson-item__title {
  margin: 0;
  font-size: 16px;
}

.lesson-item__desc {
  margin: 6px 0 0;
  color: #8a735f;
  font-size: 13px;
}

.lesson-item__check {
  color: #c2703f;
  font-weight: 700;
}

.lesson-item--completed {
  background: #fff7ef;
}

.instructor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f7efe4;
}

.instructor-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.detail-related {
  display: grid;
  gap: 12px;
}

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

.governance-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.governance-card.highlight {
  background: linear-gradient(135deg, #7d5334, #c28c57);
  color: #fff;
}

.governance-card.highlight span,
.governance-card.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 34px;
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(42, 28, 16, 0.92), rgba(93, 59, 36, 0.84)),
    url('assets/generated/exhibit-hall-v2.webp') center/cover no-repeat;
}

.cta-card h2,
.cta-card p {
  position: relative;
  z-index: 1;
}

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

.footer-shell {
  margin-top: 52px;
  padding: 34px 0 20px;
  background: #4d321f;
  color: rgba(255, 248, 237, 0.84);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 248, 237, 0.64);
  line-height: 1.7;
}

.footer-mark {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  background: rgba(255, 248, 237, 0.95);
  border-radius: 50%;
  padding: 3px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-links h4 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-links a,
.footer-links span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 248, 237, 0.68);
  font-size: 13px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 248, 237, 0.52);
}

.back-to-top {
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

.skeleton-card,
.skeleton-stack,
.skeleton,
.skeleton__title,
.skeleton__text,
.skeleton__block {
  border-radius: 18px;
  background: linear-gradient(90deg, #f2e9dd 25%, #fbf6f0 50%, #f2e9dd 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-card {
  min-height: 280px;
}

.skeleton-stack {
  min-height: 110px;
}

.skeleton__title {
  height: 32px;
}

.skeleton__text {
  height: 16px;
}

.skeleton__block {
  width: 100%;
}

@media (max-width: 1100px) {
  .header-inner {
    padding: 14px 18px;
  }
  .card-grid,
  .courses-grid,
  .market-grid,
  .exhibits-grid,
  .expert-grid,
  .experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid,
  .footer-inner,
  .governance-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
  .event-card {
    flex-direction: column;
  }
  .event-card__media {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 820px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
  .header-search-form {
    max-width: none;
  }
  .site-nav {
    order: 3;
  }
  .hero-banner {
    width: min(100% - 20px, 1480px);
  }
  .hero-banner .container {
    padding: 42px 24px 100px;
  }
  .feature-icons .container,
  .section .container,
  .section-block .container,
  .page-detail {
    width: min(100% - 20px, 1480px);
  }
  .card-grid,
  .courses-grid,
  .market-grid,
  .exhibits-grid,
  .expert-grid,
  .experts-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .footer-meta {
    flex-direction: column;
  }
}

/* ============================================
   Added UI Pages – Search / Workshop / Compose
   ============================================ */
.search-page {
  padding: 34px 0 10px;
}

.search-hero {
  padding: 24px 0 18px;
}

.search-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(194, 140, 87, 0.14);
  color: #9c643e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  color: #2f2219;
}

.search-hero p {
  max-width: 760px;
  color: #816854;
  font-size: 15px;
  line-height: 1.8;
}

.search-toolbar {
  margin-top: 12px;
}

.search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.search-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(157, 117, 78, 0.12);
  color: #7c624d;
  font-size: 14px;
}

.search-summary__item strong {
  color: #F57C00;
  font-size: 18px;
}

.search-empty {
  margin: 24px 0 0;
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 12px 24px rgba(56, 34, 15, 0.05);
  color: #7a624f;
}

.search-empty strong {
  display: block;
  margin-bottom: 10px;
  color: #34261c;
  font-size: 22px;
}

.search-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.search-empty__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.workshop-page {
  padding: 34px 0 12px;
}

.workshop-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.workshop-page__copy,
.workshop-page__panel,
.workshop-region-card,
.compose-shell__intro,
.compose-shell__form {
  border-radius: 30px;
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 18px 32px rgba(56, 34, 15, 0.07);
}

.workshop-page__copy {
  padding: 32px;
  background: linear-gradient(165deg, rgba(255, 252, 247, 0.98), rgba(246, 236, 222, 0.94));
}

.workshop-page__copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08;
  color: #2f2219;
}

.workshop-page__copy p {
  color: #7a624f;
  line-height: 1.85;
  font-size: 15px;
}

.workshop-page__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.workshop-page__stats div {
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 248, 239, 0.88);
  border: 1px solid rgba(157, 117, 78, 0.1);
}

.workshop-page__stats strong {
  display: block;
  color: #F57C00;
  font-size: 28px;
  font-weight: 800;
}

.workshop-page__stats span {
  display: block;
  margin-top: 6px;
  color: #8f745d;
  font-size: 13px;
}

.workshop-page__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(150deg, #1f2531, #111722);
  color: #f8efe5;
}

.workshop-page__loading {
  height: 380px;
  border-radius: 30px;
  background: linear-gradient(90deg, #efe7dc 25%, #fbf7f1 50%, #efe7dc 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.workshop-map {
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 188, 118, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(42, 57, 73, 0.95), rgba(16, 20, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.workshop-map__legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 12px;
  font-size: 13px;
  color: rgba(248, 239, 229, 0.86);
}

.workshop-map__legend small {
  color: rgba(248, 239, 229, 0.52);
}

.workshop-map__canvas {
  position: relative;
  min-height: 350px;
  margin: 0 14px 14px;
  border-radius: 20px;
  background:
    linear-gradient(transparent 96%, rgba(255,255,255,0.03) 96%),
    linear-gradient(90deg, transparent 96%, rgba(255,255,255,0.03) 96%),
    radial-gradient(circle at 50% 50%, rgba(255, 164, 83, 0.16), transparent 28%);
  background-size: 38px 38px, 38px 38px, auto;
}

.workshop-map__point {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 22px;
  min-height: 22px;
  border: none;
  border-radius: 999px;
  background: #ffae69;
  color: #151922;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(255, 174, 105, 0.12), 0 8px 18px rgba(0, 0, 0, 0.32);
}

.workshop-map__point span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.workshop-map__point em {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 239, 229, 0.88);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.workshop-timeline {
  display: grid;
  gap: 12px;
}

.workshop-timeline__item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.workshop-timeline__year {
  color: #ffb579;
  font-size: 14px;
  font-weight: 800;
}

.workshop-timeline__item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #fff7ed;
}

.workshop-timeline__item p {
  margin: 0;
  color: rgba(248, 239, 229, 0.7);
  font-size: 13px;
  line-height: 1.75;
}

.workshop-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.workshop-region-card {
  padding: 24px;
  background: rgba(255, 252, 247, 0.98);
}

.workshop-region-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  color: #34261c;
}

.workshop-region-card p,
.workshop-region-card li {
  color: #7a624f;
  font-size: 14px;
  line-height: 1.8;
}

.workshop-region-card ul {
  margin: 0;
  padding-left: 18px;
}

.workshop-region-card--dark {
  background: linear-gradient(145deg, #4e311f, #2f1c12);
}

.workshop-region-card--dark h2,
.workshop-region-card--dark li {
  color: #fff7ed;
}

.workshop-region-card--dark p {
  color: rgba(255, 245, 232, 0.72);
}

.workshop-region-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.workshop-region {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fbf4ea;
  border: 1px solid rgba(157, 117, 78, 0.1);
}

.workshop-region strong {
  color: #3b2b1f;
}

.workshop-region span {
  color: #9a8069;
  font-size: 13px;
}

.compose-page {
  padding: 32px 0 10px;
}

.compose-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  margin-top: 16px;
}

.compose-shell__intro {
  padding: 28px;
  background: linear-gradient(160deg, #4d311f, #2d1b13);
  color: #fff7ed;
}

.compose-shell__intro h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.08;
}

.compose-shell__intro p,
.compose-shell__intro li {
  color: rgba(255, 245, 232, 0.76);
  line-height: 1.85;
  font-size: 14px;
}

.compose-shell__intro ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.compose-shell__form {
  padding: 28px;
  background: rgba(255, 252, 247, 0.98);
}

.compose-form {
  display: grid;
  gap: 18px;
}

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

.compose-form span {
  color: #6f5845;
  font-size: 13px;
  font-weight: 700;
}

.compose-form input,
.compose-form select,
.compose-form textarea {
  width: 100%;
  border: 1px solid rgba(157, 117, 78, 0.14);
  border-radius: 18px;
  background: #fffaf4;
  padding: 14px 16px;
  font-size: 14px;
  color: #34261c;
  outline: none;
}

.compose-form input:focus,
.compose-form select:focus,
.compose-form textarea:focus {
  border-color: #FF9800;
  box-shadow: 0 0 0 4px rgba(200, 116, 68, 0.12);
}

.compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.compose-message {
  display: none;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.compose-message--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.compose-message.is-visible {
  display: block;
}

.detail-order-list {
  display: grid;
  gap: 12px;
}

.detail-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f9f3ea;
  border: 1px solid rgba(157, 117, 78, 0.1);
}

.detail-order-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.detail-order-item p {
  margin: 0;
  color: #8d725d;
  font-size: 13px;
}

.detail-order-item strong {
  color: #F57C00;
  font-size: 18px;
}

.ui-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.avatar-media__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-media__icon {
  width: 50%;
  height: 50%;
}

.header-avatar,
.feed-card__avatar,
.instructor-card__avatar {
  overflow: hidden;
}

.header-avatar .avatar-media__icon,
.feed-card__avatar .avatar-media__icon,
.instructor-card__avatar .avatar-media__icon {
  width: 52%;
  height: 52%;
}

.expert-media {
  display: grid;
  place-items: center;
}

.expert-media__fallback-icon {
  width: 46px;
  height: 46px;
  color: rgba(255, 255, 255, 0.92);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(200, 116, 68, 0.16), rgba(244, 226, 205, 0.92));
  color: #a25e37;
  box-shadow: 0 12px 24px rgba(88, 53, 24, 0.08);
}

.empty-state-icon__svg {
  width: 30px;
  height: 30px;
}

.detail-inline-icon {
  width: 16px;
  height: 16px;
  color: #b36839;
}

.detail-gallery__placeholder-icon,
.promo-card__icon {
  width: 40px;
  height: 40px;
}

/* ============================================
   Prototype 16-Page Alignment
   ============================================ */
.proto-page {
  padding: 32px 0 56px;
}

.proto-shell {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.proto-main {
  min-width: 0;
}

.proto-sidebar,
.proto-card,
.proto-hero,
.proto-toolbar,
.proto-detail-panel,
.proto-sticky-card,
.proto-side-card,
.proto-feed-card,
.proto-row-card,
.proto-auth-shell,
.proto-detail-media,
.proto-person-hero {
  border-radius: 30px;
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 18px 30px rgba(56, 34, 15, 0.07);
}

.proto-sidebar,
.proto-card,
.proto-hero,
.proto-toolbar,
.proto-detail-panel,
.proto-sticky-card,
.proto-side-card,
.proto-feed-card,
.proto-row-card {
  background: rgba(255, 252, 247, 0.98);
}

.proto-sidebar {
  padding: 24px;
  position: sticky;
  top: 96px;
  align-self: start;
}

.proto-sidebar__eyebrow,
.proto-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(194, 140, 87, 0.14);
  color: #9c643e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.proto-sidebar__title,
.proto-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  color: #2f2219;
}

.proto-sidebar__copy,
.proto-hero__copy,
.proto-rich-text {
  margin: 12px 0 0;
  color: #7e6552;
  line-height: 1.8;
  font-size: 14px;
}

.proto-sidebar__group + .proto-sidebar__group {
  margin-top: 20px;
}

.proto-sidebar__label,
.proto-side-card h3,
.proto-detail-block h3,
.proto-detail-block h2 {
  margin: 0 0 12px;
  color: #3a2b1d;
  font-size: 16px;
  font-weight: 700;
}

.proto-sidebar__list,
.proto-side-list,
.proto-agenda,
.proto-highlight-list,
.proto-detail-list {
  display: grid;
  gap: 10px;
}

.proto-sidebar__item,
.proto-side-list__item,
.proto-highlight-list__item,
.proto-detail-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(249, 242, 232, 0.9);
  border: 1px solid rgba(157, 117, 78, 0.08);
  color: #6b5441;
  font-size: 14px;
}

.proto-sidebar__item.is-active {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #fff;
  border-color: transparent;
}

.proto-sidebar__item strong,
.proto-side-list__item strong {
  font-size: 12px;
  opacity: 0.85;
}

.proto-hero {
  padding: 28px 30px;
}

.proto-hero--dark {
  position: relative;
  overflow: hidden;
  color: #fff8ef;
  background:
    linear-gradient(110deg, rgba(27, 18, 12, 0.9), rgba(79, 47, 24, 0.78)),
    var(--hero-image, none) center/cover no-repeat;
}

.proto-hero--dark .proto-hero__title,
.proto-hero--dark .proto-hero__copy,
.proto-hero--dark .proto-kpi strong,
.proto-hero--dark .proto-kpi span,
.proto-hero--dark .proto-highlight-card strong,
.proto-hero--dark .proto-highlight-card p,
.proto-hero--dark .proto-highlight-card span {
  color: inherit;
}

.proto-hero--dark .proto-kpi,
.proto-hero--dark .proto-highlight-card {
  background: rgba(255, 250, 242, 0.12);
  border-color: rgba(255, 242, 229, 0.14);
}

.proto-hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.proto-kpis,
.proto-feature-grid,
.proto-meta-grid,
.proto-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proto-kpis {
  margin-top: 22px;
}

.proto-kpi,
.proto-highlight-card,
.proto-stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(157, 117, 78, 0.1);
  background: rgba(249, 243, 234, 0.86);
}

.proto-kpi strong,
.proto-stat-card strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #F57C00;
}

.proto-kpi span,
.proto-stat-card span,
.proto-highlight-card span {
  display: block;
  margin-top: 6px;
  color: #8a725f;
  font-size: 13px;
}

.proto-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.proto-highlight-card {
  min-height: 110px;
}

.proto-highlight-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  color: #34261c;
}

.proto-highlight-card p {
  margin: 0;
  color: #7f6652;
  line-height: 1.7;
  font-size: 14px;
}

.proto-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin: 16px 0 18px;
}

.proto-toolbar__group,
.proto-chip-row,
.proto-inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.proto-grid {
  display: grid;
  gap: 20px;
}

.proto-grid--courses,
.proto-grid--exhibits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proto-grid--products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proto-grid--experts {
  grid-template-columns: 1fr;
}

.proto-list-grid {
  display: grid;
  gap: 16px;
}

.proto-row-card {
  padding: 18px;
}

.proto-row-card__layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
}

.proto-row-card__media,
.proto-event-row__media,
.proto-detail-media,
.proto-thumb,
.proto-mini-card__media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e5d1b8, #c9ad8c);
}

.proto-row-card__media,
.proto-event-row__media {
  height: 128px;
  border-radius: 22px;
}

.proto-row-card__media img,
.proto-event-row__media img,
.proto-detail-media img,
.proto-thumb img,
.proto-mini-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proto-row-card__title,
.proto-mini-card h3 {
  margin: 0;
  font-size: 22px;
  color: #2f2219;
}

.proto-row-card__copy,
.proto-mini-card p {
  margin: 10px 0 0;
  color: #806654;
  line-height: 1.75;
  font-size: 14px;
}

.proto-row-card__meta,
.proto-mini-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.proto-row-card__aside {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.proto-row-card__aside strong {
  font-size: 28px;
  color: #F57C00;
}

.proto-detail-page {
  width: min(100% - 32px, 1480px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.proto-detail-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  margin-top: 18px;
}

.proto-detail-media {
  min-height: 420px;
  border-radius: 30px;
}

.proto-detail-media--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 9, 0.08), rgba(15, 12, 9, 0.38));
}

.proto-detail-media__overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  color: #fffaf2;
}

.proto-detail-media__overlay h1,
.proto-person-hero__body h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
}

.proto-detail-media__overlay p,
.proto-person-hero__body p {
  margin: 8px 0 0;
  line-height: 1.8;
  color: rgba(255, 246, 238, 0.86);
}

.proto-media-play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(255, 246, 235, 0.38);
  background: rgba(255, 248, 240, 0.18);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  color: #fff;
}

.proto-media-play svg {
  width: 28px;
  height: 28px;
}

.proto-thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.proto-thumb {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 20px;
  border: 2px solid transparent;
}

.proto-thumb.is-active {
  border-color: rgba(181, 95, 52, 0.42);
}

.proto-detail-panel,
.proto-sticky-card {
  padding: 24px;
}

.proto-detail-panel h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  color: #2f2219;
}

.proto-detail-price {
  font-size: 40px;
  font-weight: 800;
  color: #d66138;
}

.proto-detail-subtitle {
  color: #8a6f5a;
  font-size: 14px;
  line-height: 1.8;
}

.proto-meta-grid {
  margin-top: 18px;
}

.proto-meta-card {
  padding: 16px;
  border-radius: 20px;
  background: #f9f2e8;
  border: 1px solid rgba(157, 117, 78, 0.1);
}

.proto-meta-card span {
  display: block;
  color: #8c725d;
  font-size: 12px;
}

.proto-meta-card strong {
  display: block;
  margin-top: 6px;
  color: #32251c;
  font-size: 20px;
}

.proto-tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

.proto-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(157, 117, 78, 0.12);
  background: rgba(255, 252, 247, 0.94);
  color: #7e6552;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.proto-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

.proto-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 18px;
}

.proto-detail-block,
.proto-side-card {
  padding: 22px 24px;
}

.proto-detail-block + .proto-detail-block,
.proto-side-card + .proto-side-card {
  margin-top: 18px;
}

.proto-detail-block p,
.proto-detail-block li,
.proto-side-card p,
.proto-side-card li {
  color: #7c6451;
  line-height: 1.8;
  font-size: 14px;
}

.proto-lesson-list {
  display: grid;
  gap: 0;
}

.proto-lesson-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(157, 117, 78, 0.1);
}

.proto-lesson-item:last-child,
.proto-agenda__item:last-child {
  border-bottom: none;
}

.proto-lesson-item__num {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f4eadb;
  color: #8f623f;
  font-weight: 700;
}

.proto-lesson-item.is-active .proto-lesson-item__num {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #fff;
}

.proto-lesson-item__title {
  margin: 0;
  font-size: 15px;
  color: #2f2219;
}

.proto-lesson-item__desc {
  margin: 4px 0 0;
  color: #8b715c;
  font-size: 13px;
}

.proto-lesson-item__time {
  color: #a0846d;
  font-size: 12px;
}

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

.proto-mini-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.proto-mini-card__media {
  height: 132px;
}

.proto-mini-card__body {
  padding: 16px;
}

.proto-person-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(18, 13, 9, 0.92), rgba(79, 47, 24, 0.74)),
    var(--hero-image, none) center/cover no-repeat;
}

.proto-person-hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 28px 30px;
  color: #fff8ef;
}

.proto-person-hero__avatar {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 237, 0.22);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.proto-person-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proto-person-hero__metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.proto-person-hero__metric strong {
  display: block;
  font-size: 22px;
}

.proto-person-hero__metric span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 246, 237, 0.76);
  font-size: 12px;
}

.proto-feed-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.proto-feed-card {
  padding: 18px;
}

.proto-feed-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proto-feed-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #c28c57, #7d5334);
  display: grid;
  place-items: center;
  color: #fff;
}

.proto-feed-card__image {
  margin-top: 14px;
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #e5d1b8, #c9ad8c);
}

.proto-feed-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proto-feed-card__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(157, 117, 78, 0.1);
  color: #8b715c;
  font-size: 13px;
}

.proto-event-list {
  display: grid;
  gap: 16px;
}

.proto-event-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 160px;
  gap: 20px;
  align-items: center;
}

.proto-event-row__media {
  height: 160px;
  border-radius: 22px;
}

.proto-event-row__title {
  margin: 0;
  font-size: 22px;
  color: #2f2219;
}

.proto-event-row__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #8b715c;
  font-size: 13px;
}

.proto-agenda__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(157, 117, 78, 0.08);
}

.proto-agenda__time {
  color: #F57C00;
  font-weight: 700;
  font-size: 13px;
}

.proto-auth-shell {
  width: min(100% - 32px, 1180px);
  margin: 28px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  overflow: hidden;
}

.proto-auth-visual {
  padding: 38px;
  min-height: 640px;
  color: #fff8ef;
  background:
    linear-gradient(120deg, rgba(24, 16, 10, 0.88), rgba(84, 49, 24, 0.72)),
    var(--auth-image, url('assets/generated/heritage-hero-v2.webp')) center/cover no-repeat;
}

.proto-auth-visual h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}

.proto-auth-visual p {
  max-width: 420px;
  margin: 14px 0 0;
  line-height: 1.85;
  color: rgba(255, 244, 234, 0.86);
}

.proto-auth-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.proto-auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.14);
  border: 1px solid rgba(255, 241, 230, 0.12);
}

.proto-auth-form {
  padding: 36px 34px;
  background: rgba(255, 252, 247, 0.98);
}

.proto-auth-form__brand {
  margin-bottom: 24px;
}

.proto-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.proto-auth-logo__mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.proto-auth-logo__copy {
  display: grid;
  gap: 4px;
}

.proto-auth-logo__copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.08;
  color: #2f2219;
}

.proto-auth-logo__copy small {
  color: #9d7a57;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.proto-auth-form__brand h2 {
  margin: 0;
  font-size: 32px;
  color: #2f2219;
}

.proto-auth-form__brand p {
  margin: 10px 0 0;
  color: #8b715c;
  line-height: 1.75;
  font-size: 14px;
}

.proto-user-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.proto-user-action {
  padding: 16px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf4, #f6ebdf);
  border: 1px solid rgba(157, 117, 78, 0.12);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  color: #6f5947;
  font-size: 13px;
}

.proto-user-action .ui-icon {
  width: 22px;
  height: 22px;
  color: #F57C00;
}

@media (max-width: 1200px) {
  .proto-grid--products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proto-content-grid,
  .proto-feed-shell {
    grid-template-columns: 1fr;
  }

  .proto-event-row {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .proto-event-row > :last-child {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 1100px) {
  .workshop-page__hero,
  .workshop-page__panel,
  .workshop-region-grid,
  .compose-shell,
  .proto-shell,
  .proto-detail-stage,
  .proto-auth-shell,
  .proto-row-card__layout {
    grid-template-columns: 1fr;
  }

  .proto-sidebar,
  .proto-sticky-card {
    position: static;
  }

  .proto-grid--products,
  .proto-grid--courses,
  .proto-grid--exhibits,
  .proto-mini-grid,
  .proto-user-actions,
  .proto-kpis,
  .proto-meta-grid,
  .proto-stats-grid,
  .proto-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .search-summary,
  .compose-actions {
    flex-direction: column;
  }

  .workshop-page__copy,
  .workshop-page__panel,
  .compose-shell__intro,
  .compose-shell__form {
    padding: 22px;
    border-radius: 24px;
  }

  .workshop-page__stats {
    grid-template-columns: 1fr;
  }

  .proto-page,
  .proto-detail-page {
    width: min(100% - 20px, 1480px);
  }

  .proto-toolbar,
  .proto-hero,
  .proto-detail-panel,
  .proto-card,
  .proto-side-card,
  .proto-feed-card,
  .proto-row-card,
  .proto-auth-form,
  .proto-auth-visual {
    padding: 22px;
    border-radius: 24px;
  }

  .proto-grid--products,
  .proto-grid--courses,
  .proto-grid--exhibits,
  .proto-mini-grid,
  .proto-user-actions,
  .proto-kpis,
  .proto-meta-grid,
  .proto-stats-grid,
  .proto-highlight-grid {
    grid-template-columns: 1fr;
  }

  .proto-row-card__layout,
  .proto-event-row {
    grid-template-columns: 1fr;
  }

  .proto-row-card__media,
  .proto-event-row__media,
  .proto-feed-card__image,
  .proto-detail-media {
    min-height: 220px;
    height: auto;
  }

  .proto-detail-media__overlay {
    inset: auto 16px 16px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .proto-person-hero__body {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Prototype Auth / Community Detail / User Center ─────────────── */

.proto-auth-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: #f7ecde;
  border-radius: 999px;
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.proto-auth-tab-link {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #7e6552;
  font-size: 14px;
  font-weight: 600;
}

.proto-auth-tab-link.is-active {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 152, 0, 0.22);
}

.proto-auth-form form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.proto-auth-field {
  display: grid;
  gap: 8px;
}

.proto-auth-field label {
  color: #6d5644;
  font-size: 13px;
  font-weight: 700;
}

.proto-auth-control,
.proto-comment-form textarea,
.proto-user-form input,
.proto-user-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(157, 117, 78, 0.14);
  background: #fffaf4;
  color: #34261c;
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  box-sizing: border-box;
}

.proto-comment-form textarea,
.proto-user-form textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.proto-auth-control:focus,
.proto-comment-form textarea:focus,
.proto-user-form input:focus,
.proto-user-form textarea:focus {
  border-color: rgba(181, 95, 52, 0.46);
  box-shadow: 0 0 0 4px rgba(200, 116, 68, 0.12);
}

.proto-auth-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  color: #8c725d;
  font-size: 13px;
}

.proto-auth-error {
  min-height: 22px;
  color: #b42318;
  font-size: 13px;
}

.proto-auth-helper {
  margin-top: 20px;
  color: #8c725d;
  font-size: 14px;
}

.proto-auth-helper a {
  color: #b36839;
  font-weight: 700;
}

.proto-stat-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.proto-stat-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(157, 117, 78, 0.1);
}

.proto-stat-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proto-stat-list__item span {
  color: #8a6f5a;
  font-size: 13px;
}

.proto-stat-list__item strong {
  color: #2f2219;
  font-size: 16px;
}

.proto-comment-list {
  display: grid;
  gap: 14px;
}

.proto-comment-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(157, 117, 78, 0.08);
}

.proto-comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proto-comment-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #c28c57, #7d5334);
  display: grid;
  place-items: center;
  color: #fff;
}

.proto-comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.proto-comment-meta strong {
  color: #2f2219;
}

.proto-comment-meta span {
  color: #9b7e67;
  font-size: 12px;
}

.proto-comment-item p {
  margin: 8px 0 0;
  color: #7a6250;
  line-height: 1.85;
  font-size: 14px;
}

.proto-comment-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.proto-comment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.proto-user-shell {
  width: min(100% - 32px, 1480px);
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.proto-user-sidebar {
  padding: 22px 18px;
  background: linear-gradient(180deg, #5c3924, #3f271a);
  color: #fff8ef;
  position: sticky;
  top: 100px;
}

.proto-user-sidebar__brand {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.proto-user-sidebar__avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 246, 235, 0.16);
  border: 1px solid rgba(255, 247, 237, 0.16);
  display: grid;
  place-items: center;
}

.proto-user-sidebar__name {
  font-size: 18px;
  font-weight: 700;
}

.proto-user-sidebar__desc {
  margin: 0;
  color: rgba(255, 244, 234, 0.78);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.proto-user-nav {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.proto-user-nav__item {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 244, 234, 0.78);
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.proto-user-nav__item:hover,
.proto-user-nav__item.is-active {
  color: #fff8ef;
  background: rgba(255, 248, 238, 0.12);
  border-color: rgba(255, 247, 237, 0.1);
}

.proto-user-nav__item.is-danger {
  margin-top: 8px;
  color: #ffd8c4;
}

.proto-user-panel {
  padding: 28px;
}

.proto-user-summary {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.proto-user-summary__avatar {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #c28c57, #7d5334);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 18px 34px rgba(93, 56, 25, 0.2);
}

.proto-user-summary__meta h1 {
  margin: 8px 0 0;
  color: #2f2219;
  font-size: 36px;
}

.proto-user-summary__meta p {
  margin: 10px 0 0;
  color: #8c725d;
  line-height: 1.8;
}

.proto-user-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.proto-user-stat {
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffaf4, #f7ecdf);
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.proto-user-stat span {
  display: block;
  color: #8b715c;
  font-size: 12px;
}

.proto-user-stat strong {
  display: block;
  margin-top: 6px;
  color: #2f2219;
  font-size: 26px;
}

.proto-user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 24px;
}

.proto-user-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proto-user-info-card {
  padding: 18px;
  border-radius: 20px;
  background: #fffaf4;
  border: 1px solid rgba(157, 117, 78, 0.12);
}

.proto-user-info-card span {
  display: block;
  color: #9c8068;
  font-size: 12px;
}

.proto-user-info-card strong {
  display: block;
  margin-top: 8px;
  color: #2f2219;
  font-size: 16px;
}

.proto-user-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.proto-user-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.proto-user-message {
  min-height: 20px;
  font-size: 13px;
  color: #b42318;
}

.proto-user-message.is-success {
  color: #9a5f37;
}

.workshop-section {
  padding: 52px 0;
  background: linear-gradient(180deg, rgba(251, 246, 239, 0.42), rgba(245, 236, 224, 0.18));
}

.heritage-map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.heritage-map-card,
.heritage-map-sidebar {
  border-radius: 30px;
  border: 1px solid rgba(157, 117, 78, 0.12);
  box-shadow: 0 18px 32px rgba(56, 34, 15, 0.07);
}

.heritage-map-card {
  padding: 24px;
  background: linear-gradient(160deg, rgba(255, 252, 247, 0.99), rgba(245, 234, 220, 0.95));
}

.heritage-map-card__copy {
  max-width: 560px;
}

.heritage-map-card__eyebrow {
  display: inline-flex;
  min-height: 28px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.1);
  color: #c06431;
  font-size: 12px;
  font-weight: 700;
}

.heritage-map-card__copy h3 {
  margin: 14px 0 8px;
  color: #32251c;
  font-size: 30px;
  line-height: 1.2;
}

.heritage-map-card__copy p {
  margin: 0;
  color: #7d6551;
  font-size: 14px;
  line-height: 1.8;
}

.heritage-map-figure {
  position: relative;
  min-height: 360px;
  margin-top: 22px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 176, 94, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(247, 236, 222, 0.96));
  border: 1px solid rgba(157, 117, 78, 0.08);
}

.heritage-map-figure--dark {
  min-height: 420px;
  margin-top: 0;
  background:
    radial-gradient(circle at 55% 50%, rgba(255, 176, 94, 0.15), transparent 24%),
    linear-gradient(180deg, rgba(16, 23, 34, 0.96), rgba(10, 14, 21, 0.98));
  border-color: rgba(255, 255, 255, 0.06);
}

.heritage-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heritage-map-outline {
  fill: url(#mapFillHome);
  stroke: rgba(114, 145, 119, 0.42);
  stroke-width: 4;
  filter: drop-shadow(0 18px 24px rgba(78, 102, 72, 0.12));
  transform: translate(36px, 42px) scale(0.86);
}

.heritage-map-outline--dark {
  fill: url(#mapFillDark);
  stroke: rgba(130, 176, 210, 0.28);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22));
}

.heritage-map-glow {
  position: absolute;
  inset: auto 18% 14% auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 176, 94, 0.2), transparent 68%);
  pointer-events: none;
}

.heritage-map-glow--dark {
  right: 24%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(255, 176, 94, 0.22), transparent 66%);
}

.heritage-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.heritage-map-pin__dot {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #f8bf77, #d56b3e);
  color: #281910;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(255, 176, 94, 0.16), 0 10px 22px rgba(74, 42, 16, 0.22);
}

.heritage-map-pin__label {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 252, 246, 0.96);
  border: 1px solid rgba(157, 117, 78, 0.12);
  color: #5e4737;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.heritage-map-pin--dark .heritage-map-pin__label {
  background: rgba(14, 18, 27, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(247, 236, 224, 0.92);
}

.heritage-map-sidebar {
  padding: 24px 22px;
  background: linear-gradient(155deg, #4b2f1f, #2d1d14);
  color: #fff7ed;
}

.heritage-map-sidebar__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.heritage-map-sidebar__tabs span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 247, 237, 0.08);
  color: rgba(255, 244, 233, 0.74);
  font-size: 12px;
  font-weight: 700;
}

.heritage-map-sidebar__tabs .is-active {
  background: rgba(255, 247, 237, 0.16);
  color: #fff8ef;
}

.heritage-map-timeline {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.heritage-map-timeline__item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.heritage-map-timeline__item.is-active {
  background: rgba(255, 186, 118, 0.12);
  border-color: rgba(255, 190, 129, 0.18);
}

.heritage-map-timeline__year {
  color: #f4ba84;
  font-size: 14px;
  font-weight: 800;
}

.heritage-map-timeline__item h4 {
  margin: 0 0 6px;
  color: #fff8ef;
  font-size: 16px;
}

.heritage-map-timeline__item p {
  margin: 0;
  color: rgba(255, 244, 233, 0.72);
  font-size: 13px;
  line-height: 1.75;
}

.workshop-lab {
  padding: 20px;
  border-radius: 32px;
  background: linear-gradient(150deg, #111723, #0b1018);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 40px rgba(22, 15, 9, 0.24);
}

.workshop-lab__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 20px;
  align-items: stretch;
}

.workshop-lab .workshop-page__copy {
  padding: 28px;
  background: linear-gradient(180deg, rgba(22, 31, 45, 0.94), rgba(13, 20, 31, 0.92));
  border: 1px solid rgba(121, 166, 225, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.workshop-lab .workshop-page__copy h1 {
  color: #fff8ef;
}

.workshop-lab .workshop-page__copy p {
  color: rgba(221, 230, 242, 0.74);
}

.workshop-lab .workshop-page__stats div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(121, 166, 225, 0.12);
}

.workshop-lab .workshop-page__stats strong {
  color: #f4bf8b;
}

.workshop-lab .workshop-page__stats span {
  color: rgba(234, 240, 249, 0.7);
}

.workshop-page__panel--map {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.workshop-map-aside {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.96), rgba(17, 25, 38, 0.9));
  border: 1px solid rgba(121, 166, 225, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.workshop-map-aside__head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(243, 171, 107, 0.14);
  color: #f2bb88;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.workshop-map-aside__head p {
  margin: 10px 0 0;
  color: rgba(233, 241, 252, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.workshop-map-aside h3 {
  margin: 14px 0 0;
  color: #fff8ef;
  font-size: 18px;
}

.workshop-map-aside__stats {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.workshop-map-hotspot {
  width: 100%;
  padding: 14px 14px 13px;
  border-radius: 18px;
  border: 1px solid rgba(121, 166, 225, 0.14);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.workshop-map-hotspot:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 171, 107, 0.32);
}

.workshop-map-hotspot span,
.workshop-map-hotspot strong,
.workshop-map-hotspot small {
  display: block;
}

.workshop-map-hotspot span {
  color: rgba(248, 239, 229, 0.72);
  font-size: 12px;
}

.workshop-map-hotspot strong {
  margin-top: 6px;
  color: #fff8ef;
  font-size: 18px;
}

.workshop-map-hotspot small {
  margin-top: 6px;
  color: rgba(219, 228, 239, 0.6);
  font-size: 12px;
  line-height: 1.6;
}

.workshop-map-hotspot.is-active {
  border-color: rgba(243, 171, 107, 0.5);
  background: linear-gradient(180deg, rgba(229, 142, 85, 0.2), rgba(84, 48, 24, 0.22));
  box-shadow: 0 0 0 1px rgba(243, 171, 107, 0.14), 0 16px 28px rgba(0, 0, 0, 0.24);
}

.workshop-map-aside .btn {
  margin-top: 20px;
}

.workshop-map-board {
  min-width: 0;
  padding: 16px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(54, 120, 208, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(15, 24, 37, 0.96), rgba(10, 16, 28, 0.96));
  border: 1px solid rgba(121, 166, 225, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.workshop-map-board.is-ready .workshop-map-stage__status {
  opacity: 0;
}

.workshop-map-board.is-error .workshop-map-stage__status {
  background: rgba(122, 36, 24, 0.78);
  color: #fff6ee;
}

.workshop-map-stage {
  position: relative;
  min-height: 500px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(121, 166, 225, 0.1);
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 104, 182, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(9, 15, 26, 0.98), rgba(11, 18, 31, 0.98));
}

.workshop-amap {
  width: 100%;
  min-height: 500px;
}

.workshop-map-stage__status {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 18;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(16, 25, 38, 0.84);
  border: 1px solid rgba(121, 166, 225, 0.18);
  color: rgba(234, 240, 249, 0.78);
  font-size: 12px;
  transition: opacity 220ms ease;
}

.workshop-map-stage__glow {
  position: absolute;
  inset: auto 10% 8% 10%;
  height: 120px;
  background: radial-gradient(circle, rgba(75, 124, 209, 0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.workshop-map-detail {
  margin-top: 14px;
}

.workshop-map-detail-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 27, 41, 0.96), rgba(13, 21, 34, 0.94));
  border: 1px solid rgba(121, 166, 225, 0.12);
  color: rgba(239, 244, 251, 0.86);
}

.workshop-map-detail-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workshop-map-detail-card__top h3 {
  margin: 8px 0 0;
  color: #fff8ef;
  font-size: 22px;
}

.workshop-map-detail-card__top strong {
  color: #f4bf8b;
  font-size: 28px;
  line-height: 1;
}

.workshop-map-detail-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(243, 171, 107, 0.14);
  color: #f2bb88;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.workshop-map-detail-card p {
  margin: 12px 0 0;
  color: rgba(219, 228, 239, 0.74);
  line-height: 1.75;
}

.workshop-map-detail-card__meta,
.workshop-map-detail-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.workshop-map-detail-card__meta span,
.workshop-map-detail-card__links a {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
}

.workshop-map-detail-card__meta span {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 243, 250, 0.76);
}

.workshop-map-detail-card__links a {
  background: rgba(243, 171, 107, 0.12);
  color: #f3bd88;
  border: 1px solid rgba(243, 171, 107, 0.18);
}

.workshop-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.workshop-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(221, 230, 242, 0.68);
  font-size: 12px;
}

.workshop-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.workshop-map-legend i.is-gold {
  background: linear-gradient(135deg, #ffdfad, #f39c5e);
  box-shadow: 0 0 12px rgba(243, 156, 94, 0.4);
}

.workshop-map-legend i.is-line {
  background: #69a7ff;
}

.workshop-map-legend i.is-warm {
  background: #f6b26b;
}

.workshop-map-pin {
  position: relative;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.workshop-map-pin__pulse {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(95, 174, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(136, 195, 255, 0.12), 0 0 26px rgba(95, 174, 255, 0.36);
  animation: workshop-map-pulse 2.6s ease-in-out infinite;
}

.workshop-map-pin__count {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd59a, #e58e55);
  color: #20150c;
  font-size: 11px;
  font-weight: 800;
}

.workshop-map-pin__title {
  position: absolute;
  top: 50%;
  left: 36px;
  transform: translateY(-50%);
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: rgba(9, 17, 29, 0.9);
  border: 1px solid rgba(121, 166, 225, 0.18);
  color: rgba(242, 246, 252, 0.84);
  font-size: 12px;
  box-shadow: 0 12px 24px rgba(2, 8, 16, 0.28);
}

.workshop-map-pin.is-active .workshop-map-pin__pulse {
  background: rgba(243, 171, 107, 0.24);
  box-shadow: 0 0 0 1px rgba(255, 216, 156, 0.2), 0 0 28px rgba(243, 171, 107, 0.48);
}

.workshop-map-pin.is-active .workshop-map-pin__count {
  background: linear-gradient(135deg, #fff0cf, #f3ab6b);
}

.workshop-map-pin.is-active .workshop-map-pin__title {
  border-color: rgba(243, 171, 107, 0.3);
  color: #fff8ef;
}

@keyframes workshop-map-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.48;
  }
}

.workshop-lab__rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 18px 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.workshop-lab__years {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 12px;
  flex: 1;
  padding-top: 18px;
}

.workshop-lab__years::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 34px;
  right: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(92, 150, 228, 0.18), rgba(243, 171, 107, 0.45), rgba(92, 150, 228, 0.18));
}

.workshop-lab__year {
  min-height: 44px;
  border: 1px solid rgba(121, 166, 225, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 244, 233, 0.74);
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.workshop-lab__year.is-active {
  background: linear-gradient(135deg, #f3ab6b, #d16b3e);
  color: #281910;
  box-shadow: 0 10px 24px rgba(209, 107, 62, 0.24);
}

.workshop-lab__event-copy {
  width: 360px;
  color: rgba(255, 244, 233, 0.86);
}

.workshop-lab__event-copy strong {
  display: block;
  color: #fff8ef;
}

.workshop-lab__event-copy p {
  margin: 6px 0 0;
  color: rgba(255, 244, 233, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.workshop-event-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.workshop-event-stack__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workshop-event-stack__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.workshop-event-stack__item span {
  color: #f4ba84;
  font-weight: 800;
}

.workshop-event-stack__item strong {
  color: #fff8ef;
}

.workshop-event-stack__item p {
  margin: 6px 0 0;
}

@media (max-width: 1100px) {
  .proto-user-shell,
  .proto-user-summary,
  .proto-user-grid,
  .heritage-map-panel,
  .workshop-lab__hero,
  .workshop-page__panel--map {
    grid-template-columns: 1fr;
  }

  .proto-user-sidebar {
    position: static;
  }

  .workshop-lab__rail {
    flex-direction: column;
    align-items: stretch;
  }

  .workshop-lab__event-copy {
    width: 100%;
  }

  .workshop-page__panel--map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .proto-user-stats,
  .proto-user-info-grid,
  .proto-user-form__row,
  .workshop-page__stats,
  .workshop-lab__years {
    grid-template-columns: 1fr;
  }

  .proto-user-summary__avatar {
    width: 96px;
    height: 96px;
  }

  .heritage-map-figure,
  .heritage-map-figure--dark {
    min-height: 320px;
  }

  .workshop-map-stage,
  .workshop-amap {
    min-height: 360px;
  }

  .workshop-map-pin__title {
    left: 30px;
    max-width: 132px;
    white-space: normal;
    line-height: 1.4;
    padding: 6px 10px;
    align-items: flex-start;
  }
}
