body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: rgba(0, 0, 0, 0.84);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: #fff;
}

a {
  color: inherit;
}

.md-container {
  max-width: 1032px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-shell {
  min-height: 100vh;
}

.page-shell-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.brand-logo {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.84);
}

.brand-logo-nav {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.brand-title {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.84);
}

.brand-subtitle {
  color: #6b6b6b;
  font-size: 0.95rem;
}

.md-label {
  color: #242424;
  font-size: 0.875rem;
  font-weight: 500;
}

.md-input {
  border: none;
  border-bottom: 1px solid #e6e6e6;
  border-radius: 0;
  padding: 0.5rem 0;
  background: transparent;
  box-shadow: none !important;
}

.md-input:focus {
  border-bottom-color: #242424;
  background: transparent;
}

.md-pill-btn,
.md-green-btn,
.md-outline-pill {
  border-radius: 999px;
}

.md-pill-btn {
  padding: 0.75rem 1rem;
  background: #242424;
  border-color: #242424;
}

.md-pill-btn:hover {
  background: #3a3a3a;
  border-color: #3a3a3a;
}

.md-link {
  color: #242424;
  text-decoration: underline;
}

.md-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e6e6;
}

.md-topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.md-search {
  align-items: center;
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-width: 260px;
}

.md-search-icon {
  color: #6b6b6b;
  margin-right: 0.5rem;
}

.md-search-input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: rgba(0, 0, 0, 0.84);
}

.md-search-input::placeholder {
  color: #6b6b6b;
}

.md-icon-link {
  color: #6b6b6b;
}

.md-green-btn {
  background: #1a8917;
  border-color: #1a8917;
  padding: 0.45rem 1rem;
}

.md-green-btn:hover {
  background: #156d12;
  border-color: #156d12;
}

.md-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
}

.md-tabs {
  border-bottom: 1px solid #e6e6e6;
}

.md-tabs-row {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-top: 1rem;
}

.md-tab {
  display: inline-block;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid transparent;
  color: #6b6b6b;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.md-tab.active {
  border-bottom-color: #242424;
  color: #242424;
  font-weight: 500;
}

.md-main-grid {
  display: block;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.md-blog-only {
  max-width: 760px;
}

.md-feed {
  min-width: 0;
}

.md-article {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.md-article:last-child {
  margin-bottom: 0;
}

.md-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.md-meta-avatar,
.md-contact-avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

.md-meta-name {
  color: #242424;
  font-size: 0.875rem;
  font-weight: 500;
}

.md-meta-time,
.md-text-muted,
.md-stat-note,
.md-contact-role,
.md-sidebar-footer a {
  color: #6b6b6b;
}

.md-article-body {
  display: flex;
  gap: 1.5rem;
}

.md-article-text {
  flex: 1;
}

.md-article-title {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgba(0, 0, 0, 0.84);
}

.md-article-title-muted {
  color: #6b6b6b;
  text-decoration: line-through;
}

.md-article-summary {
  color: #6b6b6b;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.md-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.md-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.md-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f2f2f2;
  color: #6b6b6b;
  font-size: 0.75rem;
}

.md-bookmark {
  color: #6b6b6b;
  font-size: 1.1rem;
}

.md-sidebar {
  display: none;
}

@media (min-width: 992px) {
  .md-sidebar {
    display: block;
  }
}

.md-sidebar-block {
  margin-bottom: 2rem;
}

.md-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.84);
}

.md-stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.md-stats-list li + li {
  margin-top: 1.25rem;
}

.md-stat-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  color: #242424;
  font-size: 0.875rem;
  font-weight: 500;
}

.md-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.md-stat-value {
  font-family: 'Lora', 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: rgba(0, 0, 0, 0.84);
}

.md-stat-note {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
}

.md-contact-list {
  display: grid;
  gap: 1rem;
}

.md-contact-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.md-contact-info {
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.md-contact-avatar {
  width: 2rem;
  height: 2rem;
  background: #e5e7eb;
  color: #4b5563;
  flex: 0 0 auto;
}

.md-contact-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.84);
}

.md-contact-role {
  font-size: 0.75rem;
}

.md-outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid #242424;
  color: #242424;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  flex: 0 0 auto;
}

.md-outline-pill:hover {
  background: #242424;
  color: #fff;
}

.md-suggest-link {
  display: inline-block;
  margin-top: 1rem;
  color: #1a8917;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.md-suggest-link:hover {
  color: #156d12;
}

.md-sidebar-footer {
  border-top: 1px solid #e6e6e6;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
}

.md-sidebar-footer a {
  text-decoration: none;
}

.md-sidebar-footer a:hover {
  color: rgba(0, 0, 0, 0.84);
}
