:root {
  --deep: #172a3e; --navy: #131e2e; --teal: #117a7c;
  --gold: #c8a96e; --white: #ffffff;
  --g80: rgba(255,255,255,0.8); --g55: rgba(255,255,255,0.55);
  --g30: rgba(255,255,255,0.3); --g10: rgba(255,255,255,0.1);
  --g06: rgba(255,255,255,0.06); --border: rgba(17,122,124,0.2);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--deep);
  background-image: radial-gradient(rgba(14,124,123,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--white); min-height: 100vh;
}

/* ── Nav — matches landing page exactly ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 4rem;
  background: rgba(19, 30, 46, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(17,122,124,0.15), 0 4px 24px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(17,122,124,0.15);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
}
.nav-logo-svg {
  height: 48px; width: auto;
  display: inline-flex; align-items: center;
}
.nav-logo-svg svg { height: 48px; width: auto; }
.nav-logo .nav-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700; color: #ffffff;
  letter-spacing: 0.02em; line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: #ffffff; }
.btn-sm {
  background: rgba(17,122,124,0.15) !important; border: 1px solid rgba(17,122,124,0.3) !important;
  color: #5eb8ba !important; padding: 0.45rem 1rem; border-radius: 8px;
  font-weight: 500; transition: all 0.15s; font-family: inherit; cursor: pointer;
}
.btn-sm:hover { background: rgba(17,122,124,0.25) !important; color: var(--white) !important; }

/* ── Layout ── */
.layout {
  max-width: 860px; margin: 0 auto; padding: 3rem 2rem 6rem;
  display: flex; flex-direction: column; gap: 0;
}
.sidebar { margin-bottom: 1.5rem; }
.sidebar-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g55); text-decoration: none; font-size: 0.85rem;
  transition: color 0.15s;
}
.sidebar-back:hover { color: var(--white); }

/* ── Article ── */
.article { max-width: 720px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--g30); margin-bottom: 2rem;
}
.breadcrumb a { color: var(--g30); text-decoration: none; }
.breadcrumb a:hover { color: var(--g55); }
.article-tags { display: flex; gap: 6px; margin-bottom: 1rem; }
.tag { font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.tag-landlord { background: rgba(17,122,124,0.12); color: #5eb8ba; border: 1px solid rgba(17,122,124,0.2); }
.tag-tenant { background: rgba(200,169,110,0.1); color: var(--gold); border: 1px solid rgba(200,169,110,0.2); }
.article h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 0.75rem;
}
.article-meta { font-size: 0.82rem; color: var(--g30); margin-bottom: 2.5rem; }
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; margin: 2.5rem 0 0.75rem; color: var(--white);
}
.article-body h3 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: var(--g80); }
.article-body p { font-size: 0.95rem; color: var(--g55); line-height: 1.8; margin-bottom: 1rem; font-weight: 300; }
.article-body strong { color: var(--g80); font-weight: 600; }
.article-body a { color: #5eb8ba; text-decoration: underline; text-underline-offset: 3px; }

/* Steps */
.steps { list-style: none; counter-reset: steps; margin: 1.5rem 0; }
.steps li { counter-increment: steps; display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
.steps li::before {
  content: counter(steps); min-width: 28px; height: 28px; border-radius: 50%;
  background: rgba(17,122,124,0.15); border: 1px solid rgba(17,122,124,0.3);
  color: #5eb8ba; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.steps li p { margin: 0; color: var(--g55); font-size: 0.95rem; line-height: 1.7; font-weight: 300; }
.steps li strong { color: var(--g80); }

/* Callouts */
.tip, .warning, .note { border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; line-height: 1.7; }
.tip { background: rgba(17,122,124,0.08); border: 1px solid rgba(17,122,124,0.2); color: rgba(255,255,255,0.65); }
.tip::before { content: '💡 '; }
.warning { background: rgba(200,169,110,0.08); border: 1px solid rgba(200,169,110,0.2); color: rgba(255,255,255,0.65); }
.warning::before { content: '⚠️ '; }
.note { background: var(--g06); border: 1px solid var(--g10); color: rgba(255,255,255,0.5); }
.note::before { content: '📝 '; }

/* Article nav */
.article-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--g06); flex-wrap: wrap;
}
.article-nav a {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  padding: 0.75rem 1rem; border: 1px solid var(--g10); border-radius: 10px;
  background: var(--g06); max-width: 260px; transition: all 0.12s;
}
.article-nav a:hover { border-color: rgba(17,122,124,0.3); }
.nav-dir { font-size: 0.72rem; color: var(--g30); text-transform: uppercase; letter-spacing: 0.07em; }
.nav-title { font-size: 0.9rem; color: var(--g80); font-weight: 500; }

/* Footer */
footer {
  border-top: 1px solid var(--g06); padding: 2rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--g30);
}
footer a { color: var(--g30); text-decoration: none; }
footer a:hover { color: var(--g55); }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-logo .nav-wordmark { font-size: 1.1rem; }
  .nav-logo-svg { height: 36px; }
  .nav-logo-svg svg { height: 36px; }
  footer { flex-direction: column; text-align: center; padding: 1.5rem; }
}
@media (max-width: 520px) {
  .nav-links .hide-mobile { display: none; }
}

/* ── Help index page styles ── */
.hero {
  text-align: center; padding: 5rem 2rem 3rem;
  max-width: 700px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #5eb8ba; background: rgba(17,122,124,0.1); border: 1px solid rgba(17,122,124,0.25);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.15; margin-bottom: 1rem;
}
.hero p { color: var(--g50, rgba(255,255,255,0.5)); font-size: 1rem; line-height: 1.7; font-weight: 300; margin-bottom: 2rem; }
.search-wrap { max-width: 520px; margin: 0 auto 1.5rem; position: relative; }
.search-wrap input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(17,122,124,0.25); border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 3rem;
  color: var(--white); font-family: inherit; font-size: 0.95rem;
  outline: none; transition: border-color 0.15s;
}
.search-wrap input:focus { border-color: rgba(17,122,124,0.6); }
.search-wrap input::placeholder { color: var(--g30); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--g30); pointer-events: none; font-size: 16px;
}
.filter-pills {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 3rem; flex-wrap: wrap;
}
.pill {
  padding: 6px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--g10, rgba(255,255,255,0.1));
  background: var(--g06); color: var(--g55); transition: all 0.15s;
}
.pill:hover { color: var(--white); border-color: var(--g30); }
.pill.active { background: rgba(17,122,124,0.15); border-color: rgba(17,122,124,0.4); color: #5eb8ba; }
.pill[data-filter="tenant"].active {
  background: rgba(200,169,110,0.12); border-color: rgba(200,169,110,0.35); color: var(--gold);
}
.articles-section { max-width: 1100px; margin: 0 auto; padding: 0 2rem 6rem; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--g30); margin-bottom: 1.25rem; padding-left: 2px;
}
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; margin-bottom: 3rem;
}
.article-card {
  background: rgba(23,42,62,0.7); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 1.5rem; text-decoration: none; color: inherit;
  transition: all 0.15s; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.article-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(17,122,124,0.4), transparent);
  opacity: 0; transition: opacity 0.15s;
}
.article-card:hover { border-color: rgba(17,122,124,0.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.article-card:hover::before { opacity: 1; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
  background: rgba(17,122,124,0.1); border: 1px solid rgba(17,122,124,0.2);
}
.card-icon.gold { background: rgba(200,169,110,0.1); border-color: rgba(200,169,110,0.2); }
.article-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); line-height: 1.4; }
.article-card p { font-size: 0.82rem; color: var(--g55); line-height: 1.6; font-weight: 300; flex: 1; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.card-arrow { font-size: 14px; color: var(--g30); align-self: flex-end; margin-top: 4px; transition: color 0.15s, transform 0.15s; }
.article-card:hover .card-arrow { color: #5eb8ba; transform: translateX(3px); }
.no-results { display: none; text-align: center; padding: 4rem 2rem; color: var(--g30); }
