/* Doorstep static pages — aligns with main app (warm dark, Instrument + Geist) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0F0E0C;
  --surface: #171614;
  --surface-2: #1c1a17;
  --border: #2A2825;
  --border-mid: #3A3835;
  --text: #F5F1EB;
  --text-mid: #6B6760;
  --text-dim: #4A4845;
  --amber: #C17B3F;
  --amber-bg: rgba(193, 123, 63, 0.12);
  --amber-border: rgba(193, 123, 63, 0.35);
  --red: #c75c5c;
  --red-bg: rgba(199, 92, 92, 0.12);
  --red-border: rgba(199, 92, 92, 0.28);
  --green: #4D9E6B;
  --green-bg: rgba(77, 158, 107, 0.12);
  --green-border: rgba(77, 158, 107, 0.3);
  --blue: #6b8cbc;
  --blue-bg: rgba(107, 140, 188, 0.12);
  --blue-border: rgba(107, 140, 188, 0.28);
  --purple: #9a7b9c;
  --purple-bg: rgba(154, 123, 156, 0.12);
  --purple-border: rgba(154, 123, 156, 0.28);
  --radius: 4px;
  --link: #e8c49a;
  --link-h: #f5e6d3;
}

html { font-size: 16px; line-height: 1.55; scroll-behavior: smooth; }

body {
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-weight: 400;
}

a { color: var(--link); }
a:hover { color: var(--link-h); }

/* ——— Shared nav ——— */
.ds-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ds-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.ds-logo:hover { color: var(--text); opacity: 0.92; }

.ds-nav-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ds-nav-link {
  font-size: 12px;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.ds-nav-link:hover { color: var(--text); }

.ds-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: 99px;
  padding: 5px 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: border-color 0.15s;
  display: inline-flex;
  align-items: center;
}
.ds-pill:hover { border-color: var(--text-mid); color: var(--text); }

.ds-preview-banner {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  padding: 0.65rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.ds-preview-banner a { font-weight: 500; }

/* ——— Shared footer ——— */
.ds-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  margin-top: auto;
}

.ds-footer-left {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 20rem;
}

.ds-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ds-footer-links a {
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.ds-footer-links a:hover { color: var(--text); }

/* ——— Board page ——— */
.board-nav-center {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.board-nav-right { display: flex; align-items: center; gap: 10px; }

.nav-name {
  font-size: 12px;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.board-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.board-greeting { font-size: 14px; color: var(--text-mid); font-weight: 300; }
.board-greeting strong { color: var(--text); font-weight: 500; }

.btn-post {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber);
  color: #0F0E0C;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.1s;
}
.btn-post:hover { opacity: 0.88; }
.btn-post svg { width: 13px; height: 13px; }

.filter-bar {
  display: flex;
  gap: 0;
  padding: 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter {
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  padding: 11px 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: -1px;
  transition: color 0.1s;
}
.filter:hover { color: var(--text); }
.filter.active { color: var(--amber); border-bottom-color: var(--amber); }

.board-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.post-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.post-card.urgent { border-left: 3px solid var(--amber); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.tags { display: flex; gap: 5px; flex-wrap: wrap; }

.tag {
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag-need { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.tag-offer { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.tag-urgent { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.tag-food { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.tag-transport { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.tag-skills { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--purple-border); }

.card-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; flex-shrink: 0; }

.card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.card-body {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-meta { font-size: 11px; color: var(--text-dim); letter-spacing: 0.02em; }
.card-meta strong { color: var(--text-mid); font-weight: 500; }

.btn-help {
  background: var(--amber);
  color: #0F0E0C;
  border: none;
  border-radius: var(--radius);
  padding: 6px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.1s;
  white-space: nowrap;
}
.btn-help:hover { opacity: 0.88; }

.btn-want {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 6px 13px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: border-color 0.1s, color 0.1s;
  white-space: nowrap;
}
.btn-want:hover { border-color: var(--text-mid); color: var(--text); }

.new-post-card {
  background: transparent;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.new-post-card:hover { border-color: var(--amber); background: var(--amber-bg); }

.new-post-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-2);
}

.new-post-text p:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 2px;
}
.new-post-text p:last-child { font-size: 12px; color: var(--text-dim); font-weight: 300; }

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 200;
}
.drawer-overlay.open { display: block; }

.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  padding: 1.75rem 1.5rem 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.drawer.open { transform: translateY(0); }

.drawer-handle {
  width: 36px;
  height: 3px;
  background: var(--border-mid);
  border-radius: 99px;
  margin: 0 auto 1.5rem;
}

.drawer-head {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.type-btn {
  background: var(--bg);
  border: none;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.1s, color 0.1s;
}
.type-btn.active { background: var(--surface); color: var(--text); }

.field { margin-bottom: 1rem; }

label.lbl {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input[type="text"], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--amber); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }

.urgent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  gap: 1rem;
}

.urgent-label { font-size: 13px; font-weight: 500; color: var(--text); }
.urgent-sub { font-size: 12px; color: var(--text-mid); font-weight: 300; margin-top: 1px; }

.toggle-wrap { display: flex; align-items: center; gap: 8px; }

.toggle {
  width: 36px;
  height: 20px;
  background: var(--border-mid);
  border-radius: 99px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.toggle.on { background: var(--amber); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  transition: left 0.2s;
}
.toggle.on::after { left: 19px; }

.btn-submit {
  width: 100%;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
  transition: opacity 0.1s;
}
.btn-submit:hover { opacity: 0.88; }

/* ——— Recover page ——— */
.rec-back-link {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rec-back-link:hover { color: var(--text); }

.rec-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 700px) {
  .rec-page { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 1.25rem; }
  .rec-page-right { display: none; }
}

.rec-section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.rec-page h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.rec-page h1 em { font-style: italic; color: var(--amber); }

.rec-intro {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

input[type="email"] {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.btn-primary {
  width: 100%;
  background: var(--amber);
  color: #0F0E0C;
  border: none;
  border-radius: var(--radius);
  padding: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.1s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
}
.success.visible { display: block; }

.success-head {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 3px;
}

.success-body {
  font-size: 12px;
  color: var(--green);
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.9;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1.5rem 0;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 11px; color: var(--text-dim); white-space: nowrap; letter-spacing: 0.05em; }

.organizer-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
  text-align: center;
}

.new-user-strip {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.new-user-text {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 300;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--text-mid); color: var(--text); }

.explainer-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.explainer-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.expl-step {
  background: var(--surface);
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.expl-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.expl-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.expl-body { font-size: 12px; color: var(--text-mid); line-height: 1.55; font-weight: 300; }

.safety-note {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}

.safety-note p:first-child {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.safety-note p:last-child {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
}

.rec-live-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* ——— Organizer page ——— */
.org-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.org-wrap h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.org-wrap .lead {
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.org-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.org-card h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.org-card p, .org-card ol {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
}

.org-card ol { padding-left: 1.2rem; margin-top: 0.5rem; }
.org-card li { margin: 0.35rem 0; }

.org-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* layout wrapper for sticky footer */
.ds-page-flex {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
