:root{
  --brand:#2ecc71;
  --brand-dark:#27ae60;
  --muted:#7f8c8d;
  --card-bg:#ffffff;
  --page-bg-1:#667eea;
  --page-bg-2:#764ba2;
  --max-w:1200px;
  --danger:#e74c3c;
  --warning:#f39c12;
  --info:#3498db;
  --text:#2c3e50;
  --border:#e1e8ed;
  --shadow:0 6px 20px rgba(2,6,23,0.06);
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
  background:linear-gradient(135deg,var(--page-bg-1) 0%,var(--page-bg-2) 100%);
  color:var(--text);
  min-height:100vh;
}

/* Layout wrappers */
.main{
  max-width:var(--max-w);
  margin:0 auto;
  padding:24px 20px;
  min-height:calc(100vh - 70px);
}
.card{
  background:#fff;
  border-radius:12px;
  padding:24px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}
.card-center{ text-align:center; max-width:640px; margin:40px auto; }
.title{ margin:0 0 8px 0; }
.subtitle{ color:var(--muted); margin:0 0 18px; }
.muted{ color:#7f8c8d; }

/* Navbar */
.nav{
  background:#fff;
  padding:0;
  box-shadow:var(--shadow);
  position:sticky; top:0; z-index:100;
}
.nav-container{
  max-width:var(--max-w);
  margin:0 auto;
  padding:0 20px;
  display:flex; justify-content:space-between; align-items:center;
  height:70px;
}
.logo{
  color:var(--brand);
  font-size:1.8rem;
  font-weight:700;
  text-decoration:none;
  display:inline-flex; align-items:center; gap:10px;
  line-height:1;
}

/* ✅ Old-site behavior: show the house emoji as the logo icon */
.logo::before{
  content:"🏠";
  display:inline-block;
  font-size:1.5rem;          /* size of the emoji */
  line-height:1;
  margin-right:8px;
  transform: translateY(2px);/* nudge to align optically with text */
}

/* (If you previously had an image logo, this disables it) */
 /* .logo::before{ background-image:none; } */

/* Nav links */
.nav-links{ display:flex; gap:0; align-items:center; flex-wrap:wrap; }
.nav-link{
  padding:12px 20px;
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  border-radius:8px;
  transition:all .2s;
}
.nav-link:hover,.nav-link.active{ background:var(--brand); color:#fff; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 20px; border-radius:8px; border:0; cursor:pointer;
  font-weight:600; font-size:15px; transition:all .2s;
}
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-dark); }
.btn-secondary{ background:#fff; border:1px solid var(--border); color:var(--text); }
.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }

/* Inputs */
.form-group{ margin-bottom:16px; }
.form-group label{ display:block; font-weight:600; margin-bottom:6px; color:var(--text); }
.form-group input,
.form-group select,
.form-group textarea{
  width:100%; padding:12px; border-radius:8px; border:1px solid var(--border); font-size:15px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none; border-color:#8ecae6; box-shadow:0 0 0 3px rgba(142,202,230,.25);
}

/* Grids */
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:900px){
  .grid-3,.grid-4{ grid-template-columns:1fr; }
}

/* KPI / Metrics */
.metric{ text-align:center; padding:16px; }
.metric-value{ font-size:1.8rem; font-weight:700; color:#2ecc71; }
.metric-label{ color:var(--muted); font-size:.9rem; margin-top:4px; }

/* Tables */
.pc-table{ width:100%; border-collapse:separate; border-spacing:0 10px; }
.pc-table td{ background:#f7f9fc; padding:12px 14px; border-radius:12px; }
.pc-table td.val{ text-align:right; font-weight:700; }

/* Utility */
.center{ text-align:center; }
.right{ text-align:right; }
.hidden{ display:none !important; }

/* Toast/alerts (optional) */
.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:20px; background:#111827; color:#fff;
  padding:10px 14px; border-radius:10px; box-shadow:var(--shadow);
}
/* === Emoji/nav polish (safe additions) === */
.emoji { font-size:1em; line-height:1; vertical-align:middle;
         font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",system-ui,sans-serif; }
.emoji.hpad { margin-right:6px; }

/* Optional: slightly nicer hover/active for existing nav */
.nav .nav-link.active { background:var(--brand); color:#fff; border-radius:10px; }
.nav .nav-link { display:inline-flex; align-items:center; gap:6px; }
/* === Consistent main heading (H1) styling === */
main h1 {
  font-size: 2rem;           /* large enough for prominence */
  font-weight: 700;
  color: var(--text, #111);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Smaller screens */
@media (max-width: 720px) {
  main h1 { font-size: 1.6rem; }
}
/* Make all main h2 headings look like h1s for consistent page titles */
main h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text, #111);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 720px) {
  main h2 { font-size: 1.6rem; }
}
/* ===== Drive status chip ===== */
.drive-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--card-bg);
  color:var(--muted);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

/* when Drive is ready (we flip this class from JS if you want) */
.drive-chip.ready{
  background:rgba(46, 204, 113, 0.12);          /* brand tint */
  color:var(--brand-dark);
  border-color:rgba(46, 204, 113, 0.35);
}

/* responsive: keep header tidy on small screens */
@media (max-width: 720px){
  .drive-chip{ padding:5px 8px; font-size:11px; }
}
/* ===== PropCheck: Mobile Baseline (non-breaking) ===== */

/* 1) Fluid container on all pages */
.pc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* If your main wrapper already exists, this safely enhances it */
main, .content, .page-wrap {
  box-sizing: border-box;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* 2) Typography that scales nicely */
:root {
  --pc-text: #0f172a;         /* slate-900 */
  --pc-muted: #475569;        /* slate-600 */
  --pc-accent: #0ea5e9;       /* sky-500 (used elsewhere) */
}

body {
  color: var(--pc-text);
  -webkit-text-size-adjust: 100%; /* prevent iOS zoom quirks */
}

h1 { font-size: clamp(24px, 2.8vw + 12px, 36px); line-height: 1.15; }
h2 { font-size: clamp(20px, 2.2vw + 10px, 28px); line-height: 1.2; }
h3 { font-size: clamp(18px, 1.6vw + 8px, 22px);  line-height: 1.3; }
p, li, label, input, button { font-size: clamp(14px, 1.1vw + 10px, 16px); }

/* 3) Forms: full-width on small screens, comfy tap targets */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 44px; /* touch-friendly */
  box-sizing: border-box;
}

button, .btn, input[type="submit"] {
  min-height: 44px;
  padding: 10px 14px;
  line-height: 1.1;
}

/* 4) Tables & wide widgets: allow horizontal scrolling on phones */
.pc-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pc-scroll > table {
  min-width: 640px; /* don’t squash complex tables */
}

/* 5) Simple responsive grid utility (opt-in classes) */
.pc-grid {
  display: grid;
  gap: clamp(12px, 2.5vw, 20px);
}
.pc-grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .pc-grid-2 {
    grid-template-columns: 1fr 1fr; /* auto-upgrade to two columns on tablet+ */
  }
}

/* 6) Spacing helpers (optional, no breakage) */
.pc-stack > * + * { margin-top: clamp(10px, 2.2vw, 16px); }
.pc-section { margin-block: clamp(16px, 4vw, 32px); }

/* 7) Images always contained */
img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

/* 8) iOS Safari input zoom fix when font-size < 16px */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px; }
}


