/* ============================================================
   Community-first additions to the Forge theme.
   Uses the same palette as css/forge.css — no new dependencies.
   ============================================================ */

/* ── Small card metadata ──────────────────────────────────── */
.tool-card__kind {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

/* ── Principles ───────────────────────────────────────────── */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--navy-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-border);
}

.principle {
  background: var(--navy);
  padding: 2rem;
}

.principle__mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 1.2rem;
}

.principle h3 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.principle p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ── Join banner ──────────────────────────────────────────── */
.join-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem;
  background:
    linear-gradient(135deg, rgba(140, 24, 44, 0.12), rgba(11, 14, 26, 0) 60%),
    var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
}

.join-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.join-banner p:not(.section-head__label) {
  font-size: 0.96rem;
  color: var(--grey);
  max-width: 620px;
}

.join-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  flex-shrink: 0;
}

/* ── Generic notice ───────────────────────────────────────── */
.notice {
  padding: 1.2rem 1.5rem;
  background: var(--navy);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--grey);
}

.notice a {
  color: var(--white);
  border-bottom: 1px solid var(--red);
}

.notice a:hover {
  color: var(--red);
}

/* ── Downloads ────────────────────────────────────────────── */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-card {
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 2.2rem;
}

.download-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.download-card__head h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.download-card__summary {
  font-size: 0.96rem;
  color: var(--grey);
}

.download-card__platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-card__platform {
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.download-card__platform-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.download-card__files {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.7;
}

.download-card__note {
  font-size: 0.8rem;
  color: var(--grey);
}

.download-card__verify {
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 1.6rem;
}

.download-card__verify span {
  color: var(--red);
  font-weight: 700;
  margin-right: 0.4rem;
}

.download-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── Tool + tutorial pages ────────────────────────────────── */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.tool-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.tool-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-border);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Support / donations ──────────────────────────────────── */
.support-page > p,
.support-page > h2,
.support-page > ul,
.support-page > ol {
  max-width: 760px;
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5px;
  margin: 1.5rem 0 2.5rem;
  border: 1.5px solid var(--navy-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-border);
}

.donation-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.8rem;
  background: var(--navy);
}

.donation-card--soon {
  background:
    linear-gradient(135deg, rgba(11, 14, 26, 0) 40%, rgba(140, 24, 44, 0.06)),
    var(--navy);
}

.donation-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.donation-card__badge {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--navy-border);
  border-radius: 999px;
  color: var(--grey-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.donation-card__title {
  margin: 1.1rem 0 0.6rem;
  font-size: 1.35rem;
}

.donation-card__desc {
  flex: 1;
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.65;
}

.donation-card__footer {
  margin-top: 1.5rem;
}

.donation-card__soon {
  display: inline-block;
  padding: 0.62rem 0.9rem;
  border: 1px dashed var(--navy-border);
  border-radius: 6px;
  color: var(--grey-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn--placeholder,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.footer__link--muted {
  color: var(--grey-dark);
  cursor: default;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .tool-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tool-aside {
    position: static;
  }

  .join-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .download-card {
    padding: 1.5rem;
  }

  .download-card__head {
    flex-direction: column;
    gap: 0.8rem;
  }

  .tool-nav {
    flex-direction: column;
  }
}
