/**
 * 숲으로 가다 — standalone pages (M3, matches soopforest theme)
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --md-sys-color-primary: #9fd89f;
  --md-sys-color-on-primary: #003910;
  --md-sys-color-primary-container: #005318;
  --md-sys-color-on-primary-container: #b8f0b8;
  --md-sys-color-secondary-container: #3a4b3e;
  --md-sys-color-on-secondary-container: #d4e8d4;
  --md-sys-color-surface: #101410;
  --md-sys-color-surface-container: #1d211d;
  --md-sys-color-surface-container-high: #272b27;
  --md-sys-color-surface-container-highest: #323632;
  --md-sys-color-on-surface: #e2e3de;
  --md-sys-color-on-surface-variant: #c2c8bd;
  --md-sys-color-outline: #8c9388;
  --md-sys-color-outline-variant: #424940;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-full: 9999px;
  --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,.35), 0 1px 3px 1px rgba(0,0,0,.25);
  --md-sys-elevation-2: 0 2px 6px 2px rgba(0,0,0,.25);
  --md-sys-font: 'Roboto', 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.m3-app {
  margin: 0;
  min-height: 100vh;
  font-family: var(--md-sys-font);
  font-size: 14px;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
}

.m3-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-elevation-1);
}
.m3-top-bar a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.m3-top-bar .m3-title {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.m3-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.m3-chip {
  display: inline-flex;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: 8px;
  margin-bottom: 8px;
}

.m3-headline {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
}

.m3-body { color: var(--md-sys-color-on-surface-variant); margin: 0 0 24px; }

.m3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: var(--md-sys-shape-corner-full);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s, filter 0.2s;
}
.m3-btn-filled {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  box-shadow: var(--md-sys-elevation-1);
}
.m3-btn-filled:hover { filter: brightness(1.06); box-shadow: var(--md-sys-elevation-2); }
.m3-btn-outlined {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
}
.m3-btn-outlined:hover { background: rgba(159, 216, 159, 0.08); }

.m3-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }

.m3-card {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-1);
}
.m3-card-media { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #000; }
.m3-card-content { padding: 16px; }
.m3-card-title { font-size: 16px; font-weight: 500; margin: 0 0 8px; }

.m3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.m3-stat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.m3-stat {
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-corner-full);
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface-variant);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.m3-stat-ico {
  font-size: 12px;
  line-height: 1;
  width: 14px;
  text-align: center;
}

.m3-video-wrap {
  border-radius: var(--md-sys-shape-corner-large);
  overflow: hidden;
  background: #000;
  box-shadow: var(--md-sys-elevation-2);
}
.m3-video-wrap video { width: 100%; display: block; max-height: 70vh; object-fit: cover; }

.m3-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
  border-radius: 8px;
  box-shadow: var(--md-sys-elevation-2);
  display: none;
  z-index: 100;
}
.m3-snackbar.show { display: block; }

.m3-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--md-sys-color-on-surface-variant);
}

.m3-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-font);
}

.m3-share-box {
  padding: 12px;
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-high);
  border: 1px solid var(--md-sys-color-outline-variant);
}