/* ===========================================================
   Nickgram — website layout (SEO pages)
   Builds on styles.css tokens. Header/footer/breadcrumb/FAQ/list.
   =========================================================== */

.scroller { padding-bottom: 0; min-height: auto; }

/* ---------------- site header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--border-2);
}
.site-header-inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.site-nav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 13px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--text-2);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.site-nav a.cur { color: var(--brand); background: var(--brand-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: grid; }
@media (min-width: 860px) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: oklch(0.2 0.02 var(--brand-h) / 0); transition: background .25s; }
.drawer.open .drawer-scrim { background: oklch(0.2 0.02 var(--brand-h) / 0.45); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 320px);
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel a { padding: 14px 14px; border-radius: 12px; font-size: 16px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 12px; }
.drawer-panel a:hover { background: var(--surface-2); color: var(--brand); }
.drawer-panel a svg { width: 20px; height: 20px; color: var(--muted); }
.drawer-head { display: flex; align-items: center; margin-bottom: 8px; }

/* ---------------- breadcrumb ---------------- */
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; padding: 14px 0 2px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }
.crumb svg { width: 14px; height: 14px; opacity: .6; }
.crumb .cur { color: var(--text-2); }

/* ---------------- hero search/generator ---------------- */
.lede { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.searchbox { position: relative; }
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 12px; max-height: 60vh; overflow-y: auto;
}
.search-panel[hidden] { display: none; }
.search-lab { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 4px 10px; }

/* generator preview lines reuse .gen-line from styles.css */

/* ---------------- tool cards (homepage) ---------------- */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.toolcard {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .15s, box-shadow .2s;
}
.toolcard:hover { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.toolcard .ti { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.toolcard .ti svg { width: 22px; height: 22px; }
.toolcard h3 { font-size: 16px; }
.toolcard p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ---------------- name list (SEO content) ---------------- */
.namelist { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .namelist.cols { grid-template-columns: 1fr 1fr; } }

/* value props / steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; counter-reset: step; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step .num { font-family: var(--fs-display); font-weight: 700; font-size: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { font-size: 16px; }
.step p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

/* contributors / leaderboard reuse .lb-item */

/* ---------------- FAQ accordion ---------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: 15px; text-align: left; color: var(--text); }
.faq-q .qi { margin-left: auto; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); transition: transform .25s; }
.faq-q .qi svg { width: 18px; height: 18px; }
.faq-item.open .qi { transform: rotate(45deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 18px 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------------- contribute form panel ---------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
@media (min-width: 680px) { .panel { padding: 28px; } }

/* sort/filter sticky bar */
.toolbar { position: sticky; top: 62px; z-index: 25; background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0; margin: 0 calc(-1 * var(--pad)); border-bottom: 1px solid var(--border-2); }
.toolbar-inner { padding: 0 var(--pad); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------- footer ---------------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 56px; }
.footer-inner { padding: 44px 0 30px; display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h4 { font-family: var(--fs-display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-2); font-weight: 550; }
.footer-links a:hover { color: var(--brand); }
.footer-about p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: 12px; max-width: 38ch; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* tag strip in name cards */
.nick-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* section spacing */
.sec { margin-top: 46px; }
.sec-lg { margin-top: 60px; }

/* big section title */
.h2 { font-family: var(--fs-display); font-size: clamp(22px, 5vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.h2-sub { color: var(--text-2); font-size: 15px; margin-top: 8px; line-height: 1.6; max-width: 58ch; }

/* banner for category */
.catbanner { border-radius: var(--r-xl); padding: 30px 26px; color: #fff; position: relative; overflow: hidden; }
.catbanner h1 { color: #fff; font-size: clamp(28px, 7vw, 44px); letter-spacing: -.03em; line-height: 1.05; }
.catbanner .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.catbanner .meta .m b { display: block; font-family: var(--fs-display); font-size: 22px; font-weight: 700; }
.catbanner .meta .m span { font-size: 12px; opacity: .85; font-weight: 600; }
.catbanner .blob { position: absolute; border-radius: 99px; background: rgba(255,255,255,.13); }

/* skip link a11y */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 200; }
.skip:focus { left: 0; }

/* inline note */
.note { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--brand-soft); }
.note svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; margin-top: 1px; }
.note p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* prose block for SEO copy */
.prose p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.prose h3 { font-size: 18px; margin: 22px 0 10px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
