/*
Theme Name: PakTash
Theme URI: https://paktash.com/
Author: PakTash Editorial
Description: Fast Pakistan-focused card and board game app directory theme using local keyword CSV data.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: paktash
*/

:root {
  --bg: #f4f2ed;
  --paper: #ffffff;
  --ink: #1a1e24;
  --muted: #6b7683;
  --line: #e2dfda;
  --soft: #f0ede8;
  --green: #0d7a59;
  --green-dark: #07543f;
  --green-glow: rgba(13, 122, 89, .12);
  --red: #b3423d;
  --red-soft: #fef0ef;
  --blue: #285f9f;
  --gold: #b7831b;
  --gold-light: #fdf6e8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, .10);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--green-dark); }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-row {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green-dark);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #fff, #f0faf5);
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}
.brand span { font-size: 16px; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}
.nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #3d4855;
  font-weight: 600;
  transition: background .12s, color .12s;
}
.nav a:hover { background: var(--soft); color: var(--green-dark); }

/* ===== HERO ===== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13, 122, 89, .08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(40, 95, 159, .06) 0%, transparent 50%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 28px;
  align-items: stretch;
  padding: 32px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h1 {
  max-width: 800px;
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
}
.lead {
  max-width: 760px;
  margin: 0;
  color: #4a5663;
  font-size: 17px;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.btn:hover {
  border-color: #c5c0b8;
  background: var(--soft);
  color: var(--ink);
}
.btn.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}

/* ===== HERO PANEL ===== */
.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px;
}
.panel-title {
  margin: 0 0 12px;
  font-size: 14px;
  color: #4a5663;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.term-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.term-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .12s;
}
.term-list li:hover { border-color: var(--green); }
.term-main strong { display: block; font-size: 14px; }
.term-main span { color: var(--muted); font-size: 12px; }
.volume {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 22px 0 0;
}
.stat {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.stat strong { display: block; font-size: 22px; line-height: 1.1; color: var(--green-dark); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }

/* ===== SECTION ===== */
.section { padding: 32px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section h2 { margin: 0; font-size: clamp(22px, 2.8vw, 32px); font-weight: 800; }
.section-note { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 680px; }

/* ===== APP CARDS ===== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.app-card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.app-card h3 a:hover {
  color: var(--green);
}
.app-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.app-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.app-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.app-icon img,
.app-icon .app-icon-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--red);
  background: linear-gradient(145deg, #fff, #f0faf5);
}
.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  color: transparent;
}
.app-card h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.app-card-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.app-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.app-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: #3d4855;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.app-tag.green { border-color: rgba(13, 122, 89, .25); background: #edf7f3; color: var(--green-dark); }
.app-tag.red { border-color: rgba(179, 66, 61, .25); background: #fef0ef; color: var(--red); }
.app-tag.gold { border-color: rgba(183, 131, 27, .30); background: #fdf6e8; color: #76520d; }
.app-tag.blue { border-color: rgba(40, 95, 159, .25); background: #eef4fa; color: var(--blue); }
.app-card-details .app-tag,
.app-card-details a { position: relative; z-index: 1; }
.star { color: var(--gold); letter-spacing: -1px; }

/* ===== CATEGORY CARDS ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.cat-card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.cat-card h3 a:hover {
  color: var(--green);
}
.cat-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cat-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.cat-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #fff, #f8f6f3);
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 1px 1px 0 var(--gold);
}
.cat-card h3 { margin: 0 0 1px; font-size: 15px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0 0;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li+li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7683'%3E%3Cpath d='M6.5 3.5L10 8l-3.5 4.5' stroke='%236b7683' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  margin: 0 4px;
  opacity: .5;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 3px;
}
.breadcrumb a:hover {
  color: var(--green);
  background: rgba(13, 122, 89, .08);
}
.breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 700;
}

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.data-table td a { font-weight: 600; }
.data-table th {
  background: var(--soft);
  color: #3d4855;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.data-table tr:last-child td { border-bottom: 0; }
.mobile-stack { overflow-x: auto; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== INTENT LAYOUT ===== */
.intent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  gap: 20px;
}
.notice {
  background: var(--gold-light);
  border: 1px solid #e7c776;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px;
}
.notice strong { display: block; margin-bottom: 6px; }
.notice code { font-size: 13px; word-break: break-all; }
.notice-red {
  background: var(--red-soft);
  border-color: #e7a8a4;
  border-left-color: var(--red);
}
.notice-red strong { color: var(--red); }

/* ===== FAQ ===== */
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .12s;
}
.faq-list details[open] { border-color: var(--green); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.faq-list p { margin: 10px 0 0; color: #4a5663; font-size: 15px; line-height: 1.5; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 40px;
  padding: 32px 0;
  background: #17201e;
  color: #dce6e2;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}
.footer-grid p { margin: 6px 0 0; color: #b9c7c2; font-size: 14px; line-height: 1.5; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-links a { color: #dce6e2; font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: #fff; }

/* ===== PAGE CONTENT ===== */
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid {
  display: grid;
  gap: 14px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card h2 { margin: 0 0 10px; font-size: 18px; }
.card h2 small { font-weight: 400; color: var(--muted); font-size: 14px; }
.card p { margin: 0; }
.meta { color: var(--muted); font-size: 14px; }
.checklist { margin-bottom: 20px; }
.checklist-items {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.checklist-items li {
  padding: 10px 14px;
  background: #fef8f8;
  border: 1px solid #f0cecd;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.4;
}
.mark { color: var(--red); margin-right: 6px; font-weight: 800; }
.hub-page, .safety-page, .guide-page { max-width: none !important; }
.app-review.cash-watch { border-left: 4px solid var(--red); }
.archive-list { display: grid; gap: 14px; }
.post-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .12s, box-shadow .12s;
}
.post-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.post-card h2 { margin: 0 0 6px; font-size: 20px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--green); }
.content { padding: 28px 0; }
.content article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.content article.hub-page,
.content article.safety-page,
.content article.guide-page {
  max-width: none;
  padding: 28px;
}
.content article > h1 { margin-bottom: 16px; }
.content article > .lead { margin-bottom: 20px; }

/* ===== PILLAR PAGE ===== */
.pillar-map { margin: 28px 0; }
.pillar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pillar-links li:last-child { border-bottom: 0; }
.pillar-desc { color: var(--muted); font-size: 14px; flex: 1; min-width: 200px; }

/* ===== SINGLE APP PAGE ===== */
.app-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.app-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.app-cta-bar .btn { flex: 0 1 auto; }


/* ===== PAGINATION ===== */
.pagination,
.navigation.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 28px;
  padding: 20px 0;
}
.pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .12s;
}
.pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.pagination .page-numbers:hover:not(.current):not(.dots),
.navigation.pagination .page-numbers:hover:not(.current):not(.dots) {
  background: var(--soft);
  border-color: var(--green);
}

/* ===== SEARCH ===== */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 20px 0;
}
.search-form input[type="search"] {
  flex: 1;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.search-form button {
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s;
}
.search-form button:hover {
  background: var(--green-dark);
}

/* ===== MODAL (Privacy / Disclaimer / About) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}
.modal-box h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
}
.modal-box p,
.modal-box li {
  font-size: 15px;
  color: #4a5663;
  line-height: 1.55;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  transition: all .12s;
}
.modal-close:hover {
  background: var(--soft);
  border-color: var(--red);
  color: var(--red);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 8px;
}
.empty-state p {
  max-width: 400px;
  margin-inline: auto;
}
.app-icon-placeholder {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--red);
  background: linear-gradient(145deg, #fff, #f0faf5);
}

/* ===== FOCUS ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ===== UTILITY ===== */
.no-break { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .wrap { width: min(100% - 20px, var(--max)); }
  .header-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 0; }
  .nav a { flex: 0 0 auto; padding: 6px 8px; font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr; padding: 20px 0; gap: 16px; }
  h1 { font-size: 28px; margin-bottom: 10px; }
  .lead { font-size: 15px; }
  .hero-actions { margin-top: 14px; }
  .btn { min-height: 38px; padding: 8px 14px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 10px; }
  .section { padding: 24px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
  .app-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .intent-layout { grid-template-columns: 1fr; }
  .data-table th,
  .data-table td { padding: 8px 10px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .content article { padding: 20px; }
  .breadcrumb ol { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 640px) {
  .pillar-links li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .app-card-top { gap: 10px; }
  .app-icon { width: 44px; height: 44px; font-size: 18px; }
  .app-card { padding: 14px; }
}
