:root {
  --surface: #ffffff;
  --muted: #6c757d;
  --border: #e5e7eb;
}

html {
  font-size: 16px;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: #f5f7fb;
  color: #1f2937;
  height: 100%;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-main {
  flex: 1 0 auto;
  padding-bottom: 1.5rem;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.5rem 0 !important;
  font-size: 0.9rem;
  background-color: #f8f9fa;
  border-top: 1px solid var(--border);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.letter-spaced {
  letter-spacing: 0.4px;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.section-heading h1 {
  font-size: 2rem;
  margin: 0.25rem 0 0;
}

.project-card {
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.stat-item h6 {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-item h4 {
  font-weight: 700;
  margin: 0;
}

.card-footer {
  background-color: #f8f9fc;
  font-size: 0.9rem;
}

.badge-open {
  background-color: #e6f4ea;
  color: #0f5132;
}

.badge-closed {
  background-color: #f1f5f9;
  color: #4b5563;
}

.rich-editor {
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem;
  background: #fff;
  overflow: auto;
}

.editor-toolbar {
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.editor-toolbar .btn {
  padding: 0.35rem 0.5rem;
  line-height: 1;
}

.editor-preview {
  border: 1px dashed var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem;
  background: #fff;
}

.preserve-line {
  white-space: pre-line;
}

.bidding-card {
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bidding-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.search-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  border-radius: 0.75rem;
}

.search-box input[type="search"] {
  border: none;
  box-shadow: none;
}

.search-box .btn {
  border-radius: 0.5rem;
}

.footer {
  border-top: 1px solid var(--border);
}
