/* World Discovery CMS V1 — public additions. Keep tokens aligned with styles.css. */
.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
@media (max-width: 1100px) and (min-width: 861px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.staff-link {
  color: inherit;
  opacity: 0.32;
  font-size: 0.82em;
  margin-left: 0.65rem;
  text-decoration: none;
}
.staff-link:hover,
.staff-link:focus {
  opacity: 1;
  color: var(--accent-dark);
}

.cms-empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  color: var(--ink-soft);
  max-width: 40rem;
}
.cms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 0 0 3rem;
  list-style: none;
}
.cms-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 100%;
}
.cms-card:hover { border-color: var(--accent); }
.cms-card img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
}
.cms-card-body { padding: 1rem 1.1rem 1.15rem; }
.cms-card-body h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.cms-card-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.cms-card-more {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--accent-dark);
}
.cms-article { padding-bottom: 3rem; }
.cms-cover {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.4rem;
  background: var(--paper-2);
}
.cms-meta { color: var(--muted); margin: -0.6rem 0 1.2rem; font-size: 0.95rem; }
.cms-body :where(h2, h3, h4) { margin-top: 1.6rem; }
.cms-body img { border-radius: 10px; }

.msg-form, .msg-thread {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.25rem 1.4rem;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}
.msg-form label, .msg-thread label {
  display: block;
  font-weight: 700;
  margin: 0.85rem 0 0.3rem;
}
.msg-form input[type="text"],
.msg-form input[type="email"],
.msg-form textarea,
.msg-thread textarea,
.admin-content input[type="text"],
.admin-content input[type="email"],
.admin-content input[type="password"],
.admin-content input[type="url"],
.admin-content textarea,
.admin-content select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
}
.msg-form textarea, .msg-thread textarea { min-height: 10rem; resize: vertical; }
.msg-form .hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.msg-actions { margin-top: 1.1rem; display: flex; gap: 0.7rem; align-items: center; }
.form-error { color: var(--danger); margin: 0 0 0.8rem; }
.form-ok { color: var(--ok); margin: 0 0 0.8rem; }
.thread-item {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.thread-item:first-child { border-top: 0; }
.thread-who { font-weight: 700; }
.thread-when { color: var(--muted); font-size: 0.88rem; margin-left: 0.4rem; }
.secret-box {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}

.hp-field{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;}

/* mobile: single column cards, keep 16:9 cover */
@media (max-width: 900px) {
  .cms-grid { grid-template-columns: 1fr; }
}
.cms-card img, .cms-cover { aspect-ratio: 16 / 9; height: auto; }
