/* Detail / account pages built on layer design tokens */
.page-shell {
  padding: 28px 0 60px;
}

.detail-card,
.account-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.detail-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin: 18px 0 22px;
}

.detail-content {
  white-space: pre-wrap;
  line-height: 1.85;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.unlock-box {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.unlock-box h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.unlock-box p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.link-block {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.link-block a {
  color: var(--brand);
  word-break: break-all;
  font-size: 13px;
}

.form-error {
  color: #b33d25;
  font-size: 12px;
  margin: 0 0 10px;
}

.form-ok {
  color: #13846e;
  font-size: 12px;
  margin: 0 0 10px;
}

.thumb-img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  border-radius: 13px;
}

.resource-card .thumb.has-cover {
  padding: 0;
  background: #111;
}

.resource-card .thumb.has-cover:after {
  display: none;
}

.quota-pill {
  font-size: 12px;
  color: var(--muted);
  padding: 0 8px;
}

.quota-pill b {
  color: var(--brand);
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  background: var(--panel-strong);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 18px;
  z-index: 60;
  box-shadow: var(--shadow-soft);
}

.mobile-menu.open {
  display: grid;
  gap: 8px;
}

.mobile-menu a,
.mobile-menu button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .menu-btn {
    display: inline-flex;
  }
}

/* Anchor variants of interactive controls (PHP server-rendered pages) */
a.filter-btn {
  display: inline-flex;
  align-items: center;
}
a.load-more {
  display: grid;
  place-items: center;
  text-decoration: none;
}
a.cat-card {
  display: block;
  color: inherit;
}
