/*
Theme Name: 第七码头
Theme URI: https://diqimatou.com
Author: 第七码头
Description: 港风网盘转存资源主题，支持 WordPress 后台发布影视资源。
Version: 1.0.0
Text Domain: diqimatou
*/


:root {
  --bg: #fff8ed;
  --paper: #fffdf8;
  --paper-soft: #f5ead9;
  --ink: #233936;
  --muted: #76695d;
  --faint: #b6a492;
  --wine: #9c2d38;
  --wine-dark: #74232c;
  --gold: #bd7d32;
  --gold-dark: #9a6424;
  --jade: #1f6b62;
  --line: rgba(116, 79, 43, 0.18);
  --green: #3c9b69;
  --shadow: 0 22px 64px rgba(101, 67, 36, 0.13);
}

/* V2 home and resource structure */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: grid;
  align-items: center;
  grid-template-rows: auto auto;
  text-decoration: none;
}

.brand-line,
.brand-sub {
  min-width: 0;
}

.brand-logo {
  grid-row: 1 / span 2;
}

.brand-line {
  align-self: end;
}

.brand-sub {
  align-self: start;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.account-entry,
.account-link,
.admin-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-entry {
  gap: 7px;
  min-height: 40px;
  border: 1px solid rgba(143, 23, 24, 0.16);
  border-radius: 999px;
  color: var(--wine);
  font-weight: 800;
  line-height: 1;
}

.account-entry span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.22);
  color: currentColor;
  font-weight: 900;
}

.account-entry strong {
  color: inherit;
}

.account-register {
  color: #fffaf3;
}

.account-link {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(143, 23, 24, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--wine);
  font-weight: 800;
  line-height: 1;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.v2-home {
  padding-top: 22px;
}

.v2-hero,
.archive-hero,
.resource-detail-hero,
.v2-section {
  min-width: 0;
  border: 1px solid rgba(189, 125, 50, 0.2);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 4vw, 54px);
}

.v2-hero-copy h1,
.archive-hero h1,
.detail-main h1 {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--wine);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.v2-hero-copy > p:not(.eyebrow),
.archive-hero p:not(.eyebrow),
.detail-summary {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.v2-search-box {
  display: grid;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 28px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.v2-search-box span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--wine);
  font-size: 20px;
  line-height: 1;
}

.v2-search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.v2-search-box input::placeholder {
  color: rgba(35, 57, 54, 0.42);
}

.v2-search-box button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fffaf3;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.hot-searches span,
.section-kicker {
  color: var(--muted);
  font-size: 13px;
}

.hot-searches a,
.rank-tabs button,
.archive-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(189, 125, 50, 0.26);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.archive-filters a:hover,
.archive-filters a.is-active {
  border-color: transparent;
  background: var(--wine);
  color: #fffaf2;
}

.hero-stats {
  display: grid;
  gap: 12px;
  align-content: center;
}

.hero-stats div,
.hero-transfer-link {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(189, 125, 50, 0.2);
  border-radius: 10px;
  background: #fffaf2;
}

.hero-stats strong {
  color: var(--wine);
  font-size: 34px;
  line-height: 1;
}

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

.hero-transfer-link {
  place-items: center;
  min-height: 48px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: #fffaf3;
  font-weight: 700;
}

.v2-section {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 28px);
}

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

.section-title h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(24px, 2.6vw, 34px);
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-title a {
  flex: 0 0 auto;
  color: var(--wine);
  font-weight: 700;
}

.v2-card-list,
.rank-grid,
.mini-resource-grid {
  display: grid;
  gap: 12px;
}

.v2-resource-card.resource-card {
  position: relative;
  grid-template-columns: 92px minmax(0, 1fr) 96px 112px 116px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.92);
}

.v2-resource-card .cover {
  width: 92px;
  min-height: 118px;
}

.v2-resource-card .title-row h2 {
  max-width: none;
  margin-bottom: 8px;
  font-size: 17px;
}

.resource-meta-line,
.resource-summary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.transfer-action,
.detail-transfer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 7px;
  background: linear-gradient(135deg, #c98b3f, #a76628);
  color: #fffaf3;
  font-weight: 750;
  text-align: center;
}

.detail-link {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.rank-tabs button {
  border-radius: 7px;
  cursor: pointer;
}

.rank-tabs .is-active {
  border-color: transparent;
  background: var(--wine);
  color: #fffaf2;
}

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

.rank-grid[hidden] {
  display: none;
}

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

.v2-resource-card.is-compact {
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-areas:
    "cover info"
    "cover status"
    "cover disks"
    "cover actions";
  align-items: start;
  padding: 14px;
}

.v2-resource-card.is-compact .cover {
  grid-area: cover;
  width: 74px;
  min-height: 98px;
}

.v2-resource-card.is-compact .resource-info {
  grid-area: info;
}

.v2-resource-card.is-compact .resource-status,
.v2-resource-card.is-compact .disk-list,
.v2-resource-card.is-compact .resource-actions {
  justify-items: start;
  text-align: left;
}

.v2-resource-card.is-compact .resource-status {
  grid-area: status;
}

.v2-resource-card.is-compact .disk-list {
  grid-area: disks;
  display: flex;
  flex-wrap: wrap;
}

.v2-resource-card.is-compact .resource-actions {
  grid-area: actions;
  display: flex;
  gap: 10px;
  align-items: center;
}

.v2-resource-card.is-compact .title-row h2 {
  font-size: 15px;
}

.v2-resource-card.is-compact .resource-summary {
  display: none;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wine);
  color: #fffaf2;
  font-size: 13px;
  font-weight: 800;
}

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

.category-grid > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.category-block {
  min-width: 0;
}

.category-block .section-title {
  margin-bottom: 10px;
}

.category-block .section-title h2 {
  font-size: 22px;
}

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

.matrix-section {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 248, 237, 0.92));
}

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

.interest-grid,
.channel-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.matrix-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 196px;
  padding: 18px;
  border: 1px solid rgba(189, 125, 50, 0.24);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(101, 67, 36, 0.08);
}

.channel-grid .matrix-card {
  min-height: 176px;
}

.matrix-card:hover,
.matrix-card.is-active {
  border-color: rgba(156, 45, 56, 0.36);
  transform: translateY(-1px);
}

.matrix-kicker,
.matrix-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.matrix-card strong {
  color: var(--wine);
  font-size: 19px;
  line-height: 1.35;
}

.matrix-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.matrix-action {
  align-self: end;
  justify-self: start;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(31, 107, 98, 0.11);
  color: var(--jade);
  font-size: 13px;
  font-weight: 750;
}

.module-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed rgba(189, 125, 50, 0.3);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 248, 237, 0.54);
}

.resource-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  padding: clamp(20px, 4vw, 42px);
  margin-top: 12px;
}

.detail-cover.cover {
  width: 100%;
  min-height: 420px;
}

.detail-update-status {
  margin: 14px 0 0;
  color: var(--jade);
  font-weight: 750;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(189, 125, 50, 0.24);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.detail-transfer-button {
  width: fit-content;
  min-height: 48px;
  margin-top: 24px;
  padding-inline: 24px;
  font-size: 17px;
}

.transfer-single-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-more-links {
  margin-top: 22px;
}

.detail-channel-title {
  margin-top: 22px;
}

.resource-state-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(31, 107, 98, 0.18);
  border-radius: 10px;
  background: rgba(31, 107, 98, 0.07);
}

.resource-state-panel strong {
  color: var(--jade);
}

.resource-state-panel span {
  color: var(--muted);
  font-size: 13px;
}

.detail-transfer-button.is-disabled {
  background: #b6a492;
}

.transfer-notes {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.transfer-notes li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 800;
}

.detail-content {
  margin-top: 22px;
}

.detail-content h2 {
  margin-top: 0;
}

.growth-engine-detail-page,
.growth-engine-detail-content {
  min-width: 0;
}

.resource-detail-page {
  width: min(1120px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
  padding-top: clamp(20px, 3vw, 34px);
}

.growth-engine-detail-page {
  width: 100%;
}

.growth-engine-detail-content {
  width: 100%;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
}

.growth-engine-detail-content > * {
  max-width: 100%;
}

.growth-engine-detail-content img,
.growth-engine-detail-content video,
.growth-engine-detail-content iframe {
  max-width: 100%;
}

.growth-engine-detail-content img,
.growth-engine-detail-content video {
  height: auto;
}

.growth-engine-detail-content table {
  max-width: 100%;
}

.growth-engine-detail-content a[style*="width"] {
  max-width: min(520px, 100%) !important;
}

.growth-engine-detail-content figure {
  max-width: 100%;
}

.growth-engine-detail-content figure img {
  border-radius: 8px;
}

.archive-hero {
  padding: clamp(20px, 3vw, 34px);
  margin-top: 12px;
}

.archive-hero .eyebrow {
  margin-bottom: 12px;
}

.archive-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
}

.archive-hero p:not(.eyebrow) {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.7;
}

.archive-filters {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(189, 125, 50, 0.18);
}

.archive-filters div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.archive-filters strong {
  width: 72px;
  color: var(--wine);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .brand,
  .account-actions,
  .account-entry,
  .admin-menu {
    justify-self: center;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .v2-hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-transfer-link {
    grid-column: 1 / -1;
  }

  .v2-resource-card.resource-card {
    grid-template-columns: 86px minmax(0, 1fr) 108px;
    grid-template-areas:
      "cover info actions"
      "cover status actions"
      "cover disks actions";
  }

  .v2-resource-card .cover {
    grid-area: cover;
  }

  .v2-resource-card .resource-info {
    grid-area: info;
  }

  .v2-resource-card .resource-status {
    grid-area: status;
    justify-items: start;
    text-align: left;
  }

  .v2-resource-card .disk-list {
    grid-area: disks;
    display: flex;
    flex-wrap: wrap;
    justify-items: start;
  }

  .v2-resource-card .resource-actions {
    grid-area: actions;
    align-self: center;
  }

  .rank-grid,
  .matrix-grid,
  .channel-grid,
  .v2-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Unified Detail Page Baseline V1: shared Partner/Owned structure, Diqimatou brand skin. */
.resource-detail-page .baseline-detail {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.resource-detail-page .baseline-detail-hero,
.resource-detail-page .baseline-section {
  border: 1px solid rgba(151, 28, 34, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 46px rgba(78, 45, 18, 0.07);
}

.resource-detail-page .baseline-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 82% 18%, rgba(189, 125, 50, 0.14), transparent 32%),
    linear-gradient(135deg, #fffdf8 0%, #fff7ec 100%);
}

.resource-detail-page .baseline-detail-main {
  min-width: 0;
}

.resource-detail-page .baseline-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(221, 247, 226, 0.92);
  color: #188044;
  font-size: 13px;
  font-weight: 900;
}

.resource-detail-page .baseline-detail-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.resource-detail-page .baseline-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.resource-detail-page .baseline-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(189, 125, 50, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.resource-detail-page .baseline-summary {
  display: -webkit-box;
  max-width: 780px;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-detail-page .baseline-poster.cover {
  position: relative;
  width: min(100%, 230px);
  aspect-ratio: 2 / 3;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 28, 34, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, #7e2227 0%, #182d28 100%);
  box-shadow: 0 18px 38px rgba(32, 24, 18, 0.18);
}

.resource-detail-page .baseline-poster.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-detail-page .baseline-poster.cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(151, 28, 34, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.resource-detail-page .baseline-section {
  padding: clamp(16px, 2vw, 24px);
}

.resource-detail-page .baseline-section h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
}

.resource-detail-page .baseline-richtext {
  max-width: 980px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.84;
}

.resource-detail-page .baseline-richtext p:first-child {
  margin-top: 0;
}

.resource-detail-page .baseline-richtext p:last-child {
  margin-bottom: 0;
}

.resource-detail-page .baseline-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.resource-detail-page .baseline-info-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(37, 134, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.resource-detail-page .baseline-info-grid span,
.resource-detail-page .baseline-info-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-detail-page .baseline-info-grid span {
  color: #7b716a;
  font-size: 12px;
  font-weight: 850;
}

.resource-detail-page .baseline-info-grid strong {
  margin-top: 6px;
  color: #1265c8;
  font-size: 15px;
  font-weight: 900;
}

.resource-detail-page .baseline-second-cta {
  display: flex;
  justify-content: center;
  padding-block: 18px;
}

.resource-detail-page .baseline-second-cta .detail-transfer-cta {
  width: min(100%, 560px);
}

.resource-detail-page .baseline-tags {
  display: grid;
  gap: 12px;
}

.resource-detail-page .baseline-tag-group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.resource-detail-page .baseline-tag-group > span {
  color: #7b716a;
  font-size: 13px;
  font-weight: 900;
  line-height: 32px;
}

.resource-detail-page .baseline-tag-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resource-detail-page .baseline-tag-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(189, 125, 50, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.resource-detail-page .baseline-related .detail-recommend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-detail-page .baseline-topics .detail-topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-detail-page .baseline-related .resource-card:nth-child(n + 7),
.resource-detail-page .baseline-topics .matrix-card:nth-child(n + 5) {
  display: none;
}

.resource-detail-page .baseline-seo .detail-seo-details {
  border: 1px solid rgba(189, 125, 50, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}

.resource-detail-page .baseline-seo .detail-seo-details summary {
  min-height: 48px;
  padding: 0 14px;
}

.resource-detail-page .baseline-seo .detail-note-content {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.resource-detail-page .baseline-seo .detail-disclaimer {
  border-top: 1px solid rgba(189, 125, 50, 0.12);
  padding-top: 12px;
}

.resource-detail-page .baseline-detail .detail-transfer-cta {
  margin-top: 18px;
}

.resource-detail-page .baseline-detail .detail-transfer-form {
  margin: 0;
}

.resource-detail-page .baseline-detail .detail-transfer-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 60px !important;
  width: min(100%, 520px) !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #b3262d 0%, #891015 100%) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(151, 28, 34, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  cursor: pointer;
}

.resource-detail-page .baseline-detail .detail-transfer-button svg {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 auto;
  fill: currentColor;
}

.resource-detail-page .baseline-detail .detail-transfer-button:hover,
.resource-detail-page .baseline-detail .detail-transfer-button:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(151, 28, 34, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

.resource-detail-page .baseline-detail .detail-transfer-microcopy {
  margin: 8px 0 0;
  color: #7b716a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.resource-detail-page .baseline-second-cta .detail-transfer-button {
  min-height: 52px !important;
  font-size: 16px !important;
}

@media (min-width: 1500px) {
  .resource-detail-page .baseline-related .detail-recommend-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .resource-detail-page .baseline-detail-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .resource-detail-page .baseline-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-detail-page .baseline-topics .detail-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .resource-detail-page .baseline-detail {
    gap: 12px;
  }

  .resource-detail-page .baseline-detail-hero,
  .resource-detail-page .baseline-section {
    border-radius: 12px;
  }

  .resource-detail-page .baseline-detail-hero {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 14px;
  }

  .resource-detail-page .baseline-status {
    min-height: 26px;
    margin-bottom: 8px;
    padding: 0 9px;
    font-size: 12px;
  }

  .resource-detail-page .baseline-detail-hero h1 {
    font-size: 22px;
    line-height: 1.22;
  }

  .resource-detail-page .baseline-meta-line {
    gap: 6px;
    margin-top: 10px;
  }

  .resource-detail-page .baseline-meta-line span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
  }

  .resource-detail-page .baseline-summary {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
  }

  .resource-detail-page .baseline-poster.cover {
    width: 104px;
    border-radius: 10px;
  }

  .resource-detail-page .baseline-section {
    padding: 14px;
  }

  .resource-detail-page .baseline-section h2 {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .resource-detail-page .baseline-richtext {
    font-size: 14px;
    line-height: 1.72;
  }

  .resource-detail-page .baseline-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .resource-detail-page .baseline-info-grid div {
    padding: 9px;
  }

  .resource-detail-page .baseline-info-grid strong {
    font-size: 13px;
  }

  .resource-detail-page .baseline-tag-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .resource-detail-page .baseline-tag-group > span {
    line-height: 1.2;
  }

  .resource-detail-page .baseline-related .detail-recommend-grid,
  .resource-detail-page .baseline-topics .detail-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .resource-detail-page .baseline-related .resource-card:nth-child(n + 4),
  .resource-detail-page .baseline-topics .matrix-card:nth-child(n + 4) {
    display: none;
  }

  .resource-detail-page .baseline-detail .detail-transfer-cta {
    margin-top: 12px;
  }

  .resource-detail-page .baseline-detail .detail-transfer-button {
    min-height: 52px !important;
    width: 100% !important;
    padding: 0 16px !important;
    font-size: 16px !important;
  }

  .resource-detail-page .baseline-detail .detail-transfer-microcopy {
    font-size: 12px !important;
  }
}

/* UI LOCK visual restoration */
.v2-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background:
    linear-gradient(100deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 248, 237, 0.92) 54%, rgba(156, 45, 56, 0.12) 100%),
    url("assets/hero-current.jpg") right center / 42% auto no-repeat;
}

.v2-hero::after {
  content: "";
  position: absolute;
  right: clamp(28px, 6vw, 82px);
  bottom: clamp(20px, 4vw, 54px);
  width: min(290px, 28vw);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 250, 242, 0.58);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 30, 28, 0.04), rgba(20, 30, 28, 0.36)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  box-shadow: 0 22px 54px rgba(80, 48, 24, 0.2);
  pointer-events: none;
}

.v2-hero-copy,
.hero-stats {
  position: relative;
  z-index: 1;
}

.v2-hero-copy h1 {
  max-width: 620px;
}

.v2-hero-copy > p:not(.eyebrow) {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(189, 125, 50, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.hero-stats {
  align-content: end;
}

.hero-status-card {
  background: linear-gradient(135deg, rgba(31, 107, 98, 0.12), rgba(255, 253, 248, 0.9)) !important;
}

.hero-status-card strong {
  color: var(--jade);
  font-size: 28px;
}

.feature-card-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "cover"
    "info"
    "status"
    "disks"
    "actions";
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 16px 34px rgba(101, 67, 36, 0.1);
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover {
  grid-area: cover;
  width: 100%;
  min-height: 230px;
  border-radius: 0;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover span {
  top: 12px;
  right: 12px;
  left: auto;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-info,
.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status,
.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .disk-list,
.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions {
  padding-inline: 16px;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-info {
  grid-area: info;
  padding-top: 14px;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status {
  grid-area: status;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  text-align: left;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .disk-list {
  grid-area: disks;
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
}

.feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 16px;
}

.matrix-card {
  position: relative;
  overflow: hidden;
  min-height: 246px;
  padding: 0;
  color: #fffaf3;
  background: var(--wine);
}

.matrix-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 31, 28, 0.08), rgba(21, 31, 28, 0.68)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.matrix-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 250, 242, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(156, 45, 56, 0.78), rgba(31, 107, 98, 0.58));
}

.article-grid .matrix-card::after {
  background:
    linear-gradient(135deg, rgba(35, 57, 54, 0.82), rgba(156, 45, 56, 0.58)),
    radial-gradient(circle at 84% 12%, rgba(255, 250, 242, 0.24), transparent 24%);
}

.collection-entry-grid .matrix-card::after {
  background:
    linear-gradient(135deg, rgba(189, 125, 50, 0.82), rgba(116, 35, 44, 0.62)),
    radial-gradient(circle at 76% 16%, rgba(255, 250, 242, 0.22), transparent 24%);
}

.matrix-visual,
.matrix-body {
  position: relative;
  z-index: 1;
}

.matrix-visual {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 112px;
  padding: 14px;
}

.matrix-visual em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 242, 0.44);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.18);
  color: #fffaf3;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.matrix-body {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.matrix-kicker,
.matrix-meta,
.matrix-card p {
  color: rgba(255, 250, 243, 0.82);
}

.matrix-card strong {
  color: #fffaf3;
  font-size: 20px;
}

.matrix-action {
  background: rgba(255, 250, 243, 0.92);
  color: var(--wine);
}

.detail-more-links .matrix-card {
  min-height: 210px;
}

.resource-detail-hero.is-visual-detail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 237, 0.88)),
    url("assets/hero-current.jpg") right center / 34% auto no-repeat;
}

.resource-detail-hero.is-visual-detail .detail-cover.cover {
  border: 1px solid rgba(255, 250, 242, 0.68);
  box-shadow: 0 18px 44px rgba(80, 48, 24, 0.18);
}

.resource-state-panel {
  box-shadow: 0 12px 24px rgba(31, 107, 98, 0.08);
}

.detail-transfer-button {
  box-shadow: 0 15px 30px rgba(167, 102, 40, 0.24);
}

.detail-related .v2-resource-card.is-compact {
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 170px;
  background: linear-gradient(135deg, #fffdf8, #fff8ed);
  box-shadow: 0 12px 28px rgba(101, 67, 36, 0.08);
}

.detail-related .v2-resource-card.is-compact .cover {
  grid-row: 1 / 5;
  width: 92px;
  min-height: 126px;
}

@media (max-width: 1180px) {
  .feature-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-hero::after {
    opacity: 0.32;
  }
}

@media (max-width: 760px) {
  .v2-hero {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 237, 0.9)),
      url("assets/hero-current.jpg") center top / cover no-repeat;
  }

  .v2-hero::after {
    display: none;
  }

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

  .hero-stats div,
  .hero-transfer-link {
    min-height: 74px;
  }

  .hero-transfer-link {
    grid-column: 1 / -1;
  }

  .feature-card-list {
    grid-template-columns: 1fr;
  }

  .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover {
    min-height: 210px;
  }

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

  .channel-grid .matrix-card {
    min-height: 190px;
  }

  .matrix-grid.article-grid,
  .matrix-grid.collection-entry-grid {
    grid-template-columns: 1fr;
  }

  .is-limited-mobile .matrix-card:nth-child(n+4),
  .collection-entry-grid.is-limited-mobile .matrix-card:nth-child(n+5) {
    display: none;
  }

  .matrix-card {
    min-height: 210px;
  }

  .matrix-visual {
    min-height: 92px;
  }

  .resource-detail-hero.is-visual-detail {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 237, 0.92));
  }

}

@media (max-width: 480px) {
  .hero-stats strong {
    font-size: 25px;
  }

  .channel-grid {
    gap: 10px;
  }

  .channel-grid .matrix-card {
    min-height: 176px;
  }

  .matrix-card strong {
    font-size: 17px;
  }

  .matrix-card p {
    display: none;
  }

  .matrix-body {
    padding: 0 12px 12px;
  }
}

/* V2 UI LOCK restore: visual hierarchy, poster cards, channel/article/collection surfaces. */
.v2-home {
  --v2-cream: #fff8ed;
  --v2-paper: rgba(255, 253, 248, 0.94);
  --v2-ink: #1e302d;
  --v2-shadow-strong: 0 28px 80px rgba(90, 52, 28, 0.18);
  padding-top: 18px;
}

.v2-home .v2-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 3vw, 36px);
  min-height: 560px;
  overflow: hidden;
  border-color: rgba(189, 125, 50, 0.36);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0 48%, rgba(255, 248, 237, 0.72) 62%, rgba(31, 42, 38, 0.72) 100%),
    url("assets/hero-current.jpg") right center / 56% 100% no-repeat,
    var(--v2-paper);
  box-shadow: var(--v2-shadow-strong);
}

.v2-home .v2-hero::before {
  content: "";
  position: absolute;
  inset: 18px 18px 18px auto;
  z-index: -1;
  width: min(49%, 700px);
  border: 1px solid rgba(255, 250, 242, 0.46);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(23, 34, 31, 0.05), rgba(23, 34, 31, 0.72)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.14), 0 30px 70px rgba(54, 35, 24, 0.22);
}

.v2-home .v2-hero::after {
  right: clamp(34px, 7vw, 116px);
  bottom: clamp(24px, 5vw, 70px);
  z-index: 0;
  width: min(330px, 29vw);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.08), rgba(27, 38, 35, 0.78)),
    url("assets/hero-current.jpg") 58% 50% / cover no-repeat;
  box-shadow: 0 26px 72px rgba(24, 32, 30, 0.36);
}

.v2-home .v2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.v2-home .v2-hero-copy h1 {
  max-width: 660px;
  margin-top: 20px;
  color: var(--wine);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.08;
}

.v2-home .v2-hero-copy h1::after {
  content: "";
  display: block;
  width: 104px;
  height: 3px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--wine), var(--gold), var(--jade));
}

.v2-home .v2-hero-copy > p:not(.eyebrow) {
  margin-top: 22px;
  padding: 10px 14px;
  border-color: rgba(156, 45, 56, 0.18);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 14px 32px rgba(116, 79, 43, 0.08);
}

.v2-home .v2-search-box {
  width: min(740px, 100%);
  min-height: 68px;
  margin-top: 30px;
  padding: 8px 8px 8px 18px;
  border-color: rgba(156, 45, 56, 0.24);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 56px rgba(76, 45, 25, 0.16);
}

.v2-home .v2-search-box button,
.v2-home .hero-transfer-link,
.v2-home .transfer-action,
.resource-detail-page .detail-transfer-button {
  background: linear-gradient(135deg, #c7822f, #9c2d38);
  box-shadow: 0 16px 34px rgba(156, 45, 56, 0.22);
}

.v2-home .hot-searches {
  max-width: 760px;
}

.v2-home .hot-searches a {
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 20px rgba(101, 67, 36, 0.07);
}

.v2-home .hero-stats {
  align-self: end;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 390px;
  margin-left: auto;
}

.v2-home .hero-stats div,
.v2-home .hero-transfer-link {
  min-height: 116px;
  border-color: rgba(255, 250, 242, 0.34);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 42px rgba(31, 38, 35, 0.18);
  backdrop-filter: blur(14px);
}

.v2-home .hero-stats .hero-status-card {
  grid-column: 1 / -1;
  min-height: 130px;
  background:
    linear-gradient(135deg, rgba(31, 107, 98, 0.86), rgba(156, 45, 56, 0.72)),
    rgba(255, 253, 248, 0.86) !important;
  color: #fffaf3;
}

.v2-home .hero-stats .hero-status-card strong,
.v2-home .hero-stats .hero-status-card span {
  color: #fffaf3;
}

.v2-home .hero-stats strong {
  font-size: clamp(30px, 3vw, 42px);
}

.v2-home .hero-transfer-link {
  grid-column: 1 / -1;
  min-height: 60px;
  border-color: transparent;
  background: linear-gradient(135deg, #c7822f, #9c2d38);
  color: #fffaf3;
  font-size: 17px;
  box-shadow: 0 18px 38px rgba(156, 45, 56, 0.26);
}

.v2-home .v2-section {
  margin-top: 28px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
}

.v2-home .section-title {
  margin-bottom: 20px;
}

.v2-home .section-title h2 {
  font-size: clamp(26px, 2.8vw, 38px);
}

.v2-home .feature-card-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) {
  border-color: rgba(189, 125, 50, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf8, #fff8ed);
  box-shadow: 0 20px 46px rgba(101, 67, 36, 0.13);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact):hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 62px rgba(101, 67, 36, 0.18);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover {
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(35, 57, 54, 0.04), rgba(35, 57, 54, 0.46)),
    url("assets/hero-current.jpg") center / cover no-repeat;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover.is-empty em {
  align-content: end;
  padding-bottom: 30px;
  color: #fffaf3;
  text-shadow: 0 2px 12px rgba(19, 28, 27, 0.42);
}

.v2-resource-card .cover.is-empty,
.resource-detail-page .cover.is-empty {
  background:
    linear-gradient(180deg, rgba(35, 57, 54, 0.02), rgba(35, 57, 54, 0.54)),
    url("assets/hero-current.jpg") center / cover no-repeat;
}

.v2-resource-card .cover.is-empty em,
.resource-detail-page .cover.is-empty em {
  color: #fffaf3;
  text-shadow: 0 2px 12px rgba(19, 28, 27, 0.44);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover::after {
  inset: 10px;
  border-color: rgba(255, 250, 243, 0.5);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover span {
  border-radius: 999px;
  background: rgba(156, 45, 56, 0.92);
  box-shadow: 0 8px 18px rgba(35, 24, 20, 0.24);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-info {
  padding-top: 16px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .title-row h2 {
  font-size: 19px;
  line-height: 1.34;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-summary {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions {
  align-items: center;
}

.v2-home .matrix-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(189, 125, 50, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 237, 0.92));
}

.v2-home .channel-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.v2-home .channel-grid .matrix-card {
  min-height: 292px;
}

.v2-home .matrix-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(65, 45, 32, 0.18);
}

.v2-home .matrix-card::before {
  background:
    linear-gradient(180deg, rgba(17, 24, 23, 0.06), rgba(17, 24, 23, 0.72)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  filter: saturate(0.92) contrast(0.95);
}

.v2-home .channel-grid .matrix-card:nth-child(1)::after {
  background: linear-gradient(135deg, rgba(156, 45, 56, 0.82), rgba(198, 133, 64, 0.54));
}

.v2-home .channel-grid .matrix-card:nth-child(2)::after {
  background: linear-gradient(135deg, rgba(177, 72, 92, 0.82), rgba(77, 92, 130, 0.52));
}

.v2-home .channel-grid .matrix-card:nth-child(3)::after {
  background: linear-gradient(135deg, rgba(31, 74, 96, 0.84), rgba(156, 45, 56, 0.48));
}

.v2-home .channel-grid .matrix-card:nth-child(4)::after {
  background: linear-gradient(135deg, rgba(99, 47, 92, 0.82), rgba(31, 107, 98, 0.5));
}

.v2-home .channel-grid .matrix-card:nth-child(5)::after {
  background: linear-gradient(135deg, rgba(31, 107, 98, 0.82), rgba(189, 125, 50, 0.48));
}

.v2-home .channel-grid .matrix-card:nth-child(6)::after {
  background: linear-gradient(135deg, rgba(197, 117, 52, 0.84), rgba(156, 45, 56, 0.5));
}

.v2-home .channel-grid .matrix-card:nth-child(7)::after {
  background: linear-gradient(135deg, rgba(74, 57, 86, 0.86), rgba(31, 42, 38, 0.58));
}

.v2-home .channel-grid .matrix-card:nth-child(8)::after {
  background: linear-gradient(135deg, rgba(132, 78, 48, 0.86), rgba(31, 107, 98, 0.48));
}

.v2-home .channel-grid .matrix-card:nth-child(n+9)::after {
  background: linear-gradient(135deg, rgba(35, 57, 54, 0.84), rgba(189, 125, 50, 0.48));
}

.v2-home .matrix-visual {
  min-height: 136px;
  padding: 16px;
}

.v2-home .channel-grid .matrix-visual::before,
.v2-home .collection-entry-grid .matrix-visual::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 68px;
  height: 92px;
  border: 1px solid rgba(255, 250, 242, 0.4);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.26), rgba(255, 250, 242, 0.04)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  box-shadow: 18px 12px 0 rgba(255, 250, 242, 0.14), 34px 24px 0 rgba(255, 250, 242, 0.08);
}

.v2-home .matrix-body {
  gap: 9px;
  padding: 0 18px 18px;
}

.v2-home .matrix-card strong {
  font-size: 22px;
  line-height: 1.25;
}

.v2-home .article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-home .article-grid .matrix-card {
  min-height: 270px;
  color: var(--ink);
  background: #fffdf8;
}

.v2-home .article-grid .matrix-card::before {
  inset: 0 0 auto;
  height: 118px;
  background:
    linear-gradient(135deg, rgba(156, 45, 56, 0.76), rgba(31, 107, 98, 0.64)),
    url("assets/hero-current.jpg") center / cover no-repeat;
}

.v2-home .article-grid .matrix-card::after {
  inset: auto 18px 18px;
  height: calc(100% - 136px);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 40px rgba(45, 34, 26, 0.12);
}

.v2-home .article-grid .matrix-visual {
  min-height: 118px;
}

.v2-home .article-grid .matrix-body {
  padding-top: 6px;
}

.v2-home .article-grid .matrix-card strong {
  color: var(--wine);
}

.v2-home .article-grid .matrix-kicker,
.v2-home .article-grid .matrix-meta,
.v2-home .article-grid .matrix-card p {
  color: var(--muted);
}

.v2-home .article-grid .matrix-action {
  color: #fffaf3;
  background: linear-gradient(135deg, var(--gold), var(--wine));
}

.v2-home .collection-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.v2-home .collection-entry-grid .matrix-card {
  min-height: 238px;
}

.v2-home .collection-entry-grid .matrix-card:nth-child(odd)::after {
  background: linear-gradient(135deg, rgba(189, 125, 50, 0.84), rgba(31, 107, 98, 0.58));
}

.v2-home .collection-entry-grid .matrix-card:nth-child(even)::after {
  background: linear-gradient(135deg, rgba(156, 45, 56, 0.78), rgba(55, 68, 94, 0.58));
}

.v2-home .rank-grid .v2-resource-card.is-compact,
.resource-detail-page .detail-related .v2-resource-card.is-compact {
  border-radius: 14px;
  border-color: rgba(189, 125, 50, 0.22);
  background: linear-gradient(135deg, #fffdf8, #fff5e8);
}

.resource-detail-page .resource-detail-hero.is-visual-detail {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(189, 125, 50, 0.18), transparent 28%),
    linear-gradient(105deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 237, 0.9) 58%, rgba(31, 107, 98, 0.12));
  box-shadow: var(--v2-shadow-strong);
}

.resource-detail-page .resource-state-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  width: fit-content;
  max-width: 100%;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(31, 107, 98, 0.12), rgba(255, 253, 248, 0.92));
}

.resource-detail-page .detail-cover.cover {
  min-height: 320px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(35, 57, 54, 0.02), rgba(35, 57, 54, 0.48)),
    url("assets/hero-current.jpg") center / cover no-repeat;
}

.resource-detail-page .detail-summary {
  max-width: 720px;
}

@media (max-width: 1180px) {
  .v2-home .v2-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .v2-home .v2-hero::before {
    width: 44%;
    opacity: 0.42;
  }

  .v2-home .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
  }

  .v2-home .hero-stats .hero-status-card,
  .v2-home .hero-transfer-link {
    grid-column: auto;
  }

  .v2-home .feature-card-list,
  .v2-home .collection-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-home .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 82px;
  }

  .v2-home {
    padding-top: 10px;
  }

  .v2-home .v2-hero {
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 237, 0.92)),
      url("assets/hero-current.jpg") center top / cover no-repeat;
  }

  .v2-home .v2-hero::before,
  .v2-home .v2-hero::after {
    display: none;
  }

  .v2-home .v2-hero-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .v2-home .v2-search-box {
    min-height: 58px;
    margin-top: 22px;
  }

  .v2-home .hot-searches a:nth-of-type(n+5) {
    display: none;
  }

  .v2-home .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-home .hero-stats div,
  .v2-home .hero-transfer-link {
    min-height: 82px;
    padding: 14px;
  }

  .v2-home .hero-stats .hero-status-card,
  .v2-home .hero-transfer-link {
    grid-column: 1 / -1;
  }

  .v2-home .v2-section {
    margin-top: 18px;
    padding: 16px;
  }

  .v2-home .section-title {
    display: grid;
    gap: 8px;
  }

  .v2-home .feature-card-list {
    grid-template-columns: 1fr;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact):nth-child(n+4),
  .v2-home .rank-grid .v2-resource-card.is-compact:nth-child(n+5),
  .v2-home .channel-grid .matrix-card:nth-child(n+7),
  .v2-home .article-grid .matrix-card:nth-child(n+4),
  .v2-home .collection-entry-grid .matrix-card:nth-child(n+5) {
    display: none;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover {
    min-height: 220px;
  }

  .v2-home .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .v2-home .channel-grid .matrix-card {
    min-height: 204px;
  }

  .v2-home .article-grid,
  .v2-home .collection-entry-grid {
    grid-template-columns: 1fr;
  }

  .v2-home .article-grid .matrix-card {
    min-height: 230px;
  }

  .v2-home .category-latest {
    display: none;
  }

  .resource-detail-page .resource-detail-hero.is-visual-detail {
    grid-template-columns: 1fr;
  }

  .resource-detail-page .resource-state-panel {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .resource-detail-page .detail-cover.cover {
    order: 2;
    min-height: 210px;
  }
}

@media (max-width: 480px) {
  .v2-home .hero-stats {
    gap: 10px;
  }

  .v2-home .hero-stats strong {
    font-size: 28px;
  }

  .v2-home .channel-grid .matrix-card {
    min-height: 188px;
  }

  .v2-home .matrix-visual {
    min-height: 104px;
  }

  .v2-home .matrix-card strong {
    font-size: 18px;
  }

  .v2-home .matrix-meta {
    display: none;
  }
}

/* Reference lock: compact resource-site dashboard from the approved design image. */
:root {
  --ref-red: #8f1718;
  --ref-red-dark: #6f1012;
  --ref-orange: #d97805;
  --ref-border: rgba(143, 23, 24, 0.16);
  --ref-panel: rgba(255, 253, 247, 0.96);
}

body {
  background:
    radial-gradient(circle at 96% 2%, rgba(217, 120, 5, 0.08), transparent 24%),
    linear-gradient(180deg, #fffaf1 0, #f8efe3 100%);
}

.site-header {
  min-height: 78px;
  padding: 10px clamp(18px, 3vw, 48px);
  border-bottom-color: rgba(143, 23, 24, 0.12);
}

.brand {
  grid-template-columns: 58px minmax(0, auto);
  column-gap: 10px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.brand-name {
  color: var(--ref-red);
  font-size: 25px;
}

.brand-sub {
  color: var(--ref-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  gap: clamp(14px, 1.25vw, 24px);
  font-size: clamp(16px, 1.05vw, 18px);
  font-weight: 850;
  line-height: 1;
}

.nav-links a {
  padding: 24px 0 18px;
}

.account-entry,
.admin-menu summary {
  padding: 7px 12px 7px 7px;
  border-color: rgba(217, 120, 5, 0.22);
  background: rgba(255, 250, 242, 0.94);
}

.account-register {
  border-color: rgba(156, 45, 56, 0.28);
  background: linear-gradient(135deg, var(--wine), #b53f3b);
  color: #fffaf3;
}

.account-entry span {
  width: 32px;
  height: 32px;
}

.account-link {
  color: var(--ref-red);
  border-color: rgba(143, 23, 24, 0.18);
  background: rgba(255, 253, 248, 0.82);
}

.page-back-nav {
  margin: 0 0 14px;
}

.page-back-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(143, 23, 24, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ref-red);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(116, 72, 36, 0.06);
}

.page-back-nav a:hover {
  border-color: transparent;
  background: var(--ref-red);
  color: #fffaf3;
}

.page-shell {
  width: min(1480px, calc(100% - clamp(18px, 3vw, 42px)));
  margin-inline: auto;
  padding-top: 14px;
}

.page-shell.resource-detail-page {
  width: min(1120px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
  padding-top: clamp(20px, 3vw, 34px);
}

.v2-home .v2-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 318px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 10%, rgba(217, 120, 5, 0.08), transparent 22%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(255, 247, 235, 0.94));
  box-shadow: 0 16px 44px rgba(116, 72, 36, 0.1);
}

.v2-home .v2-hero::before,
.v2-home .v2-hero::after {
  display: none;
}

.v2-home .v2-hero-copy h1 {
  max-width: 620px;
  margin-top: 12px;
  font-size: clamp(42px, 4.8vw, 70px);
  line-height: 1.08;
  color: var(--ref-red);
}

.v2-home .v2-hero-copy h1::after {
  width: 88px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--ref-red), var(--ref-red), transparent);
}

.v2-home .v2-hero-copy > p:not(.eyebrow) {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #5d4b3e;
  font-size: 18px;
}

.v2-home .v2-search-box {
  display: grid;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 54px;
  margin-top: 22px;
  padding: 7px 8px 7px 12px;
  border: 1px solid rgba(143, 23, 24, 0.24);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 12px 26px rgba(116, 72, 36, 0.08);
}

.v2-home .v2-search-box button,
.v2-home .transfer-action,
.resource-detail-page .detail-transfer-button,
.v2-home .article-grid .matrix-action {
  background: linear-gradient(180deg, #a01f20, var(--ref-red-dark));
  box-shadow: 0 10px 22px rgba(143, 23, 24, 0.18);
}

.v2-home .v2-search-box button {
  min-width: 92px;
  border: 0;
  border-radius: 7px;
  color: #fffaf3;
}

.v2-home .hot-searches {
  gap: 8px;
  margin-top: 14px;
}

.v2-home .hot-searches a {
  min-height: 28px;
  padding: 0 11px;
  border-color: rgba(143, 23, 24, 0.14);
  background: #fffaf2;
  color: #5b4a3d;
  font-size: 12px;
  box-shadow: none;
}

.v2-home .hero-stats {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
}

.v2-home .hero-stats div,
.v2-home .hero-transfer-link {
  min-height: 116px;
  padding: 18px 16px;
  border: 1px solid rgba(143, 23, 24, 0.13);
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(116, 72, 36, 0.08);
  backdrop-filter: none;
}

.v2-home .hero-stats div:not(.hero-status-card) {
  align-content: center;
}

.v2-home .hero-stats strong {
  color: var(--ref-red);
  font-size: clamp(32px, 3.1vw, 46px);
  font-family: Georgia, "Times New Roman", serif;
}

.v2-home .hero-stats span {
  color: #6d5d50;
  font-size: 13px;
}

.v2-home .hero-stats .hero-status-card {
  order: 4;
  grid-column: 1 / 3;
  min-height: 48px;
  align-content: center;
  padding: 10px 14px;
  background: #fff9ef !important;
  color: #6d4f20;
}

.v2-home .hero-stats .hero-status-card strong {
  color: #6d4f20;
  font-size: 16px;
  font-family: inherit;
}

.v2-home .hero-stats .hero-status-card span {
  color: #6d5d50;
}

.v2-home .hero-transfer-link {
  order: 5;
  grid-column: 3 / 4;
  min-height: 48px;
  padding: 0 14px;
  border-color: transparent !important;
  background: linear-gradient(180deg, #a01f20, var(--ref-red-dark)) !important;
  color: #fffaf3;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(143, 23, 24, 0.18);
}

.v2-home .v2-section {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ref-border);
  border-radius: 9px;
  background: var(--ref-panel);
  box-shadow: 0 12px 30px rgba(116, 72, 36, 0.08);
}

.v2-home .section-title {
  align-items: center;
  margin-bottom: 14px;
}

.v2-home .section-title h2 {
  color: var(--ref-red);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 850;
}

.section-kicker {
  color: #8b7562;
  font-size: 12px;
}

.v2-home .resource-toolbar {
  padding: 0;
  margin-bottom: 10px;
}

.v2-home .feature-card-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) {
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas:
    "cover info"
    "cover status"
    "cover disks"
    "cover actions";
  gap: 10px;
  min-height: 154px;
  padding: 10px;
  border-radius: 8px;
  border-color: rgba(143, 23, 24, 0.12);
  background: #fffaf2;
  box-shadow: 0 8px 20px rgba(101, 67, 36, 0.07);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(101, 67, 36, 0.12);
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover {
  grid-area: cover;
  width: 86px;
  min-height: 132px;
  border-radius: 6px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover.is-empty em {
  align-content: center;
  padding: 18px 8px 8px;
  font-size: 12px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-info,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .disk-list,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions {
  padding-inline: 0;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-info {
  padding-top: 2px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .title-row h2 {
  margin: 0;
  color: #1f302c;
  font-size: 15px;
  font-weight: 850;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-meta-line {
  font-size: 12px;
  line-height: 1.4;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-summary {
  display: none;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status {
  align-items: center;
  padding-top: 0;
}

.resource-status .valid {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 5px;
  background: #dff3df;
  color: #278141;
  font-size: 12px;
  font-weight: 800;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status p {
  font-size: 12px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .disk-list {
  padding-top: 0;
}

.disk-list em {
  padding: 3px 7px;
  border-radius: 5px;
  background: #fff3df;
  color: #a76a18;
  font-size: 11px;
}

.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions {
  grid-template-columns: 1fr;
  gap: 6px;
  padding-top: 0;
  padding-bottom: 0;
}

.v2-home .feature-card-list .detail-link {
  display: none;
}

.transfer-action,
.detail-transfer-button {
  min-height: 31px;
  border-radius: 5px;
  font-size: 12px;
}

.v2-home .channel-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.v2-home .channel-grid .matrix-card,
.v2-home .collection-entry-grid .matrix-card {
  min-height: 156px;
}

.v2-home .matrix-card {
  border: 1px solid rgba(143, 23, 24, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(101, 67, 36, 0.08);
}

.v2-home .matrix-visual {
  min-height: 74px;
  padding: 8px;
}

.v2-home .channel-grid .matrix-visual::before,
.v2-home .collection-entry-grid .matrix-visual::before {
  left: 8px;
  top: 8px;
  width: 52px;
  height: 62px;
  border-radius: 6px;
  box-shadow: 12px 8px 0 rgba(255, 250, 242, 0.14);
}

.v2-home .matrix-visual em {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.v2-home .matrix-body {
  gap: 5px;
  padding: 0 10px 10px;
}

.v2-home .matrix-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.v2-home .matrix-card p {
  display: -webkit-box;
  min-height: 32px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-home .matrix-kicker,
.v2-home .matrix-meta {
  font-size: 10px;
}

.v2-home .matrix-meta {
  display: none;
}

.v2-home .matrix-action {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11px;
}

.v2-home .rank-tabs {
  margin-bottom: 12px;
}

.v2-home .rank-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.v2-home .rank-grid .v2-resource-card.is-compact {
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 126px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: none;
}

.v2-home .rank-grid .v2-resource-card.is-compact .cover {
  width: 66px;
  min-height: 92px;
}

.v2-home .rank-grid .v2-resource-card.is-compact .resource-actions {
  grid-template-columns: 1fr;
}

.v2-home .rank-grid .v2-resource-card.is-compact .detail-link {
  display: none;
}

.v2-home .article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v2-home .article-grid .matrix-card {
  min-height: 164px;
  background: #fffdf8;
}

.v2-home .article-grid .matrix-card::before {
  height: 72px;
}

.v2-home .article-grid .matrix-card::after {
  inset: auto 10px 10px;
  height: calc(100% - 84px);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(45, 34, 26, 0.08);
}

.v2-home .article-grid .matrix-visual {
  min-height: 72px;
}

.v2-home .article-grid .matrix-card strong {
  font-size: 15px;
}

.v2-home .collection-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-detail-page .resource-detail-hero.is-visual-detail {
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 0;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 8px;
  border-color: var(--ref-border);
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(255, 247, 235, 0.94));
  box-shadow: 0 14px 34px rgba(116, 72, 36, 0.09);
}


.resource-detail-page .detail-update-status {
  color: #138246;
  font-size: 14px;
}

.resource-detail-page .resource-state-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: min(100%, 760px);
  padding: 14px 18px;
  border-color: rgba(20, 132, 70, 0.18);
  border-radius: 7px;
  background: #eef9ed;
  box-shadow: none;
}

.resource-detail-page .detail-transfer-button {
  width: min(520px, 100%);
  min-height: 58px;
  margin-top: 18px;
  border-radius: 7px;
  background: linear-gradient(180deg, #efa21a, #d97805);
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(217, 120, 5, 0.24);
}

.resource-detail-page .detail-cover.cover {
  min-height: 330px;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(45, 34, 26, 0.16);
}

.resource-detail-page .detail-related .v2-resource-card.is-compact {
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 150px;
  border-radius: 8px;
  background: #fffaf2;
}

.resource-detail-page .detail-related .v2-resource-card.is-compact .cover {
  width: 80px;
  min-height: 112px;
}

@media (max-width: 1180px) {
  .v2-home .v2-hero {
    grid-template-columns: 1fr;
  }

  .v2-home .hero-stats {
    max-width: none;
  }

  .v2-home .feature-card-list,
  .v2-home .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v2-home .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 58px;
    padding: 8px 12px;
    overflow-x: hidden;
  }

  .brand {
    grid-template-columns: 36px minmax(0, auto);
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    width: calc(100% + 24px);
    max-width: none;
    margin-inline: -12px;
    padding: 8px 12px 4px;
    overflow-x: auto;
    scroll-padding-inline: 12px;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 11px;
    border: 1px solid rgba(143, 23, 24, 0.12);
    border-radius: 999px;
    background: #fffdf8;
    scroll-snap-align: start;
  }

  .account-actions {
    justify-self: end;
    gap: 6px;
  }

  .account-entry {
    padding: 5px;
  }

  .account-entry strong {
    display: inline;
    padding-right: 5px;
    font-size: 13px;
  }

  .account-entry span {
    width: 28px;
    height: 28px;
  }

  .account-link {
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .page-shell {
    width: min(100% - 16px, 1440px);
    padding-top: 8px;
  }

  .page-back-nav {
    margin: 0 0 8px;
  }

  .page-back-nav a {
    min-height: 31px;
    padding: 0 11px;
    font-size: 12px;
    box-shadow: none;
  }

  .v2-home .v2-hero {
    padding: 14px;
    border-radius: 8px;
    background:
      radial-gradient(circle at 92% 0%, rgba(217, 120, 5, 0.08), transparent 26%),
      linear-gradient(135deg, #fffdf8, #fff7eb);
  }

  .v2-home .v2-hero-copy h1 {
    margin-top: 8px;
    font-size: 28px;
  }

  .v2-home .v2-hero-copy h1::after {
    margin-top: 10px;
  }

  .v2-home .v2-hero-copy > p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 13px;
  }

  .v2-home .v2-search-box {
    grid-template-columns: auto 1fr auto;
    min-height: 42px;
    margin-top: 12px;
    padding: 5px 5px 5px 10px;
  }

  .v2-home .v2-search-box button {
    grid-column: auto;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .v2-home .hot-searches {
    gap: 6px;
  }

  .v2-home .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .v2-home .hero-stats div {
    min-height: 72px;
    padding: 10px 8px;
  }

  .v2-home .hero-stats strong {
    font-size: 26px;
  }

  .v2-home .hero-stats span {
    font-size: 11px;
  }

  .v2-home .hero-stats .hero-status-card,
  .v2-home .hero-transfer-link {
    grid-column: 1 / -1;
    min-height: 38px;
  }

  .v2-home .v2-section {
    margin-top: 10px;
    padding: 12px;
  }

  .v2-home .section-title h2 {
    font-size: 20px;
  }

  .v2-home .resource-toolbar {
    display: none;
  }

  .v2-home .feature-card-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) {
    grid-template-columns: 72px minmax(0, 1fr) 80px;
    grid-template-areas:
      "cover info actions"
      "cover status actions"
      "cover disks actions";
    min-height: 104px;
    padding: 8px;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover {
    width: 72px;
    min-height: 96px;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions {
    grid-area: actions;
    align-self: center;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .title-row h2 {
    font-size: 14px;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-meta-line {
    font-size: 11px;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact):nth-child(n+4),
  .v2-home .rank-grid .v2-resource-card.is-compact:nth-child(n+4),
  .v2-home .channel-grid .matrix-card:nth-child(n+9),
  .v2-home .article-grid .matrix-card:nth-child(n+4),
  .v2-home .collection-entry-grid .matrix-card:nth-child(n+4) {
    display: none;
  }

  .v2-home .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .v2-home .channel-grid .matrix-card {
    min-height: 118px;
  }

  .v2-home .matrix-visual {
    min-height: 58px;
    padding: 6px;
  }

  .v2-home .channel-grid .matrix-visual::before,
  .v2-home .collection-entry-grid .matrix-visual::before {
    left: 6px;
    top: 6px;
    width: 38px;
    height: 48px;
  }

  .v2-home .matrix-body {
    padding: 0 7px 7px;
  }

  .v2-home .matrix-card strong {
    font-size: 12px;
  }

  .v2-home .matrix-card p,
  .v2-home .matrix-kicker,
  .v2-home .matrix-meta {
    display: none;
  }

  .v2-home .matrix-action {
    min-height: 22px;
    padding: 4px 6px;
    font-size: 10px;
  }

  .v2-home .rank-grid {
    grid-template-columns: 1fr;
  }

  .v2-home .rank-grid .v2-resource-card.is-compact {
    grid-template-columns: 68px minmax(0, 1fr) 78px;
    grid-template-areas:
      "cover info actions"
      "cover status actions"
      "cover disks actions";
    min-height: 98px;
  }

  .v2-home .rank-grid .v2-resource-card.is-compact .cover {
    width: 62px;
    min-height: 82px;
  }

  .v2-home .rank-grid .v2-resource-card.is-compact .resource-actions {
    grid-area: actions;
    align-self: center;
  }

  .v2-home .article-grid,
  .v2-home .collection-entry-grid {
    grid-template-columns: 1fr;
  }

  .v2-home .article-grid .matrix-card {
    min-height: 132px;
  }

  .v2-home .collection-entry-grid .matrix-card {
    min-height: 126px;
  }

  .resource-detail-page .resource-detail-hero.is-visual-detail {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .resource-detail-page .detail-cover.cover {
    order: 2;
    min-height: 220px;
  }

  .resource-detail-page .detail-transfer-button {
    min-height: 48px;
    font-size: 16px;
  }
}

/* V2 resource card standard: 16:9 cover first, then content and transfer. */
.v2-card-list,
.feature-card-list,
.rank-grid,
.mini-resource-grid {
  align-items: stretch;
}

.v2-home .feature-card-list,
.feature-card-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.v2-home .rank-grid,
.rank-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-block .mini-resource-grid,
.detail-related .mini-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-resource-card.resource-card,
.v2-resource-card.resource-card.is-compact,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact),
.v2-home .rank-grid .v2-resource-card.is-compact,
.resource-detail-page .detail-related .v2-resource-card.is-compact,
.detail-related .v2-resource-card.is-compact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "cover"
    "info"
    "status"
    "disks"
    "actions";
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf8, #fff8ef);
  box-shadow: 0 12px 26px rgba(75, 47, 24, 0.08);
}

.v2-resource-card.resource-card:hover,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact):hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(75, 47, 24, 0.12);
}

.v2-resource-card .cover,
.v2-resource-card.is-compact .cover,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover,
.v2-home .rank-grid .v2-resource-card.is-compact .cover,
.resource-detail-page .detail-related .v2-resource-card.is-compact .cover,
.detail-related .v2-resource-card.is-compact .cover {
  grid-area: cover;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(135deg, #8f1718, #173832);
}

.v2-resource-card .cover img,
.v2-resource-card.is-compact .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-resource-card .cover.is-empty em,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover.is-empty em {
  max-width: 82%;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.v2-resource-card .cover span,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover span {
  left: 10px;
  top: 10px;
  right: auto;
  bottom: auto;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(143, 23, 24, 0.92);
  color: #fff;
  font-size: 12px;
}

.v2-resource-card .rank-badge,
.v2-home .rank-grid .v2-resource-card.is-compact .rank-badge {
  position: absolute;
  z-index: 3;
  left: 16px;
  top: 16px;
}

.v2-resource-card .resource-info,
.v2-resource-card.is-compact .resource-info,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-info {
  grid-area: info;
  min-width: 0;
  padding: 0;
}

.v2-resource-card .title-row h2,
.v2-resource-card.is-compact .title-row h2,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .title-row h2 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0;
  overflow: hidden;
  color: #203633;
  font-size: 17px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-resource-card .title-row h2 a {
  color: inherit;
}

.v2-resource-card .resource-meta-line,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-meta-line {
  margin-top: 8px;
  color: #796d63;
  font-size: 13px;
  line-height: 1.5;
}

.v2-resource-card .resource-summary,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-summary {
  display: none;
}

.v2-resource-card .resource-status,
.v2-resource-card.is-compact .resource-status,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  padding: 0;
}

.v2-resource-card .resource-status .valid {
  white-space: nowrap;
}

.v2-resource-card .resource-status p {
  margin: 0;
  color: #796d63;
  font-size: 13px;
  line-height: 1.35;
}

.v2-resource-card .disk-list,
.v2-resource-card.is-compact .disk-list,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .disk-list {
  grid-area: disks;
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.v2-resource-card .resource-actions,
.v2-resource-card.is-compact .resource-actions,
.v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions,
.v2-home .rank-grid .v2-resource-card.is-compact .resource-actions,
.resource-detail-page .detail-related .v2-resource-card.is-compact .resource-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-self: end;
  gap: 8px;
  padding: 0;
}

.v2-resource-card .primary-action,
.v2-resource-card .transfer-action {
  width: 100%;
  min-height: 42px;
  border-radius: 7px;
}

.v2-resource-card .detail-link,
.v2-home .rank-grid .v2-resource-card.is-compact .detail-link {
  display: none;
}

@media (max-width: 1180px) {
  .v2-home .feature-card-list,
  .feature-card-list,
  .v2-home .rank-grid,
  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .v2-home .feature-card-list,
  .feature-card-list,
  .v2-home .rank-grid,
  .rank-grid,
  .category-block .mini-resource-grid,
  .detail-related .mini-resource-grid {
    grid-template-columns: 1fr;
  }

  .v2-resource-card.resource-card,
  .v2-resource-card.resource-card.is-compact,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact),
  .v2-home .rank-grid .v2-resource-card.is-compact,
  .resource-detail-page .detail-related .v2-resource-card.is-compact {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "cover"
      "info"
      "status"
      "disks"
      "actions";
    padding: 10px;
  }

  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact):nth-child(n+4),
  .v2-home .rank-grid .v2-resource-card.is-compact:nth-child(n+4) {
    display: none;
  }

  .v2-resource-card .cover,
  .v2-resource-card.is-compact .cover,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover,
  .v2-home .rank-grid .v2-resource-card.is-compact .cover,
  .resource-detail-page .detail-related .v2-resource-card.is-compact .cover {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .v2-resource-card .title-row h2,
  .v2-resource-card.is-compact .title-row h2,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .title-row h2 {
    min-height: auto;
    font-size: 16px;
  }
}

/* Keep only the resource detail hero as a vertical-poster layout. */
.resource-detail-page .resource-detail-hero.is-visual-detail {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  grid-template-areas: "detail-main detail-poster";
  align-items: start;
}

.resource-detail-page .resource-detail-hero.is-visual-detail .detail-main {
  grid-area: detail-main;
}

.resource-detail-page .resource-detail-hero.is-visual-detail .detail-cover.cover {
  grid-area: detail-poster;
  width: 100%;
  min-height: 330px;
  aspect-ratio: 2 / 3;
}

.resource-detail-page .resource-detail-hero.is-visual-detail .detail-cover.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .resource-detail-page .resource-detail-hero.is-visual-detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "detail-main"
      "detail-poster";
  }

  .resource-detail-page .resource-detail-hero.is-visual-detail .detail-cover.cover {
    max-width: 220px;
    min-height: 300px;
    margin: 0 auto;
  }
}

/* Keep the homepage positioning headline on one line. */
.v2-home .v2-hero-copy h1 {
  max-width: none;
  white-space: nowrap;
  font-size: 62px;
  line-height: 1.06;
}

@media (max-width: 1180px) {
  .v2-home .v2-hero-copy h1 {
    font-size: 54px;
  }
}

@media (max-width: 900px) {
  .v2-home .v2-hero-copy h1 {
    font-size: 42px;
  }
}

@media (max-width: 520px) {
  .v2-home .v2-hero-copy h1 {
    font-size: 32px;
  }
}

/* Channel System V1 */
.channel-page {
  display: grid;
  gap: 18px;
}

.channel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  min-height: 0;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 120, 5, 0.11), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(255, 247, 235, 0.94));
  box-shadow: 0 10px 28px rgba(116, 72, 36, 0.08);
}

.channel-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.channel-hero-copy h1 {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--ref-red);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.channel-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: #5d4b3e;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.channel-why {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(153, 22, 26, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.channel-why strong {
  color: var(--ref-red);
  font-size: 15px;
}

.channel-why span {
  color: #5d4b3e;
  font-size: 14px;
  line-height: 1.55;
}

.channel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.channel-primary-link,
.channel-secondary-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.channel-primary-link {
  border: 1px solid var(--ref-red);
  background: var(--ref-red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(153, 22, 26, 0.18);
}

.channel-secondary-link {
  border: 1px solid rgba(153, 22, 26, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ref-red);
}

.channel-featured-cover {
  position: relative;
  display: flex;
  min-height: 120px;
  max-height: 148px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(153, 22, 26, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(153, 22, 26, 0.76), rgba(31, 54, 50, 0.72)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  box-shadow: 0 12px 22px rgba(79, 47, 28, 0.12);
  color: #fff;
  text-decoration: none;
}

.channel-featured-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(36, 20, 14, 0.26));
}

.channel-featured-cover img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 148px;
  object-fit: cover;
}

.channel-featured-cover span {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.channel-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
}

.channel-subnav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(153, 22, 26, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #6a4b3c;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.related-channel-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.related-channel-list a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(153, 22, 26, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(153, 22, 26, 0.78), rgba(31, 54, 50, 0.72)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  color: #fff;
  text-decoration: none;
}

.related-channel-list strong {
  font-size: 17px;
  line-height: 1.25;
}

.related-channel-list span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

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

.channel-hero-empty {
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .related-channel-list,
  .channel-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .channel-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .channel-featured-cover,
  .channel-featured-cover img {
    min-height: 104px;
    max-height: 124px;
  }

  .related-channel-list,
  .channel-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .channel-page {
    gap: 12px;
  }

  .channel-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .channel-hero-copy h1 {
    font-size: 30px;
  }

  .channel-hero-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .channel-featured-cover,
  .channel-featured-cover img {
    display: none;
  }

  .channel-primary-link,
  .channel-secondary-link {
    flex: 1 1 120px;
  }

  .related-channel-list,
  .channel-more-grid {
    grid-template-columns: 1fr;
  }
}

/* Article Center V1 */
.articles-page {
  display: grid;
  gap: 18px;
}

.article-hero,
.article-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: 330px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--ref-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 120, 5, 0.11), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(255, 247, 235, 0.94));
  box-shadow: 0 16px 44px rgba(116, 72, 36, 0.1);
}

.article-hero h1,
.article-detail-hero h1 {
  max-width: 840px;
  margin: 10px 0 0;
  color: var(--ref-red);
  font-size: clamp(42px, 4.8vw, 70px);
  line-height: 1.08;
  letter-spacing: 0;
}

.article-hero p,
.article-answer {
  max-width: 760px;
  margin: 16px 0 0;
  color: #5d4b3e;
  font-size: 18px;
  line-height: 1.72;
  font-weight: 700;
}

.article-hero-panel,
.article-detail-card {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(153, 22, 26, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(153, 22, 26, 0.82), rgba(31, 54, 50, 0.76)),
    url("assets/hero-current.jpg") center / cover no-repeat;
  color: #fff;
  box-shadow: 0 18px 38px rgba(79, 47, 28, 0.16);
}

.article-hero-panel strong,
.article-detail-card strong {
  font-size: 26px;
  line-height: 1.2;
}

.article-hero-panel span,
.article-detail-card span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
  font-weight: 700;
}

.article-hero-panel a {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  background: #fff;
  color: var(--ref-red);
  font-weight: 900;
  text-decoration: none;
}

.article-category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.article-category-grid a {
  display: grid;
  gap: 6px;
  min-height: 104px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(153, 22, 26, 0.14);
  border-radius: 8px;
  background: #fffaf2;
  color: #203633;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(116, 72, 36, 0.08);
}

.article-category-grid strong {
  color: var(--ref-red);
  font-size: 17px;
  line-height: 1.25;
}

.article-category-grid span {
  color: #796d63;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.articles-page .article-category-section {
  overflow: hidden;
}

.articles-page .article-category-grid a {
  min-height: 88px;
  align-content: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.articles-page .article-category-grid a:hover {
  border-color: rgba(143, 23, 24, 0.28);
  background: #fffdf8;
  transform: translateY(-1px);
}

.article-detail-shell {
  display: grid;
  gap: 18px;
}

.article-intent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-intent-list span {
  padding: 8px 11px;
  border: 1px solid rgba(153, 22, 26, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6a4b3c;
  font-size: 13px;
  font-weight: 900;
}

.article-latest-resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-hero-empty {
  grid-template-columns: 1fr;
}

@media (max-width: 1180px) {
  .article-category-grid,
  .article-latest-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .article-hero,
  .article-detail-hero {
    grid-template-columns: 1fr;
  }

  .article-category-grid,
  .article-latest-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .articles-page,
  .article-detail-shell {
    gap: 12px;
  }

  .article-hero,
  .article-detail-hero {
    min-height: 0;
    padding: 16px;
  }

  .article-hero h1,
  .article-detail-hero h1 {
    font-size: 34px;
  }

  .article-hero p,
  .article-answer {
    font-size: 15px;
  }

  .article-hero-panel,
  .article-detail-card {
    min-height: 160px;
    padding: 16px;
  }

  .article-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .articles-page .article-category-grid a {
    min-height: 72px;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
  }

  .articles-page .article-category-grid strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .articles-page .article-category-grid span {
    font-size: 11px;
    line-height: 1.35;
  }

  .article-latest-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage category updates: one category per row, five resources per category. */
.v2-home .category-latest .category-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.v2-home .category-latest .category-grid > div {
  grid-column: 1 / -1;
}

.v2-home .category-latest .category-block {
  padding-top: 2px;
}

.v2-home .category-latest .category-block .section-title {
  margin-bottom: 14px;
}

.v2-home .category-latest .category-block .section-title h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.v2-home .category-latest .category-block .mini-resource-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1180px) {
  .v2-home .category-latest .category-block .mini-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .v2-home .category-latest .category-grid {
    gap: 18px;
  }

  .v2-home .category-latest .category-block .mini-resource-grid {
    grid-template-columns: 1fr;
  }
}

/* Remove internal-facing front-end copy areas after UI cleanup. */
.v2-home .v2-hero,
.article-hero,
.article-detail-hero {
  grid-template-columns: minmax(0, 1fr);
}

.v2-home .v2-hero-copy {
  max-width: 840px;
}

.article-hero,
.article-detail-hero {
  min-height: 0;
}

/* Channel matrix alignment: 12 channels render as two balanced rows on desktop. */
.v2-home .channel-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .v2-home .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .v2-home .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Keep search/filter hiding stronger than later resource-card display rules. */
.resource-card.is-dimmed {
  display: none !important;
}

/* Homepage article section: one editorial lead with a compact recommendation rail. */
.v2-home #recommend-articles .article-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.v2-home #recommend-articles .article-grid .matrix-card {
  min-height: 92px;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(45, 34, 26, 0.08);
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child {
  grid-row: span 5;
  min-height: 454px;
}

.v2-home #recommend-articles .article-grid .matrix-card::before {
  inset: 0 auto 0 0;
  width: 104px;
  height: auto;
  background:
    linear-gradient(135deg, rgba(156, 45, 56, 0.78), rgba(31, 107, 98, 0.62)),
    url("assets/hero-current.jpg") center / cover no-repeat;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child::before {
  inset: 0 0 auto;
  width: auto;
  height: 190px;
}

.v2-home #recommend-articles .article-grid .matrix-card::after {
  inset: 7px;
  height: auto;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: none;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child::after {
  inset: auto 16px 16px;
  height: calc(100% - 206px);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(45, 34, 26, 0.12);
}

.v2-home #recommend-articles .article-grid .matrix-visual {
  min-height: 92px;
  padding: 10px;
}

.v2-home #recommend-articles .article-grid .matrix-card:not(:first-child) .matrix-visual {
  position: absolute;
  inset: 0 auto 0 0;
  width: 104px;
  min-height: 0;
  height: 100%;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-visual {
  position: relative;
  min-height: 190px;
  padding: 14px;
}

.v2-home #recommend-articles .article-grid .matrix-body {
  gap: 4px;
  padding: 11px 12px 10px 120px;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-body {
  gap: 8px;
  padding: 8px 20px 18px;
}

.v2-home #recommend-articles .article-grid .matrix-card strong {
  color: var(--wine);
  font-size: 16px;
  line-height: 1.28;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child strong {
  font-size: 24px;
}

.v2-home #recommend-articles .article-grid .matrix-card p,
.v2-home #recommend-articles .article-grid .matrix-kicker,
.v2-home #recommend-articles .article-grid .matrix-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.v2-home #recommend-articles .article-grid .matrix-card:not(:first-child) .matrix-meta {
  display: none;
}

.v2-home #recommend-articles .article-grid .matrix-action {
  width: fit-content;
  min-height: 30px;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 7px;
  color: #fffaf3;
  background: linear-gradient(135deg, var(--gold), var(--wine));
  font-size: 12px;
}

@media (max-width: 1180px) {
  .v2-home #recommend-articles .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-home #recommend-articles .article-grid .matrix-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .v2-home #recommend-articles .article-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .v2-home #recommend-articles .article-grid .matrix-card:first-child {
    min-height: 176px;
  }

  .v2-home #recommend-articles .article-grid .matrix-card::before,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child::before {
    inset: 0 auto 0 0;
    width: 92px;
    height: auto;
  }

  .v2-home #recommend-articles .article-grid .matrix-card::after,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child::after {
    inset: 6px;
    height: auto;
    border-radius: 7px;
    box-shadow: none;
  }

  .v2-home #recommend-articles .article-grid .matrix-visual,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-visual {
    position: absolute;
    inset: 0 auto 0 0;
    width: 92px;
    min-height: 112px;
    height: 100%;
    padding: 7px;
  }

  .v2-home #recommend-articles .article-grid .matrix-body,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-body {
    gap: 5px;
    padding: 10px 10px 10px 106px;
  }

  .v2-home #recommend-articles .article-grid .matrix-card strong,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child strong {
    font-size: 14px;
  }

  .v2-home #recommend-articles .article-grid .matrix-card p,
  .v2-home #recommend-articles .article-grid .matrix-kicker,
  .v2-home #recommend-articles .article-grid .matrix-meta {
    display: none;
  }
}

/* Production article data can exceed six items; keep the section balanced. */
.v2-home #recommend-articles .article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.v2-home #recommend-articles .article-grid .matrix-card {
  min-height: 188px;
}

.v2-home #recommend-articles .article-grid .matrix-card:nth-child(n+10) {
  display: none;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 390px;
}

.v2-home #recommend-articles .article-grid .matrix-card::before,
.v2-home #recommend-articles .article-grid .matrix-card:first-child::before {
  inset: 0 0 auto;
  width: auto;
  height: 82px;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child::before {
  height: 182px;
}

.v2-home #recommend-articles .article-grid .matrix-card::after {
  inset: auto 10px 10px;
  height: calc(100% - 94px);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(45, 34, 26, 0.08);
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child::after {
  inset: auto 16px 16px;
  height: calc(100% - 198px);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(45, 34, 26, 0.12);
}

.v2-home #recommend-articles .article-grid .matrix-visual,
.v2-home #recommend-articles .article-grid .matrix-card:not(:first-child) .matrix-visual,
.v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-visual {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  min-height: 82px;
  padding: 10px;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-visual {
  min-height: 182px;
  padding: 14px;
}

.v2-home #recommend-articles .article-grid .matrix-body,
.v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-body {
  gap: 5px;
  padding: 8px 14px 14px;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-body {
  gap: 8px;
  padding: 10px 20px 18px;
}

.v2-home #recommend-articles .article-grid .matrix-card strong {
  font-size: 16px;
}

.v2-home #recommend-articles .article-grid .matrix-card:first-child strong {
  font-size: 24px;
}

.v2-home #recommend-articles .article-grid .matrix-card:not(:first-child) p {
  display: none;
}

@media (max-width: 1180px) {
  .v2-home #recommend-articles .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-home #recommend-articles .article-grid .matrix-card:first-child {
    grid-column: span 2;
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .v2-home #recommend-articles .article-grid {
    grid-template-columns: 1fr;
  }

  .v2-home #recommend-articles .article-grid .matrix-card,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child {
    grid-column: auto;
    min-height: 134px;
  }

  .v2-home #recommend-articles .article-grid .matrix-card::before,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child::before {
    inset: 0 auto 0 0;
    width: 92px;
    height: auto;
  }

  .v2-home #recommend-articles .article-grid .matrix-card::after,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child::after {
    inset: 6px;
    height: auto;
    border-radius: 7px;
    box-shadow: none;
  }

  .v2-home #recommend-articles .article-grid .matrix-visual,
  .v2-home #recommend-articles .article-grid .matrix-card:not(:first-child) .matrix-visual,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-visual {
    position: absolute;
    inset: 0 auto 0 0;
    width: 92px;
    min-height: 0;
    height: 100%;
    padding: 7px;
  }

  .v2-home #recommend-articles .article-grid .matrix-body,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child .matrix-body {
    padding: 10px 10px 10px 106px;
  }

.v2-home #recommend-articles .article-grid .matrix-card strong,
  .v2-home #recommend-articles .article-grid .matrix-card:first-child strong {
    font-size: 14px;
  }
}

/* Archive pages need dense browsing, unlike homepage feature sections. */
.archive-page .resource-list.v2-card-list {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.archive-page .v2-resource-card.resource-card {
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
}

.archive-page .v2-resource-card .cover {
  border-radius: 7px;
}

.archive-page .v2-resource-card .cover span {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 11px;
}

.archive-page .v2-resource-card .title-row h2 {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.45;
}

.archive-page .v2-resource-card .resource-meta-line {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.archive-page .v2-resource-card .resource-status {
  min-height: 24px;
}

.archive-page .v2-resource-card .resource-status p {
  font-size: 12px;
}

.archive-page .v2-resource-card .disk-list {
  min-height: 24px;
}

.archive-page .v2-resource-card .disk-list em {
  padding: 4px 7px;
  font-size: 11px;
}

.archive-page .v2-resource-card .resource-actions {
  gap: 6px;
}

.archive-page .v2-resource-card .primary-action,
.archive-page .v2-resource-card .transfer-action {
  min-height: 34px;
  border-radius: 7px;
  font-size: 13px;
}

@media (min-width: 1720px) {
  .archive-page .resource-list.v2-card-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .archive-page .resource-list.v2-card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .archive-page .resource-list.v2-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Mobile resource walls should scan like a poster grid, not a single-column feed. */
@media (max-width: 760px) {
  .v2-home .feature-card-list,
  .v2-home .rank-grid,
  .resource-list.v2-card-list,
  .feature-card-list,
  .rank-grid,
  .mini-resource-grid,
  .archive-page .resource-list.v2-card-list,
  .category-block .mini-resource-grid,
  .detail-related .mini-resource-grid,
  .channel-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .v2-resource-card.resource-card,
  .v2-resource-card.resource-card.is-compact,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact),
  .v2-home .rank-grid .v2-resource-card.is-compact,
  .resource-detail-page .detail-related .v2-resource-card.is-compact,
  .detail-related .v2-resource-card.is-compact {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "cover"
      "info"
      "actions" !important;
    gap: 5px;
    min-height: 0;
    padding: 6px;
    border-radius: 7px;
  }

  .v2-resource-card .cover,
  .v2-resource-card.is-compact .cover,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .cover,
  .v2-home .rank-grid .v2-resource-card.is-compact .cover,
  .archive-page .v2-resource-card .cover {
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }

  .v2-resource-card .cover img,
  .v2-resource-card.is-compact .cover img {
    height: 100%;
    object-fit: cover;
  }

  .v2-resource-card .cover span {
    min-height: 0;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 9px;
  }

  .v2-resource-card .resource-info {
    min-width: 0;
  }

  .v2-resource-card .title-row h2,
  .v2-resource-card.is-compact .title-row h2,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .title-row h2,
  .archive-page .v2-resource-card .title-row h2 {
    display: -webkit-box;
    min-height: 30px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 11px;
    line-height: 1.35;
  }

  .v2-resource-card .resource-summary,
  .v2-resource-card .resource-meta-line,
  .v2-resource-card .resource-status,
  .v2-resource-card .disk-list,
  .v2-resource-card.is-compact .resource-status,
  .v2-resource-card.is-compact .disk-list,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-meta-line,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-status,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .disk-list,
  .v2-home .rank-grid .v2-resource-card.is-compact .resource-status,
  .v2-home .rank-grid .v2-resource-card.is-compact .disk-list {
    display: none !important;
  }

  .v2-resource-card .resource-actions,
  .v2-resource-card.is-compact .resource-actions,
  .v2-home .feature-card-list .v2-resource-card.resource-card:not(.is-compact) .resource-actions,
  .v2-home .rank-grid .v2-resource-card.is-compact .resource-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0;
    width: 100%;
    align-self: stretch;
  }

  .v2-resource-card .primary-action,
  .v2-resource-card .transfer-action {
    min-height: 27px;
    padding: 0 4px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
  }

  .v2-resource-card .detail-link {
    display: none !important;
  }
}

/* Archive header should stay compact so resource cards enter the first screen sooner. */
.archive-page {
  padding-top: 10px;
}

.archive-page .page-back-nav {
  margin: 0 0 8px;
}

.archive-page .page-back-nav a {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  box-shadow: none;
}

.archive-page .archive-hero {
  margin-top: 8px;
  padding: clamp(14px, 2vw, 22px);
}

.archive-page .archive-hero .eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
}

.archive-page .archive-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
}

.archive-page .archive-hero p:not(.eyebrow) {
  margin: 0;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.45;
}

.archive-page .archive-filters {
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.archive-page .archive-filters div {
  gap: 6px 8px;
}

.archive-page .archive-filters strong {
  width: 64px;
  font-size: 15px;
  line-height: 30px;
}

.archive-page .archive-filters a {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

@media (min-width: 761px) {
  .archive-page .archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
  }

  .archive-page .archive-filters div {
    flex: 0 1 auto;
  }

  .archive-page .archive-filters strong {
    width: auto;
    margin-right: 4px;
  }
}

@media (max-width: 760px) {
  .archive-page {
    padding-top: 8px;
  }

  .archive-page .page-back-nav {
    margin-bottom: 6px;
  }

  .archive-page .page-back-nav a {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .archive-page .archive-hero {
    padding: 12px;
    border-radius: 10px;
  }

  .archive-page .archive-hero .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .archive-page .archive-hero h1 {
    margin-bottom: 6px;
    font-size: 25px;
    line-height: 1.08;
  }

  .archive-page .archive-hero p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.4;
  }

  .archive-page .archive-filters {
    gap: 7px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .archive-page .archive-filters div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .archive-page .archive-filters strong {
    flex: 0 0 52px;
    width: 52px;
    font-size: 13px;
    line-height: 26px;
  }

  .archive-page .archive-filters a {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .archive-page .archive-hero h1 {
    font-size: 24px;
  }

  .archive-page .archive-hero p:not(.eyebrow) {
    display: none;
  }
}

/* Keep transfer QR flows compact even when old posts still point at QR image URLs. */
body.has-transfer-modal {
  overflow: hidden;
}

.transfer-modal[hidden] {
  display: none !important;
}

.transfer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.transfer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.56);
}

.transfer-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(156, 45, 56, 0.18);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(20, 16, 12, 0.22);
  text-align: center;
}

.transfer-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(156, 45, 56, 0.08);
  color: var(--wine);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.transfer-modal__kicker,
.transfer-modal__status,
.transfer-modal__trust,
.transfer-modal__hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.transfer-modal__card h2 {
  display: grid;
  gap: 4px;
  margin: 8px 0 12px;
  color: var(--wine);
  font-size: 22px;
  line-height: 1.25;
}

.transfer-modal__drive-title {
  color: var(--ink);
  font-size: 16px;
}

.transfer-modal__open,
.drive-jump-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 280px);
  min-height: 46px;
  margin: 16px auto 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--wine);
  color: #fffaf3;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.transfer-modal__qr,
.drive-jump-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 14px auto;
}

.transfer-modal__qr img,
.drive-jump-qr img,
img[data-transfer-qr] {
  display: block;
  width: min(234px, 58vw) !important;
  max-width: 234px !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
}

.drive-jump-page {
  display: grid;
  justify-items: center;
}

.drive-jump-card {
  width: min(520px, 100%);
  margin: 18px auto 0;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(156, 45, 56, 0.16);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  text-align: center;
}

.drive-jump-card h1 {
  margin: 8px 0;
  color: var(--wine);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

/* Non-detail UI guardrails: keep browsing cards compact and prevent CTA bars. */
.v2-home .resource-list.v2-card-list,
.archive-page .resource-list.v2-card-list,
.channel-page .resource-list.v2-card-list,
.articles-page .resource-list.v2-card-list,
.articles-page .mini-resource-grid,
.channel-page .mini-resource-grid {
  align-items: stretch;
}

.v2-home .resource-card.v2-resource-card,
.archive-page .resource-card.v2-resource-card,
.channel-page .resource-card.v2-resource-card,
.articles-page .resource-card.v2-resource-card {
  overflow: hidden;
}

.v2-home .resource-card.v2-resource-card .resource-actions,
.archive-page .resource-card.v2-resource-card .resource-actions,
.channel-page .resource-card.v2-resource-card .resource-actions,
.articles-page .resource-card.v2-resource-card .resource-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: end;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.v2-home .resource-card.v2-resource-card .primary-action,
.v2-home .resource-card.v2-resource-card .transfer-action,
.archive-page .resource-card.v2-resource-card .primary-action,
.archive-page .resource-card.v2-resource-card .transfer-action,
.channel-page .resource-card.v2-resource-card .primary-action,
.channel-page .resource-card.v2-resource-card .transfer-action,
.articles-page .resource-card.v2-resource-card .primary-action,
.articles-page .resource-card.v2-resource-card .transfer-action {
  width: auto;
  min-width: 96px;
  max-width: 148px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(143, 23, 24, 0.14);
}

.v2-home .feature-card-list .resource-card.v2-resource-card .resource-actions,
.archive-page .resource-card.v2-resource-card .resource-actions {
  justify-content: flex-start;
}

.v2-home .feature-card-list .resource-card.v2-resource-card .primary-action,
.v2-home .feature-card-list .resource-card.v2-resource-card .transfer-action,
.archive-page .resource-card.v2-resource-card .primary-action,
.archive-page .resource-card.v2-resource-card .transfer-action {
  flex: 0 0 auto;
  min-width: 104px;
  max-width: 132px;
}

.channel-page .resource-card.v2-resource-card .primary-action,
.channel-page .resource-card.v2-resource-card .transfer-action,
.articles-page .resource-card.v2-resource-card .primary-action,
.articles-page .resource-card.v2-resource-card .transfer-action {
  background: linear-gradient(180deg, #c88938, #b96f24);
}

@media (min-width: 761px) {
  .archive-page .resource-list.v2-card-list {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }

  .archive-page .v2-resource-card.resource-card .title-row h2 {
    min-height: 40px;
  }
}

@media (max-width: 760px) {
  .v2-home .resource-card.v2-resource-card .resource-actions,
  .archive-page .resource-card.v2-resource-card .resource-actions,
  .channel-page .resource-card.v2-resource-card .resource-actions,
  .articles-page .resource-card.v2-resource-card .resource-actions {
    display: flex !important;
    width: 100%;
    align-self: end;
  }

  .v2-home .resource-card.v2-resource-card .primary-action,
  .v2-home .resource-card.v2-resource-card .transfer-action,
  .archive-page .resource-card.v2-resource-card .primary-action,
  .archive-page .resource-card.v2-resource-card .transfer-action,
  .channel-page .resource-card.v2-resource-card .primary-action,
  .channel-page .resource-card.v2-resource-card .transfer-action,
  .articles-page .resource-card.v2-resource-card .primary-action,
  .articles-page .resource-card.v2-resource-card .transfer-action {
    min-width: 0;
    min-height: 28px;
    max-width: none;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1;
    box-shadow: none;
  }
}

/* Article pages: make recommendation entries read as articles, not repeated image tiles. */
.articles-page .article-center-hero,
.articles-page .article-detail-hero {
  min-height: 220px;
  border-color: rgba(143, 23, 24, 0.12);
  background:
    radial-gradient(circle at 92% 8%, rgba(143, 23, 24, 0.1), transparent 26%),
    linear-gradient(135deg, #fffdf8, #fff8ed);
}

.articles-page .article-hero h1,
.articles-page .article-detail-hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 4.2vw, 58px);
}

.articles-page .article-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.articles-page .article-category-grid a {
  min-height: 82px;
  padding: 15px 16px;
  border-color: rgba(143, 23, 24, 0.12);
  background: #fffdf8;
  box-shadow: 0 8px 18px rgba(116, 72, 36, 0.06);
}

.articles-page .article-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.articles-page .article-grid .matrix-card {
  display: grid;
  min-height: 172px;
  padding: 18px;
  border: 1px solid rgba(143, 23, 24, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: #203633;
  box-shadow: 0 10px 22px rgba(116, 72, 36, 0.07);
}

.articles-page .article-grid .matrix-card::before {
  display: none;
}

.articles-page .article-grid .matrix-card::after {
  inset: auto 14px 14px auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(143, 23, 24, 0.08);
}

.articles-page .article-grid .matrix-visual {
  display: none;
}

.articles-page .article-grid .matrix-body {
  display: grid;
  gap: 8px;
  padding: 0;
}

.articles-page .article-grid .matrix-kicker,
.articles-page .article-grid .matrix-meta,
.articles-page .article-grid .matrix-card p {
  color: #75675b;
}

.articles-page .article-grid .matrix-card strong {
  color: var(--ref-red);
  font-size: 18px;
  line-height: 1.35;
}

.articles-page .article-grid .matrix-action {
  min-height: 30px;
  align-self: end;
  justify-self: start;
  margin-top: 4px;
  padding: 0 11px;
  border: 1px solid rgba(143, 23, 24, 0.14);
  border-radius: 7px;
  background: #fff6f2;
  color: var(--ref-red);
  font-size: 12px;
  font-weight: 900;
}

.articles-page .channel-grid,
.articles-page .collection-entry-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.articles-page .resource-card.v2-resource-card .cover.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(143, 23, 24, 0.82), rgba(31, 54, 50, 0.82)),
    url("assets/hero-current.jpg") center / cover no-repeat;
}

.articles-page .resource-card.v2-resource-card .cover.is-empty em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.92);
  color: var(--ref-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-shadow: none;
}

@media (max-width: 760px) {
  .articles-page .article-center-hero,
  .articles-page .article-detail-hero {
    min-height: 0;
  }

  .articles-page .article-grid {
    grid-template-columns: 1fr;
  }

  .articles-page .article-grid .matrix-card {
    min-height: 144px;
    padding: 15px;
  }
}

/* Article page density pass: keep recommendation cards compact for scanning. */
.articles-page .v2-section {
  padding: clamp(18px, 2vw, 26px);
}

.articles-page .article-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 9px;
}

.articles-page .article-category-grid a {
  min-height: 62px;
  gap: 3px;
  padding: 10px 12px;
}

.articles-page .article-category-grid strong {
  font-size: 15px;
}

.articles-page .article-category-grid span {
  font-size: 11px;
}

.articles-page .article-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 10px;
}

.articles-page .article-grid .matrix-card {
  min-height: 112px;
  padding: 12px;
  border-radius: 7px;
  box-shadow: 0 6px 14px rgba(116, 72, 36, 0.05);
}

.articles-page .article-grid .matrix-card::after {
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
}

.articles-page .article-grid .matrix-body {
  gap: 4px;
}

.articles-page .article-grid .matrix-kicker,
.articles-page .article-grid .matrix-meta,
.articles-page .article-grid .matrix-card p {
  font-size: 11px;
  line-height: 1.3;
}

.articles-page .article-grid .matrix-card strong {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.35;
}

.articles-page .article-grid .matrix-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.articles-page .article-grid .matrix-action {
  min-height: 24px;
  margin-top: 2px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
}

@media (min-width: 1181px) {
  .articles-page .article-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .articles-page .v2-section {
    padding: 12px;
  }

  .articles-page .article-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .articles-page .article-category-grid a {
    min-height: 54px;
    padding: 9px 10px;
  }

  .articles-page .article-category-grid strong {
    font-size: 14px;
  }

  .articles-page .article-category-grid span {
    font-size: 10px;
  }

  .articles-page .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .articles-page .article-grid .matrix-card {
    min-height: 92px;
    padding: 9px;
  }

  .articles-page .article-grid .matrix-card strong {
    min-height: 34px;
    font-size: 12px;
  }

  .articles-page .article-grid .matrix-card p,
  .articles-page .article-grid .matrix-meta {
    display: none;
  }

  .articles-page .article-grid .matrix-kicker {
    font-size: 10px;
  }

  .articles-page .article-grid .matrix-action {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }

  .articles-page .article-grid .matrix-card::after {
    width: 28px;
    height: 28px;
  }
}

/* Article detail density: reduce oversized hero and related resource cards. */
.articles-page .article-detail-hero {
  min-height: 170px;
  padding: clamp(18px, 2.4vw, 28px);
}

.articles-page .article-detail-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.12;
}

.articles-page .article-answer {
  max-width: 780px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.62;
}

.articles-page .resource-list.v2-card-list.feature-card-list {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card {
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .cover {
  border-radius: 7px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .title-row h2 {
  min-height: 38px;
  font-size: 13px;
  line-height: 1.45;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .resource-meta-line,
.articles-page .feature-card-list .resource-card.v2-resource-card .resource-status p {
  font-size: 11px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .resource-status,
.articles-page .feature-card-list .resource-card.v2-resource-card .disk-list {
  min-height: 22px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .resource-status .valid,
.articles-page .feature-card-list .resource-card.v2-resource-card .disk-list em {
  padding: 4px 7px;
  font-size: 10px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .primary-action,
.articles-page .feature-card-list .resource-card.v2-resource-card .transfer-action {
  min-width: 0;
  max-width: none;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

@media (min-width: 1181px) {
  .articles-page .resource-list.v2-card-list.feature-card-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .articles-page .resource-list.v2-card-list.feature-card-list {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .articles-page .feature-card-list .resource-card.v2-resource-card {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .articles-page .article-detail-hero {
    padding: 16px;
  }

  .articles-page .article-detail-hero h1 {
    font-size: 30px;
  }

  .articles-page .article-answer {
    font-size: 14px;
    line-height: 1.55;
  }

  .articles-page .resource-list.v2-card-list.feature-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
}

/* Article detail hard compact pass: make the change visually obvious. */
.articles-page .article-detail-hero {
  min-height: 118px;
  padding: 16px 22px;
}

.articles-page .article-detail-hero h1 {
  margin-top: 6px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
}

.articles-page .article-answer {
  display: -webkit-box;
  max-width: 860px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.45;
}

.articles-page .resource-list.v2-card-list.feature-card-list {
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)) !important;
  gap: 8px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card {
  gap: 6px;
  padding: 7px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .cover {
  aspect-ratio: 4 / 3;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .title-row h2 {
  display: -webkit-box;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.4;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .resource-meta-line,
.articles-page .feature-card-list .resource-card.v2-resource-card .resource-status,
.articles-page .feature-card-list .resource-card.v2-resource-card .disk-list {
  display: none !important;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .resource-actions {
  margin-top: 2px;
}

.articles-page .feature-card-list .resource-card.v2-resource-card .primary-action,
.articles-page .feature-card-list .resource-card.v2-resource-card .transfer-action {
  min-height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
}

@media (min-width: 900px) {
  .articles-page .resource-list.v2-card-list.feature-card-list {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .articles-page .article-detail-hero {
    padding: 13px;
  }

  .articles-page .article-detail-hero h1 {
    font-size: 24px;
  }

  .articles-page .article-answer {
    font-size: 13px;
  }

  .articles-page .resource-list.v2-card-list.feature-card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .articles-page .feature-card-list .resource-card.v2-resource-card .title-row h2 {
    min-height: 31px;
    font-size: 10px;
  }

  .articles-page .feature-card-list .resource-card.v2-resource-card .primary-action,
  .articles-page .feature-card-list .resource-card.v2-resource-card .transfer-action {
    min-height: 24px;
    font-size: 10px;
  }
}

/* Published recommendation articles: remove the extra virtual layer. */
.published-articles-page .article-center-hero {
  min-height: 0;
  padding: 12px 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.published-articles-page .article-center-hero h1 {
  margin-top: 6px;
  font-size: clamp(30px, 3vw, 44px);
}

.published-articles-page .article-center-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.published-article-section {
  padding: 8px 0 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.published-article-grid {
  display: block;
  border-top: 1px solid rgba(143, 23, 24, 0.14);
}

.published-article-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  min-height: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(143, 23, 24, 0.14);
  border-radius: 0;
  background: transparent;
  color: #203633;
  text-decoration: none;
  box-shadow: none;
}

.published-article-card:hover {
  color: #203633;
}

.published-article-card span {
  padding-top: 2px;
  color: #75675b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.published-article-card strong {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ref-red);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.35;
}

.published-article-card p {
  display: -webkit-box;
  grid-column: 2;
  margin: 6px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #5d4b3e;
  font-size: 14px;
  line-height: 1.6;
}

.published-article-card em {
  align-self: center;
  justify-self: end;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ref-red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.published-article-content {
  max-width: 920px;
  margin-inline: auto;
  color: #2a2d2c;
  font-size: 17px;
  line-height: 1.8;
}

.published-article-content :where(h2, h3) {
  margin: 1.4em 0 0.55em;
  color: var(--ref-red);
  line-height: 1.3;
}

.published-article-content :where(p, ul, ol) {
  margin: 0 0 1em;
}

.published-article-content a {
  color: var(--ref-red);
  font-weight: 800;
}

@media (min-width: 1181px) {
  .published-article-grid {
    max-width: 1120px;
  }
}

@media (max-width: 760px) {
  .published-articles-page .article-center-hero {
    padding: 8px 0 12px;
  }

  .published-article-section {
    padding: 4px 0 14px;
  }

  .published-article-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .published-article-card p {
    grid-column: auto;
    margin-top: 0;
    font-size: 13px;
  }

  .published-article-card em {
    justify-self: start;
  }

  .published-article-content {
    font-size: 15px;
    line-height: 1.7;
  }
}
