/*
Theme Name: Daily AI Tools
Theme URI: https://dailyaitools.site
Author: Daily AI Tools
Author URI: https://dailyaitools.site
Description: Light Futurepedia-style store theme for Daily AI Tools — slim sticky header, trending / popular / new tool grid, redeem-code cards, latest reviews and full article reviews with a table of contents. Built to match the v3 Next.js design (Inter, emerald #10B981, near-black #111111).
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dailyaitools
Tags: blog, news, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* Daily AI Tools — Futurepedia-style light directory theme.
   Light white background, soft grey sections, black text,
   emerald #10B981 accents only. No dark hero, no dark sections,
   no blue, no violet. Adapted from the v3 Next.js globals.css. */
:root {
  --ink: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #eef0f2;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --card: #ffffff;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-deep: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-line: #a7f3d0;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---------- Slim white sticky header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img.logo-word { height: 32px; width: auto; display: block; }
.brand img.logo-icon { height: 36px; width: 36px; border-radius: 9px; display: none; }
.main-nav { display: flex; gap: 2px; margin-left: 4px; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  color: var(--text); font-weight: 600; font-size: 14.5px;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--emerald-deep); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { background: var(--emerald-soft); color: var(--emerald-deep); }
.header-cta { flex-shrink: 0; }

/* ---------- Hamburger menu (full-height slide-in drawer, right side) ---------- */
.hamburger-wrap { margin-left: auto; position: relative; flex-shrink: 0; }
.hamburger-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.hamburger-btn:hover { background: var(--bg-soft); border-color: var(--emerald); color: var(--emerald-deep); }
.hamburger-btn:focus-visible { outline: 3px solid #d1fae5; border-color: var(--emerald); }
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(360px, 88vw); height: 100dvh;
  background: #fff; box-shadow: -12px 0 40px rgba(17, 24, 39, 0.18);
  transform: translateX(105%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 20px 28px;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 14px; flex-shrink: 0;
}
.drawer-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.drawer-brand:hover { text-decoration: none; }
.drawer-brand img { width: 38px; height: 38px; border-radius: 9px; display: block; }
.drawer-brand strong { color: var(--ink); font-size: 19px; letter-spacing: -0.4px; white-space: nowrap; }
.drawer-brand strong em { font-style: normal; color: var(--emerald-dark); }
.drawer-close {
  border: none; background: var(--bg-soft); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); padding: 0; font-family: inherit;
}
.drawer-close:hover { background: var(--line-soft); }
.drawer-search {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
  padding: 11px 16px; margin-bottom: 18px; color: var(--muted);
}
.drawer-search:focus-within { border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 3px #d1fae5; }
.drawer-search svg { flex-shrink: 0; }
.drawer-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; font-family: inherit; color: var(--ink); padding: 0;
}
.drawer-search button { border: none; background: transparent; cursor: pointer; color: var(--emerald-dark); font-weight: 700; font-size: 14px; font-family: inherit; padding: 0; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-link-icon { flex: none; width: 20px; height: 20px; color: var(--muted); display: inline-flex; }
.drawer-link-icon svg { width: 20px; height: 20px; display: block; }
.drawer-nav a:hover .drawer-link-icon { color: var(--emerald-deep); }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 6px; border-radius: 10px;
  color: var(--ink); font-weight: 600; font-size: 16px;
}
.drawer-nav a:hover { background: var(--emerald-soft); color: var(--emerald-deep); text-decoration: none; }
.drawer-nav .current-menu-item > a { background: var(--emerald-soft); color: var(--emerald-deep); }
.drawer-divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: none; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 999px;
  background: var(--emerald); color: #fff;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; background: var(--emerald-dark); box-shadow: var(--shadow-md); }
.btn-emerald { background: var(--emerald); }
.btn-emerald:hover { background: var(--emerald-dark); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-deep); background: #fff; }
.btn-light { background: var(--emerald-soft); color: var(--emerald-deep); }
.btn-light:hover { background: #d1fae5; color: var(--emerald-deep); }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero (bigger, professional, light) ---------- */
.store-head { padding: 68px 0 14px; text-align: center; }
.store-head h1 { font-size: 46px; line-height: 1.12; margin: 0 0 14px; letter-spacing: -1.2px; color: var(--emerald); font-weight: 800; }
.store-head h1 span { color: var(--emerald-dark); }
.hero-tagline { margin: 0 auto 10px; color: var(--ink); font-size: 23px; font-weight: 700; max-width: 720px; line-height: 1.4; letter-spacing: -0.4px; }
.hero-desc { margin: 0 auto; color: var(--muted); font-size: 17px; max-width: 680px; line-height: 1.6; }
.store-head .store-count { color: var(--emerald-deep); font-weight: 700; }

/* ---------- Filter bar (Futurepedia style) ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin: 22px 0 18px; box-shadow: var(--shadow-sm);
}
.filter-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.filter-tab {
  padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  color: var(--muted); white-space: nowrap;
}
.filter-tab:hover { color: var(--ink); text-decoration: none; }
.filter-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.filter-note { margin-left: auto; font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding-top: 40px; padding-bottom: 8px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding-top: 40px; padding-bottom: 40px; margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-kicker {
  display: block; color: var(--emerald-dark); font-weight: 800; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px;
}
.section-head h2 { font-size: 24px; margin: 0; letter-spacing: -0.5px; line-height: 1.25; color: var(--ink); }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 14.5px; max-width: 560px; }
.view-all { font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--emerald-dark); }

/* ---------- Tool grid + cards (Futurepedia style) ---------- */
.cards, .store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.tool-card:hover { box-shadow: var(--shadow-md); border-color: #d1d5db; transform: translateY(-2px); }
.tool-card:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.tool-card:hover a { text-decoration: none; }
.tool-top { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 0; }
.tool-logo {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
}
.tool-logo.has-logo { background: #fff; border: 1px solid var(--line); padding: 7px; }
.tool-logo.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tool-logo.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 26px; }
.tool-logo.lg.has-logo { padding: 10px; }
.tool-name { min-width: 0; flex: 1; }
.tool-name h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.2px; display: flex; align-items: center; gap: 5px; }
.tool-name h3 a { color: var(--ink); }
.tool-name h3 a:hover { color: var(--emerald-deep); }
.verified-badge { display: inline-flex; flex-shrink: 0; width: 17px; height: 17px; color: var(--emerald); }
.verified-badge svg { width: 17px; height: 17px; }
.tool-name .tool-cat { font-size: 13px; color: var(--muted); font-weight: 600; }
.tool-name .tool-cat a { color: var(--muted); }
.tool-body { padding: 10px 18px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tool-body p.tool-desc {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tag { color: #2563EB; font-size: 13px; font-weight: 500; }
.tag:hover { color: #1D4ED8; }
.tool-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  border-top: 1px solid var(--line-soft); margin-top: 12px; padding: 12px 18px;
}
.tool-rating { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.stars { color: var(--amber); font-weight: 700; letter-spacing: 1px; }
.tool-actions { display: flex; gap: 8px; align-items: center; }
.tool-actions .btn { padding: 7px 14px; font-size: 13.5px; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pill { display: inline-block; background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- Category cards & chips ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.cat-card:hover { box-shadow: var(--shadow-md); border-color: #d1d5db; text-decoration: none; }
.cat-icon {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: var(--emerald-soft); color: var(--emerald-deep);
  display: flex; align-items: center; justify-content: center;
}
.cat-icon svg { width: 22px; height: 22px; }
.cat-card h3 { margin: 0 0 2px; font-size: 16px; color: var(--ink); letter-spacing: -0.2px; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cat-count { margin-left: auto; flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: var(--emerald-deep); background: var(--emerald-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------- Directory layout with left sidebar ---------- */
.dir-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-top: 8px; padding-bottom: 48px; align-items: start; }
.dir-sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; }
.side-filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.side-filter h3 { margin: 0 0 10px; font-size: 13px; color: var(--ink); letter-spacing: 0.8px; text-transform: uppercase; }
.side-filter ul { list-style: none; margin: 0; padding: 0; }
.side-filter li { margin-bottom: 2px; }
.side-filter a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 600;
}
.side-filter a:hover { background: var(--bg-soft); color: var(--emerald-deep); text-decoration: none; }
.side-filter a.active { background: var(--emerald-soft); color: var(--emerald-deep); }
.side-filter a .count { font-size: 12px; color: var(--muted); font-weight: 700; }
.dir-main { min-width: 0; }
.dir-main .cards, .dir-main .store-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Redeem codes (light) ---------- */
.code-hero {
  background: var(--emerald-soft); border: 1px solid var(--emerald-line);
  border-radius: 16px; color: var(--ink); padding: 26px 28px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.code-hero h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.4px; color: var(--ink); }
.code-hero p { margin: 0; color: var(--text); font-size: 15px; max-width: 560px; }
.code-hero .btn { flex-shrink: 0; }
.code-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.code-card {
  background: var(--card); border: 1.5px solid var(--emerald-line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.code-card .code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-card .code-head strong { font-size: 16px; color: var(--ink); }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--emerald-deep); }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.code-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 24px; font-weight: 800;
  letter-spacing: 3px; color: var(--ink); margin: 10px 0; word-break: break-all;
}
.code-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.code-box {
  border: 2px dashed var(--emerald); background: var(--emerald-soft); border-radius: 14px;
  padding: 20px; text-align: center; margin: 18px 0;
}
.code-box .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 26px; font-weight: 800; letter-spacing: 3px; margin: 10px 0; word-break: break-all; }
.code-box small { color: var(--muted); }
.copy-btn { cursor: pointer; }
.copy-btn.copied { background: var(--emerald-deep); }
.warning { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 13px 15px; font-size: 14.5px; margin: 14px 0; }
.notice { background: var(--emerald-soft); border: 1px solid var(--emerald-line); border-radius: 12px; padding: 13px 15px; font-size: 14.5px; margin: 14px 0; }

/* ---------- Latest reviews (horizontal rows) ---------- */
.latest-list { display: flex; flex-direction: column; gap: 12px; }
.latest-row {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.latest-row:hover { box-shadow: var(--shadow-md); border-color: #d1d5db; text-decoration: none; }
.latest-row:hover h3 { color: var(--emerald-deep); }
.latest-thumb {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.latest-thumb-logo { background: #fff; border: 1px solid var(--line); padding: 8px; }
.latest-thumb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.latest-row h3 { margin: 0 0 3px; font-size: 16.5px; line-height: 1.35; color: var(--ink); letter-spacing: -0.2px; }
.latest-row p { margin: 0; font-size: 14px; color: var(--muted); }
.latest-row .latest-meta { margin-left: auto; flex-shrink: 0; text-align: right; font-size: 13px; color: var(--muted); }

/* ---------- Newsletter band (light) ---------- */
.newsletter {
  margin: 48px 0 8px; border-radius: 16px; padding: 36px 32px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.newsletter h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.5px; color: var(--ink); }
.newsletter p { margin: 0; color: var(--muted); font-size: 15px; max-width: 520px; }
.newsletter .cta-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Page head ---------- */
.page-head { padding-top: 36px; padding-bottom: 4px; }
.page-head h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.7px; color: var(--ink); }
.page-head p { margin: 0; color: var(--muted); font-size: 16px; max-width: 680px; }
.page-head .page-head-row { display: flex; align-items: flex-start; gap: 16px; }
.page-head .cat-icon { width: 54px; height: 54px; border-radius: 14px; }
.page-head .cat-icon svg { width: 26px; height: 26px; }

/* ---------- Tool detail page (light) ---------- */
.tool-hero {
  padding: 24px 0 0;
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.tool-hero-info { flex: 1; min-width: 0; }
.tool-hero-info h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 10px; letter-spacing: -0.6px; color: var(--ink); }
.tool-hero-info p { margin: 0 0 16px; color: var(--muted); font-size: 15.5px; max-width: 640px; }
.tool-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tool-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.tool-tabs a {
  padding: 10px 16px; font-weight: 700; font-size: 14.5px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tool-tabs a:hover { color: var(--ink); text-decoration: none; }
.tool-tabs a.active { color: var(--emerald-deep); border-bottom-color: var(--emerald); }
.article-hero { padding: 28px 0 0; }
.article-hero h1 { font-size: 32px; line-height: 1.2; margin: 10px 0 12px; letter-spacing: -0.6px; color: var(--ink); }
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding-top: 24px; padding-bottom: 48px; align-items: start; }
.article-body { min-width: 0; overflow-wrap: break-word; }
.article-body table { display: block; overflow-x: auto; max-width: 100%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table { min-width: 560px; }
.article-body h2 { font-size: 21px; margin: 28px 0 12px; letter-spacing: -0.4px; color: var(--ink); font-weight: 700; padding-top: 18px; border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.article-body h2:first-child { border-top: none; padding-top: 0; }
.article-body h3 { font-size: 17px; margin: 20px 0 8px; color: var(--ink); font-weight: 700; }
/* FAQ accordion: questions stay visible, answers open on click, one at a time. */
.faq-accordion { margin: 8px 0 28px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: var(--card); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 18px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-q:hover { color: var(--emerald-deep); }
.faq-q-text { flex: 1; }
.faq-icon { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 9999px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--muted); top: 50%; left: 50%; }
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item.open .faq-icon { border-color: var(--emerald); }
.faq-item.open .faq-icon::before { background: var(--emerald-deep); }
.faq-a { display: none; padding: 0 18px 16px; color: var(--text); }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.open .faq-a { display: block; }
/* ---------- Table of Contents (inside review articles) ---------- */
.toc {
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 4px 0 26px;
}
.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.toc-head h3 { font-size: 20px; margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -0.3px; }
.toc-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.toc-toggle:hover { border-color: var(--emerald); color: var(--emerald-deep); background: var(--emerald-soft); }
.toc-toggle:focus-visible { outline: 3px solid #d1fae5; border-color: var(--emerald); }
.toc-toggle .toc-chevron { transition: transform 0.2s ease; }
.toc.collapsed .toc-toggle .toc-chevron { transform: rotate(-90deg); }
.toc ol { margin: 14px 0 0; padding-left: 24px; }
.toc.collapsed ol { display: none; }
.toc li { margin: 8px 0; font-size: 16px; }
.toc li::marker { color: var(--ink); font-weight: 600; }
.toc a { color: var(--emerald); font-weight: 600; }
.toc a:hover { color: var(--emerald-deep); text-decoration: underline; }

.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 22px; }
.article-body li { margin-bottom: 7px; }
.article-body li::marker { color: var(--emerald-dark); font-weight: 700; }
.article-body a { font-weight: 600; }
.article-body blockquote {
  margin: 16px 0; padding: 12px 18px;
  border-left: 4px solid var(--emerald); background: var(--emerald-soft);
  border-radius: 0 12px 12px 0; color: var(--text);
}
.article-body blockquote p { margin: 0; }
.article-body img { border-radius: 12px; height: auto; }
.article-body figure { margin: 0 0 16px; }
.article-body figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.article-body pre {
  background: var(--ink); color: #e5e7eb; border-radius: 12px;
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.article-body code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.88em; }
.article-body pre code { background: transparent; border: none; padding: 0; color: inherit; }
/* Plain tables from imported articles (no .pricing class on them). */
.article-body table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0; font-size: 14.5px; width: 100%; }
.article-body table th, .article-body table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article-body table tr:last-child td { border-bottom: none; }
.article-body table th { background: var(--bg-soft); color: var(--ink); font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; }
.article-body table tr:nth-child(even) td { background: #fafbfb; }
.sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.side-box { padding: 0; }
.side-box + .side-box { border-top: 1px solid var(--line); padding-top: 18px; }
.side-box h3 { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.side-box ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.side-box li { margin-bottom: 8px; }
.quick-facts { display: flex; flex-direction: column; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.fact-row:last-child { border-bottom: none; }
.fact-row span:first-child { color: var(--muted); }
.fact-row span:last-child, .fact-row strong:last-child { font-weight: 700; color: var(--ink); text-align: right; }
.alt-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.alt-mini:last-child { border-bottom: none; padding-bottom: 0; }
.alt-mini:hover { text-decoration: none; }
.alt-mini:hover strong { color: var(--emerald-deep); }
.alt-mini .tool-logo { width: 44px; height: 44px; border-radius: 11px; font-size: 16px; }
.alt-mini strong { display: block; font-size: 14.5px; color: var(--ink); }
.alt-mini span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.pros-cons div { border-radius: 12px; padding: 16px 18px; }
.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons { background: #fef2f2; border: 1px solid #fecaca; }
.pros-cons h4 { margin: 0 0 8px; font-size: 16px; }
.pros h4::before { content: "+  "; color: var(--emerald-dark); font-weight: 800; }
.cons h4::before { content: "–  "; color: var(--red); font-weight: 800; }
.pros-cons ul { margin: 0; padding-left: 18px; }
table.pricing { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.pricing th, table.pricing td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.pricing tr:last-child td { border-bottom: none; }
table.pricing th { background: var(--bg-soft); color: var(--ink); font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; }
table.pricing tr:nth-child(even) td { background: #fafbfb; }
.verdict-box {
  background: var(--emerald-soft); border: 1px solid var(--emerald-line);
  border-left: 4px solid var(--emerald); border-radius: 12px; padding: 16px 18px; margin: 18px 0;
}
.verdict-box p { margin: 0; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 15px; padding: 14px 18px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--emerald-dark); font-size: 20px; font-weight: 800; flex-shrink: 0; }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--emerald-soft); }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }
.author-box { display: flex; gap: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 28px; align-items: center; }
.author-box img { width: 52px; height: 52px; border-radius: 50%; }
.author-box strong { display: block; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 14px; max-width: 860px; }
.form-grid label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px #d1fae5; }
.form-grid textarea { min-height: 120px; }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); margin-top: 64px; padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand strong { color: var(--ink); font-size: 18px; letter-spacing: -0.4px; }
.footer-brand strong em { font-style: normal; color: var(--emerald-dark); }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink); letter-spacing: 0.6px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 14.5px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--emerald-deep); text-decoration: none; }
.site-footer p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin: 0 0 14px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9999px; color: var(--muted); }
.footer-social a:hover { color: var(--emerald-deep); border-color: var(--emerald-deep); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 16px 0;
  font-size: 13.5px; color: var(--muted-2); text-align: center;
}

/* ---------- Legal pages ---------- */
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 820px; margin: 28px auto 48px; box-shadow: var(--shadow-sm); }
.legal h1 { font-size: 28px; margin: 0 0 8px; color: var(--ink); }
.legal h2 { font-size: 20px; margin: 26px 0 8px; color: var(--ink); }
.legal p { color: var(--text); }
.legal ul, .legal ol { color: var(--text); }

/* ---------- Search form (big, light) ---------- */
.hero-search { display: flex; gap: 8px; max-width: 620px; margin: 22px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); }
.hero-search input {
  flex: 1; border: none; border-radius: 999px; padding: 11px 16px;
  font-size: 15px; outline: none; font-family: inherit; min-width: 0; background: transparent;
}
.hero-search .btn { flex-shrink: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 32px 0 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  color: var(--text); font-weight: 700; font-size: 14px;
}
.pagination a.page-numbers:hover { border-color: var(--emerald); color: var(--emerald-deep); text-decoration: none; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald); text-decoration: underline; }
.breadcrumbs span[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- WordPress core classes ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; border-radius: 8px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important; clip-path: none; color: var(--emerald-deep);
  display: block; font-size: 14px; font-weight: 700; height: auto;
  left: 5px; line-height: normal; padding: 12px 18px; text-decoration: none;
  top: 5px; width: auto; z-index: 100000;
}
.alignleft { float: left; margin: 0 18px 12px 0; }
.alignright { float: right; margin: 0 0 12px 18px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; margin-bottom: 14px; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky { position: relative; }
.gallery-caption { font-size: 13.5px; color: var(--muted); }
.bypostauthor { position: relative; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .store-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .dir-main .cards, .dir-main .store-grid { grid-template-columns: 1fr 1fr; }
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar { position: static; }
  .article-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .code-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .brand img.logo-word { display: none; }
  .brand img.logo-icon { display: block; }
  .pros-cons { grid-template-columns: 1fr; }
  .filter-note { margin-left: 0; }
}
@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .legal { margin-left: 16px; margin-right: 16px; padding: 24px 18px; }
  .cards, .store-grid, .cat-grid, .dir-main .cards, .dir-main .store-grid { grid-template-columns: 1fr; }
  .store-head { padding: 46px 0 10px; }
  .store-head h1 { font-size: 32px; }
  .hero-tagline { font-size: 19px; }
  .hero-desc { font-size: 15px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-head h2 { font-size: 21px; }
  .newsletter { padding: 26px 20px; }
  .newsletter .cta-actions { margin-left: 0; }
  .latest-row { flex-wrap: wrap; }
  .latest-row .latest-meta { margin-left: 0; text-align: left; }
  .tool-foot { flex-wrap: wrap; }
  .hero-search { flex-direction: column; border-radius: 16px; }
  .hero-search input { width: 100%; }
}

/* Safety net: no page section may ever wipe out .container's side padding. */
.container { padding-left: 22px; padding-right: 22px; }
