/* RoostHive Support — shared styles */
:root {
  --brand: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --indigo: #6366f1;
  --green: #10b981;
  --green-50: #ecfdf5;
  --amber: #f59e0b;
  --amber-50: #fffbeb;
  --rose: #f43f5e;
  --rose-50: #fff1f2;
  --violet: #8b5cf6;
  --bg-base: #f6f8fb;
  --bg-card: #ffffff;
  --bg-el: #f1f5f9;
  --bg-tint: #f8fafc;
  --border: #e6ebf2;
  --border-str: #d6deea;
  --text-main: #0b1220;
  --text-sec: #334155;
  --text-mut: #64748b;
  --text-faint: #94a3b8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px rgba(11,18,32,.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--text-main);
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--indigo) 100%);
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.brand .sub {
  font-weight: 600; font-size: 13px; color: var(--text-mut);
  border-left: 1px solid var(--border-str); padding-left: 10px; margin-left: 2px;
}
.site-header nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.site-header nav a {
  font-size: 14px; font-weight: 600; color: var(--text-sec);
  padding: 7px 11px; border-radius: 9px;
}
.site-header nav a:hover { background: var(--bg-el); text-decoration: none; }
.site-header nav a.cta {
  background: var(--brand-600); color: #fff;
}
.site-header nav a.cta:hover { background: var(--brand-700); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 38px 20px 80px; max-width: var(--maxw); margin: 0 auto; }
.sidebar { position: sticky; top: 84px; align-self: start; }
.sidebar h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 0 0 10px; }
.sidebar a { display: block; font-size: 14px; color: var(--text-sec); padding: 7px 12px; border-radius: 9px; font-weight: 500; }
.sidebar a:hover { background: var(--bg-el); text-decoration: none; }
.sidebar a.active { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.content { min-width: 0; }

/* ---- Hero ---- */
.hero { padding: 64px 20px 40px; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p { font-size: 18px; color: var(--text-mut); margin: 0 auto 24px; max-width: 600px; }
.search-hint { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; color: var(--text-mut); font-size: 14px; box-shadow: var(--shadow); }

/* ---- Cards grid ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
  display: block; color: inherit;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(11,18,32,.06), 0 14px 36px rgba(11,18,32,.10); text-decoration: none; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--text-mut); font-size: 14px; }
.ico.blue { background: var(--brand-50); }
.ico.green { background: var(--green-50); }
.ico.amber { background: var(--amber-50); }
.ico.rose { background: var(--rose-50); }
.ico.violet { background: #f5f3ff; }
.ico.indigo { background: #eef2ff; }

/* ---- Content typography ---- */
.content h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; }
.content .lede { font-size: 17px; color: var(--text-mut); margin: 0 0 12px; }
.content h2 { font-size: 22px; margin: 38px 0 12px; padding-top: 8px; letter-spacing: -.01em; }
.content h3 { font-size: 17px; margin: 26px 0 8px; }
.content p { margin: 0 0 14px; color: var(--text-sec); }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-sec); }
.content li { margin: 6px 0; }
.content strong { color: var(--text-main); }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-mut); }

/* ---- Steps ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 18px 0; }
.steps > li {
  position: relative; padding: 0 0 4px 48px; margin: 0 0 20px; min-height: 34px;
}
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.steps > li strong { display: block; margin-bottom: 2px; }

/* ---- Callouts ---- */
.note { border: 1px solid var(--border); border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 14.5px; color: var(--text-sec); }
.note.tip { border-left-color: var(--green); background: var(--green-50); }
.note.warn { border-left-color: var(--amber); background: var(--amber-50); }
.note .label { font-weight: 700; color: var(--text-main); margin-right: 6px; }

/* ---- Tables ---- */
table.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; background: var(--bg-card); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.tbl th, table.tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
table.tbl th { background: var(--bg-tint); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mut); }
table.tbl tr:last-child td { border-bottom: none; }

/* ---- Pills ---- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.green { background: var(--green-50); color: #047857; }
.pill.amber { background: var(--amber-50); color: #b45309; }
.pill.rose { background: var(--rose-50); color: #be123c; }
.pill.blue { background: var(--brand-50); color: var(--brand-700); }

/* ---- Next / prev ---- */
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; border-top: 1px solid var(--border); padding-top: 22px; }
.pager a { font-weight: 600; font-size: 14px; }

/* ---- FAQ ---- */
details.faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 4px 18px; margin: 10px 0; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; color: var(--text-main); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "＋"; color: var(--brand-600); font-weight: 700; margin-right: 10px; }
details.faq[open] summary::before { content: "－"; }
details.faq p { padding-bottom: 12px; margin: 0; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-card); margin-top: 40px; }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; color: var(--text-mut); font-size: 14px; }
.site-footer a { color: var(--text-sec); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .page { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: static; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg-card); }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .site-header nav { display: none; }
}
