/* ============================================================
   Category / Tag archive — extends styles.css
   ============================================================ */

body { background: var(--surface); }

/* ---------- Breadcrumb ---------- */
.crumb {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
}
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; align-items: center; }
.crumb a { color: var(--ink-3); font-weight: 500; }
.crumb a:hover { color: var(--brand-purple); }
.crumb .sep { color: var(--ink-4); }
.crumb [aria-current] { color: var(--ink-1); font-weight: 600; }

/* ---------- Category header ---------- */
.cat-head {
  padding: 56px 0 44px;
  background:
    radial-gradient(ellipse 680px 320px at 18% -30%, rgba(101, 46, 186, 0.12), transparent 62%),
    radial-gradient(ellipse 420px 220px at 95% 130%, rgba(255, 75, 147, 0.07), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.cat-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-purple);
}
.cat-head .kicker .ic {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft); color: var(--brand-purple);
  display: inline-flex; align-items: center; justify-content: center;
}
.cat-head .kicker .ic svg { width: 15px; height: 15px; }
.cat-head h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 14px 0 14px;
}
.cat-head .desc {
  font-size: 17px; color: var(--ink-3);
  max-width: 680px; line-height: 1.6; margin: 0 0 22px;
}
.cat-head .stat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4); font-weight: 500;
}
.cat-head .stat strong { color: var(--ink-1); }

/* ---------- Subcategory pills ---------- */
.subcats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.subcat {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: all .15s ease;
}
.subcat:hover { border-color: var(--brand-purple); color: var(--brand-purple); transform: translateY(-1px); }
.subcat.active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.subcat .count {
  background: var(--surface-2);
  color: var(--ink-4);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px; font-weight: 700;
}
.subcat.active .count { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------- Layout ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 991px) { .archive-grid { grid-template-columns: 1fr; } }

/* ---------- Featured post ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--surface);
  transition: box-shadow .2s ease, transform .2s ease;
}
.featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured .thumb {
  min-height: 280px;
  background: linear-gradient(135deg, #2a1860, #4c238b 60%, #652eba);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.featured .thumb .glyph {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.9);
}
.featured .thumb .glyph svg { width: 80px; height: 80px; }
.featured .body { padding: 32px 34px; display: flex; flex-direction: column; }
.featured .pin {
  align-self: flex-start;
  background: var(--brand-pink); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}
.featured h2 {
  font-size: 27px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em;
}
.featured h2 a { color: var(--ink-1); }
.featured h2 a:hover { color: var(--brand-purple); }
.featured p { font-size: 15px; color: var(--ink-3); line-height: 1.6; margin: 0 0 20px; flex: 1; }

@media (max-width: 767px) { .featured { grid-template-columns: 1fr; } .featured .thumb { min-height: 180px; } }

/* ---------- Post meta ---------- */
.meta-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-4);
}
.meta-row .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--brand-purple);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; font-family: var(--font-display);
}
.meta-row strong { color: var(--ink-2); font-weight: 600; }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* ---------- Post grid ---------- */
.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 575px) { .posts { grid-template-columns: 1fr; } }

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand-purple) 28%, var(--line)); }
.post-card .thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.post-card .thumb svg { width: 46px; height: 46px; color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.post-card .thumb .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(10,14,28,0.65); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
/* thumb color variants */
.thumb.v1 { background: linear-gradient(135deg, #4c238b, #652eba); }
.thumb.v2 { background: linear-gradient(135deg, #1a0e3a, #4c238b); }
.thumb.v3 { background: linear-gradient(135deg, #652eba, #a23b9e); }
.thumb.v4 { background: linear-gradient(135deg, #b91c6e, #ff4b93); }
.thumb.v5 { background: linear-gradient(135deg, #2a1860, #652eba); }
.thumb.v6 { background: linear-gradient(135deg, #4c238b, #ff4b93); }

.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 18px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
.post-card h3 a { color: var(--ink-1); }
.post-card h3 a:hover { color: var(--brand-purple); }
.post-card p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 0 0 16px; flex: 1; }

/* ---------- Pagination ---------- */
.pager {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 44px;
}
.pager a, .pager span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0 12px;
}
.pager a:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.pager .current { background: var(--brand-gradient); color: #fff; border-color: transparent; }
.pager .gap { border: 0; color: var(--ink-4); }

/* ---------- Sidebar ---------- */
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}
.widget h4 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-4);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.widget h4 .ic { color: var(--brand-purple); display: inline-flex; }
.widget h4 .ic svg { width: 15px; height: 15px; }

/* widget: search */
.w-search { display: flex; gap: 8px; }
.w-search input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 14px; background: var(--surface); color: var(--ink-1); outline: none;
}
.w-search input:focus { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(101,46,186,0.1); }
.w-search button {
  background: var(--ink-1); color: #fff; border: 0; border-radius: 9px;
  width: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.w-search button:hover { background: var(--brand-purple); }
.w-search button svg { width: 17px; height: 17px; }

/* widget: popular posts */
.w-post { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); text-decoration: none; }
.w-post:first-of-type { border-top: 0; padding-top: 0; }
.w-post .n {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  color: var(--ink-4); flex: none; width: 20px;
}
.w-post h5 { font-size: 13.5px; font-weight: 600; color: var(--ink-1); margin: 0 0 3px; line-height: 1.35; }
.w-post:hover h5 { color: var(--brand-purple); }
.w-post .m { font-size: 11.5px; color: var(--ink-4); }

/* widget: categories list */
.w-cat { list-style: none; margin: 0; padding: 0; }
.w-cat li { border-top: 1px solid var(--line-2); }
.w-cat li:first-child { border-top: 0; }
.w-cat a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.w-cat a:hover { color: var(--brand-purple); }
.w-cat .count { font-size: 12px; color: var(--ink-4); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-weight: 600; }

/* widget: tags */
.w-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.w-tag {
  font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 7px; padding: 5px 11px; text-decoration: none;
}
.w-tag:hover { background: var(--accent-soft); color: var(--brand-purple); border-color: var(--brand-purple); }
.w-tag .h { color: var(--ink-4); }

/* widget: CTA (download) */
.w-cta {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.w-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 120%, rgba(255,75,147,0.5), transparent 55%);
}
.w-cta > * { position: relative; }
.w-cta .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.w-cta .ic svg { width: 24px; height: 24px; }
.w-cta h4 { color: #fff; text-transform: none; letter-spacing: -0.01em; font-size: 18px; justify-content: center; margin-bottom: 6px; }
.w-cta p { font-size: 13px; color: rgba(255,255,255,0.88); margin: 0 0 16px; line-height: 1.5; }
.w-cta .btn { background: #fff; color: var(--brand-purple); border: 0; font-weight: 600; width: 100%; }
.w-cta .btn:hover { background: #fff; transform: translateY(-1px); }
.w-cta .note { font-size: 11px; color: rgba(255,255,255,0.7); margin: 10px 0 0; }

/* widget: newsletter */
.w-news input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px;
  padding: 11px 13px; font-size: 14px; background: var(--surface); color: var(--ink-1);
  outline: none; margin-bottom: 10px;
}
.w-news input:focus { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(101,46,186,0.1); }
.w-news button { width: 100%; }
.w-news .ok { display: none; font-size: 13px; color: var(--success); font-weight: 600; text-align: center; margin: 6px 0 0; }
.w-news.done input, .w-news.done button { display: none; }
.w-news.done .ok { display: block; }
.w-news .privacy { font-size: 11px; color: var(--ink-4); margin: 10px 0 0; text-align: center; }

/* ---------- Marketing band ---------- */
.mkt-band {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 767px) { .mkt-grid { grid-template-columns: 1fr; } }
.mkt-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; text-align: center;
}
.mkt-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--brand-purple);
  display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.mkt-card .ic svg { width: 24px; height: 24px; }
.mkt-card h3 { font-size: 17px; margin: 0 0 6px; }
.mkt-card p { font-size: 13.5px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.55; }
.mkt-card a { font-size: 13.5px; font-weight: 600; color: var(--brand-purple); }

@media (max-width: 991px) { .side { position: static; } }

/* ---------- Linktree-style topic links ---------- */
.linktree { display: flex; flex-direction: column; gap: 10px; }
.lt-link {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.lt-link:hover {
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(101, 46, 186, 0.12);
}
.lt-link .ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-soft); color: var(--brand-purple);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.lt-link .ic svg { width: 18px; height: 18px; }
.lt-link .body { flex: 1; min-width: 0; }
.lt-link .t { font-size: 14px; font-weight: 600; color: var(--ink-1); display: block; line-height: 1.25; }
.lt-link .s { font-size: 12px; color: var(--ink-4); }
.lt-link .cnt {
  font-size: 11px; font-weight: 700; color: var(--ink-4);
  background: var(--surface-2); border-radius: 999px; padding: 2px 9px; flex: none;
}
.lt-link .arr { color: var(--ink-4); flex: none; transition: transform .15s ease, color .15s ease; }
.lt-link:hover .arr { color: var(--brand-purple); transform: translateX(2px); }
.lt-link .arr svg { width: 16px; height: 16px; }
/* featured linktree row */
.lt-link.feat {
  background: linear-gradient(135deg, rgba(101,46,186,0.07), rgba(255,75,147,0.05));
  border-color: rgba(101,46,186,0.25);
}
.lt-link.feat .ic { background: var(--brand-gradient); color: #fff; }

/* Expandable linktree group */
.lt-group { display: flex; flex-direction: column; }
.lt-toggle { cursor: pointer; width: 100%; background: var(--surface); text-align: left; font: inherit; }
.lt-toggle .chev { color: var(--ink-4); flex: none; transition: transform .2s ease; }
.lt-toggle .chev svg { width: 16px; height: 16px; display: block; }
.lt-group.open > .lt-toggle {
  border-color: var(--brand-purple);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  background: rgba(101,46,186,0.04);
}
.lt-group.open > .lt-toggle .chev { transform: rotate(180deg); color: var(--brand-purple); }
.lt-children {
  display: none;
  flex-direction: column;
  border: 1.5px solid var(--brand-purple);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--surface-2);
  padding: 6px;
  margin-top: -1px;
}
.lt-group.open > .lt-children { display: flex; }
.lt-child {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  line-height: 1.35;
  transition: background .12s ease, color .12s ease;
}
.lt-child:hover { background: var(--surface); color: var(--brand-purple); }
.lt-child .b {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-4); flex: none;
}
.lt-child:hover .b { background: var(--brand-purple); }
.lt-child.viewall {
  color: var(--brand-purple); font-weight: 600;
  border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 11px;
}
.lt-child.viewall .b { display: none; }
.lt-child.viewall svg { width: 13px; height: 13px; margin-left: auto; }

/* ---------- Trust stats widget ---------- */
.w-trust .trust-rating {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.w-trust .big {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  color: var(--ink-1); line-height: 1; letter-spacing: -0.02em;
}
.w-trust .stars { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.w-trust .src { font-size: 11.5px; color: var(--ink-4); margin-top: 2px; }
.w-trust .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-trust .stat-box { text-align: left; }
.w-trust .stat-box .v { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink-1); }
.w-trust .stat-box .l { font-size: 11.5px; color: var(--ink-4); line-height: 1.3; }
.w-trust .badges { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.w-trust .badge-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px;
}
.w-trust .badge-pill svg { width: 12px; height: 12px; color: var(--success); }

/* ---------- Benefits checklist ---------- */
.w-benefits ul { list-style: none; margin: 0; padding: 0; }
.w-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
  padding: 7px 0;
}
.w-benefits li .ck {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(22,163,74,0.12); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px;
}
.w-benefits li .ck svg { width: 11px; height: 11px; stroke-width: 3; }
.w-benefits li strong { color: var(--ink-1); }

/* ---------- Testimonial widget ---------- */
.w-quote {
  background: var(--ink-1);
  border: 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.w-quote::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(101,46,186,0.5), transparent 55%),
              radial-gradient(circle at 0% 120%, rgba(255,75,147,0.3), transparent 55%);
}
.w-quote > * { position: relative; }
.w-quote .qstars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.w-quote blockquote { font-size: 14.5px; line-height: 1.55; font-weight: 500; margin: 0 0 14px; color: #fff; }
.w-quote .qwho { display: flex; align-items: center; gap: 10px; }
.w-quote .qav {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}
.w-quote .qwho strong { color: #fff; font-size: 13px; display: block; }
.w-quote .qwho span { color: rgba(255,255,255,0.7); font-size: 11.5px; }

/* ---------- Guarantee / risk-reversal ---------- */
.w-guarantee {
  display: flex; align-items: center; gap: 14px;
  background: rgba(22,163,74,0.06);
  border: 1px solid rgba(22,163,74,0.25);
}
.w-guarantee .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.w-guarantee .ic svg { width: 22px; height: 22px; }
.w-guarantee h5 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-1); margin: 0 0 2px; }
.w-guarantee p { font-size: 12px; color: var(--ink-3); margin: 0; line-height: 1.45; }

.category-page {
    padding: 0px !important;
    margin: 0px !important;
}