/* ===========================
   Baby Yearbooks — Help Center Theme
   =========================== */

/* ---------- Brand tokens ---------- */
:root{
  --brand:#7A5AF8;
  --brand-ink:#ffffff;
  --ink:#1F1F29;
  --muted-ink:#596077;
  --bg:#ffffff;
  --bg-soft:#FAF7FF;
  --card:#ffffff;
  --card-border:#ECE8FB;
  --link:var(--brand);
  --link-hover:#6544F2;
  --radius:16px;
  --shadow:0 8px 24px rgba(122,90,248,.10);
  --focus:0 0 0 3px rgba(122,90,248,.35);
}

/* ---------- Base ---------- */
html,body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  color:var(--ink);
  background:var(--bg);
}
a{ color:var(--link); }
a:hover{ color:var(--link-hover); }
a:focus{ outline:none; box-shadow:var(--focus); border-radius:6px; }

/* ---------- Header / Nav / Hero ---------- */
#docsHeader,.siteHeader{
  background:var(--bg-soft);
  border-bottom:1px solid var(--card-border);
}
.siteHeader .logo img{ max-height:36px; }

.pageTitle h1,#home h1{
  font-weight:700; letter-spacing:-.01em; line-height:1.15;
}

/* Unify hero (title + search) */
#docsSearch{
  background:var(--bg-soft)!important;
  border-bottom:1px solid var(--card-border);
  padding:16px 0;
}
#docsSearch h1,#docsSearch form,#docsSearch .container-fluid,#docsSearch .container,#docsSearch .search{
  background:transparent!important;
}

/* ---------- Search ---------- */
#searchBar,#home .search{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:12px;
}
#searchBar input[type="search"],#home .search input[type="search"]{
  border:none!important; box-shadow:none!important; font-size:1rem;
}

/* Buttons */
#home .search button,#searchBar button,.search .btn,
.btn-primary,.button,button,a.button{
  background:var(--brand)!important; color:var(--brand-ink)!important;
  border-radius:999px; border:0; padding:10px 18px; font-weight:600;
}
#home .search button:hover,#searchBar button:hover,.search .btn:hover,
.btn-primary:hover,.button:hover,button:hover,a.button:hover{ filter:brightness(.95); }

/* ---------- Category cards ---------- */
.category,.categoryList .category{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  transition:transform .15s, box-shadow .15s;
}
.category:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(122,90,248,.14); }
.category h3 a{ color:var(--ink); text-decoration:none; }

/* ---------- Article container ---------- */
#fullArticle,.articleBody{
  max-width:760px;
  color:var(--ink);
  line-height:1.7;
}

/* High-specificity sizing so it wins over theme defaults */
#fullArticle,#fullArticle p,#fullArticle li,#fullArticle td,
.articleBody,.articleBody p,.articleBody li,.articleBody td{
  font-size:18px!important;
  line-height:1.75!important;
}

/* Paragraph & list rhythm */
#fullArticle p,.articleBody p{ margin:0 0 1.1em; }
#fullArticle ul,#fullArticle ol,
.articleBody ul,.articleBody ol{
  margin:0 0 1.1em 1.4em;
  padding:0;
}
#fullArticle li,.articleBody li{ margin:.4em 0; }

/* Headings inside article */
#fullArticle h2,#fullArticle h3{ margin-top:1.6em; }

/* Callouts */
.callout,.note,blockquote{
  background:var(--bg-soft);
  border-left:4px solid var(--brand);
  border-radius:10px; padding:14px 16px; color:var(--ink);
}

/* Tables */
#fullArticle table,.articleBody table{
  width:100%; border-collapse:collapse;
  border:1px solid var(--card-border);
  border-radius:12px; overflow:hidden;
}
#fullArticle th,#fullArticle td,
.articleBody th,.articleBody td{
  padding:8px 10px; border-bottom:1px solid var(--card-border);
}
#fullArticle tr:nth-child(even),.articleBody tr:nth-child(even){ background:#FCFBFF; }

/* Breadcrumbs */
.breadcrumbs a{ color:var(--muted-ink); }
.breadcrumbs a:hover{ color:var(--link-hover); }

/* ---------- Footer ---------- */
.siteFooter,#docsFooter{
  background:var(--bg-soft);
  border-top:1px solid var(--card-border);
  color:var(--muted-ink);
  text-align:center;
  padding:20px 10px;
  font-size:14px; line-height:1.6;
}

/* ---------- Mobile refinements ---------- */
@media (max-width:720px){
  /* Body size 17px on phones */
  #fullArticle,#fullArticle p,#fullArticle li,#fullArticle td,
  .articleBody,.articleBody p,.articleBody li,.articleBody td{
    font-size:17px!important; line-height:1.7!important;
  }

  /* Smaller article title */
  #fullArticle h1.pageTitle,.pageTitle h1,#fullArticle h1,.articleBody h1{
    font-size:26px!important; line-height:1.25!important; margin-bottom:.6em;
  }
  #fullArticle h2,.articleBody h2{ font-size:22px!important; line-height:1.3!important; }
  #fullArticle h3,.articleBody h3{ font-size:18px!important; line-height:1.35!important; }

  /* Tighter rhythm on phones */
  #fullArticle p,.articleBody p{ margin:0 0 1em; }
  #fullArticle ul,#fullArticle ol,.articleBody ul,.articleBody ol{ margin:0 0 1em 1.2em; }

  /* Footer + category list readability */
  .siteFooter,#docsFooter{ font-size:16px!important; line-height:1.7!important; padding:24px 14px; }
  .categoryList a,.categoryList h3,.sidebar .categoryList a{ font-size:17px!important; line-height:1.7!important; }
  .categoryList li a,.categories li a,.collectionList li a,.collections li a{ display:block; padding:8px 0; }

  /* Small layout tweak */
  .category{ padding:14px; }
  #fullArticle{ padding-left:2px; padding-right:2px; }
}