/* =========================================================================
   Easil Guides — main.css
   Faithful re-creation of the original support.easil.com look & feel.
   Values (colors, type, spacing, hovers) extracted from the captured site:
   dark #1c1d1e header, #f3f5f7 body, white cards, blue #2555df links,
   Poppins headings.
   ========================================================================= */

/* ------------------------------------------------------------------- Fonts */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins/Poppins-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins/Poppins-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins/Poppins-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins/Poppins-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- Settings */
:root {
  --header-bg: #1c1d1e;
  --body-bg: #f3f5f7;
  --text: #1e2733;        /* p-gray-950 */
  --text-dark: #3b3b3b;
  --muted: #8f919d;
  --link: #630de3;        /* p-primary-600 (article links) */
  --primary: #783afb;     /* p-primary-500 */
  --primary-50: #f1ebfe;  /* hover background */
  --card-border: #e4e4e7; /* computed base card border */
  --chip-bg: #eaeef4;     /* p-gray-100 */
  --chip-bg-hover: #e0e4ec;
  --input-border: #d1dbe6; /* p-gray-200 */
  --search-icon: #597c9e; /* p-gray-500 */

  --font-body: "DM Sans", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", var(--font-body);

  --container: 960px;
  --radius-card: 8px;
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); line-height: 1.25; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ------------------------------------------------------------------ Header */
.site-header {
  background-color: var(--header-bg);
  background-image: none;
  color: #fff;
  padding: 22px 0 34px;
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header__logo img { width: 35px; height: auto; display: block; }

.back-to-website {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
}
.back-to-website:hover { color: #fff; text-decoration: none; }
.back-to-website:hover span { text-decoration: underline; }
.back-to-website svg { width: 14px; height: 14px; }

.site-header__title {
  color: #fff;
  font-size: 34.5px;
  font-weight: 600;
  margin: 24px 0 16px;
}

/* Search bar (in the header hero) — full container width, left aligned */
.super-search { position: relative; }
.super-search__icon {
  position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--search-icon); pointer-events: none;
}
.super-search input {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 2px solid var(--input-border);
  background: #fff;
  padding: 0 14px 0 40px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.super-search input::placeholder { color: var(--search-icon); }
.super-search input:focus { border-color: var(--link); box-shadow: 0 0 0 3px rgba(37, 85, 223, 0.12); }

/* ------------------------------------------------------------------ Layout */
.site-main { flex: 1 0 auto; padding: 35px 0 48px; }

/* ----------------------------------------------------------- Category cards */
.section-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.category {
  display: block;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.03);
  padding: 16px 18px;
  margin-bottom: 20px;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.category:hover {
  text-decoration: none;
  background-color: var(--primary-50);
  border-color: var(--primary);
}
.category__title { font-size: 19px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.category__desc { font-size: 16px; line-height: 1.47; color: #3f4651; margin: 0 0 8px; }
.category__count { font-size: 14px; line-height: 20px; color: #6b7280; margin: 0; }

.categories__intro { font-size: 16px; color: #3f4651; margin: 0 0 24px; }

/* ------------------------------------------------------- Category page list */
.category-page__desc { font-size: 16px; color: var(--muted); margin: 0 0 24px; }
.entries { display: block; }
.entry {
  display: block;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.03);
  padding: 14px 18px;
  margin-bottom: 12px;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.entry:hover { text-decoration: none; background-color: var(--primary-50); border-color: var(--primary); }
.entry__title { display: block; font-size: 18px; font-weight: 500; color: var(--text-dark); margin-bottom: 4px; }
.entry__desc { display: block; font-size: 16px; line-height: 1.47; color: var(--muted); }
.empty-state { color: var(--muted); }

/* ------------------------------------------------------------- Breadcrumbs */
.breadcrumbs { font-size: 14px; color: #52525c; margin-bottom: 18px; }
.breadcrumbs a { color: #52525c; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { margin: 0 8px; color: #8a93a0; }

/* ----------------------------------------------------------------- Article */
.article {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.03);
  padding: 32px;
}
.article__title { font-size: 28px; font-weight: 600; color: var(--text-dark); margin: 0 0 14px; }
.article__byline {
  display: flex; align-items: center; gap: 8px;
  color: #4f5e6b; font-size: 14px; margin: 0 0 22px;
}
.article__byline .avatar { width: 32px; height: 32px; border-radius: 50%; }

.article__content { font-size: 16px; color: var(--text); }
.article__content > * + * { margin-top: 16px; }
.article__content h1, .article__content h2, .article__content h3,
.article__content h4, .article__content h5, .article__content h6 {
  font-family: var(--font-head); color: var(--text-dark); margin-top: 28px; line-height: 1.3;
}
.article__content h2 { font-size: 22px; }
.article__content h3 { font-size: 19px; }
.article__content h4 { font-size: 17px; }
.article__content img,
.article__content .article-video {
  display: block; border-radius: 6px; border: 1px solid #e6e8eb; margin-top: 16px;
}
.article__content ul, .article__content ol { padding-left: 1.4em; }
.article__content li + li { margin-top: 4px; }
.article__content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--chip-bg); padding: 0.1em 0.35em; border-radius: 4px; }
.article__content blockquote { margin: 16px 0; padding-left: 16px; border-left: 3px solid var(--card-border); color: var(--muted); }

/* Category chip(s) at the foot of an article */
.article__categories { margin-top: 28px; padding-top: 18px; border-top: 1px solid #eef1f4; font-size: 14px; color: var(--text); }
.chip {
  display: inline-block;
  border-radius: 4px;
  background-color: var(--chip-bg);
  color: var(--text);
  padding: 3px 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.chip:hover { background-color: var(--chip-bg-hover); text-decoration: none; }

/* ------------------------------------------------------------------ Search */
.search-page { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: 0 3px 8px 0 rgba(0,0,0,.03); padding: 28px 32px; }
.search-page h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
:root {
  --pagefind-ui-primary: #783afb;
  --pagefind-ui-font: var(--font-body);
  --pagefind-ui-border-radius: 6px;
}

/* ----------------------------------------------------------------- Utility */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 600px) {
  .site-header__title { font-size: 26px; }
  .section-title { font-size: 26px; }
  .article { padding: 22px; }
  .article__title { font-size: 23px; }
}
