/* Nextus category pages - shared stylesheet.
   Tokens and type match the homepage (index.html) exactly. */
:root {
  --cream: #f7f4ec;
  --cream-soft: #efe9da;
  --ink: #1c2420;
  --ink-soft: #52605a;
  --green: #0b4d34;
  --green-soft: #0e5f40;
  --green-wash: rgba(11, 77, 52, 0.07);
  --line: rgba(11, 77, 52, 0.14);
  --card-bg: #ffffff;
  --shadow: 0 10px 30px rgba(28, 36, 32, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--cream); }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; top: -20%; right: -15%;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(11,77,52,0.08) 0%, rgba(11,77,52,0) 70%);
  z-index: 0; pointer-events: none;
}
body::after {
  content: ""; position: fixed; bottom: -25%; left: -15%;
  width: 55vw; height: 55vw; max-width: 650px; max-height: 650px;
  background: radial-gradient(circle, rgba(11,77,52,0.06) 0%, rgba(11,77,52,0) 70%);
  z-index: 0; pointer-events: none;
}

.page { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 40px 20px 40px; }

h1, h2, h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; margin: 0; letter-spacing: -0.01em; }

a { color: var(--green-soft); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 18px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(11,77,52,0.25); }
.brand-mark span { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 20px; color: #f7f4ec; }
.brand-name { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }

.crumbs { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 38px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.crumbs span { margin: 0 4px; opacity: .6; }

/* ---------- Hero ---------- */
.cat-hero { text-align: center; padding: 0 8px 44px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-wash); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.cat-hero h1 { font-size: clamp(32px, 6.4vw, 54px); font-weight: 800; line-height: 1.08; text-wrap: balance; }
.cat-intro { max-width: 600px; margin: 18px auto 0; font-size: clamp(16px, 2.2vw, 18.5px); color: var(--ink-soft); text-wrap: balance; }

/* ---------- Blocks ---------- */
.block { padding: 44px 0 8px; }
.block h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.block-sub { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
.block h2 + .tools, .block h2 + .chips { margin-top: 20px; }

ul.tools, ul.articles, ul.chips { list-style: none; margin: 0; padding: 0; }

/* ---------- Tools grid ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.tools li { display: flex; }
a.tool { flex: 1; display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px 18px 16px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
a.tool:hover { transform: translateY(-2px); border-color: var(--green); }
.fav { position: relative; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--green-wash); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fav-letter { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--green); }
.fav img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6px; object-fit: contain; background: #fff; }
.tool-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tool-name { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.partner { font-family: 'Figtree', system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: var(--green-wash); padding: 2px 8px; border-radius: 999px; }
.deal { font-family: 'Figtree', system-ui, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--amber-wash, #fff1d6); padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.tool-line { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.tool-go { flex: 0 0 auto; color: var(--green); font-weight: 700; opacity: .55; line-height: 1.4; }
a.tool:hover .tool-go { opacity: 1; }

/* ---------- Articles ---------- */
.articles { display: grid; gap: 14px; }
a.article { display: block; padding: 18px 20px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
a.article:hover { border-color: var(--green); }
.article-meta { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.article-title { display: block; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; margin-bottom: 6px; text-wrap: balance; }
a.article:hover .article-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.article-sum { display: block; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Other categories ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-block; padding: 8px 15px; border-radius: 999px; background: var(--card-bg); border: 1px solid var(--line); color: var(--green); font-weight: 600; font-size: 14px; text-decoration: none; }
.chips a:hover { background: var(--green-wash); border-color: var(--green); }

/* ---------- Disclosure + footer ---------- */
.disclosure { margin: 48px 0 0; padding: 16px 20px; background: var(--green-wash); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--ink-soft); text-align: center; }
footer { text-align: center; padding-top: 36px; }
.footer-tagline { font-size: 14.5px; margin: 0 auto 14px; }
.footer-tagline a { color: var(--green); font-weight: 600; text-decoration: none; }
.footer-tagline a:hover { text-decoration: underline; }
.footer-meta { font-size: 12.5px; color: var(--ink-soft); opacity: .75; margin: 0; }

@media (max-width: 480px) {
  .page { padding: 28px 16px 32px; }
  .tools { grid-template-columns: 1fr; }
  a.article { padding: 16px; }
  .block { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  a.tool, a.article, .chips a { transition: none; }
  a.tool:hover { transform: none; }
}
