/* Resources page */

.res-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.res-tab {
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.res-tab:hover { color: var(--text); }
.res-tab.active { background: var(--teal-wash); color: var(--teal-deep); }

/* Featured post */
.post-feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.post-feature-art {
  padding: 40px;
  background: linear-gradient(180deg, var(--teal-wash) 0%, #fff 100%);
  border-right: 1px solid var(--border);
  min-height: 320px;
}
.post-feature-body { padding: 40px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.post-meta .chip { font-size: 11px; height: 22px; padding: 0 10px; }

@media (max-width: 880px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature-art { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(25, 173, 197, 0.3);
}
.post-card-art {
  height: 180px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.post-card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.post-card-glyph {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}
.post-card-glyph.mono { font-family: var(--font-mono); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 8px 0 0;
  text-wrap: pretty;
}
.post-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

@media (max-width: 960px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* Changelog */
.cl-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px;
  max-width: 920px;
}
.cl-filter-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cl-filter-chip:hover {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--teal);
}
.cl-filter-chip.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 4px 12px -4px rgba(25,173,197,0.55);
}

.changelog {
  display: flex; flex-direction: column; gap: 32px;
  max-width: 920px;
}
.cl-entry {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.cl-date {
  padding-top: 4px;
  border-right: 1px solid var(--border);
  padding-right: 24px;
}
.cl-day {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cl-year {
  font-size: 12.5px;
  color: var(--text-soft);
  font-family: var(--font-mono);
}
.cl-tags { display: flex; gap: 6px; margin-bottom: 10px; }
.cl-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 6px 0 8px;
}
.cl-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.cl-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .cl-entry { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .cl-date { border-right: none; border-bottom: 1px dashed var(--border); padding-right: 0; padding-bottom: 12px; }
}

/* Guides */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.guide-card:hover { transform: translateY(-2px); border-color: rgba(25, 173, 197, 0.3); box-shadow: var(--shadow-md); }
.guide-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal-deep);
  background: var(--teal-wash);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  width: fit-content;
  font-weight: 600;
}
.guide-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 12px 0 8px;
}
.guide-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 760px) {
  .guides-grid { grid-template-columns: 1fr; }
}

/* Support */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.support-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
}
.support-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .support-grid { grid-template-columns: 1fr; }
}
