/* ════════════════════════════════════════════════════════════════════
   MyGrannySquare — global theme (Memphis + Neobrutalism + Doodle)

   Visual signatures that recur everywhere:
     · 3px solid borders + 4px 4px hard offset shadow (no blur)
     · 12px corner radius
     · Memphis dots/triangles/squiggles scattered in section backgrounds
     · Doodle SVG accents (marker-style underlines, hand-drawn arrows)
     · Slight rotations (-2deg / -3deg) on tags + stickers for playfulness
     · Hover lift: translate(-3px,-3px) + shadow grows
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────────── */
:root {
  --primary:    #b5502f;
  --primary-d:  #9c3f22;
  --secondary:  #5f7a44;
  --secondary-d:#4e6636;
  --accent:     #e9b944;
  --accent-d:   #d6a52f;
  --bg:         #faf6ee;
  --surface:    #fffdf6;
  --text:       #2f2318;
  --text-soft:  #5f4d3e;

  --r:          12px;
  --r-pill:     999px;
  --bw:         3px;
  --shadow:     4px 4px 0 var(--text);
  --shadow-lg:  6px 6px 0 var(--text);
  --shadow-xl:  8px 8px 0 var(--text);

  --font:       'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
  --container:  1200px;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ── 2. Reset + base ───────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 400;
  /* Elder-friendly base: slightly larger type, roomier leading */
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  /* Memphis paper: subtle dot grid */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(47,35,24,.06) 1px, transparent 0);
  background-size: 24px 24px;
  line-height: 1.65;
  min-height: 100vh;
  /* Contain offset shadows + memphis blobs so they don't trigger
     a horizontal scrollbar on narrow viewports. */
  overflow-x: hidden;
}
/* Make sure cards never spill outside their parent (4px hard shadows
   on full-width-on-mobile cards push past viewport otherwise). */
.container, .content-section, .pattern-section, .intro-section,
.hero-section, .qa-section, .why-best-section, .featured-section,
.blog-section, .newsletter-section {
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary-d); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.01em;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hidden    { display: none !important; }

/* ── 3. Memphis decoration helpers ────────────────────────────────── */
/* Use these as ::before/::after on sections to scatter geometric shapes. */

.memphis-bg {
  position: relative;
  overflow: hidden;
}
.memphis-bg::before,
.memphis-bg::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.memphis-bg > * { position: relative; z-index: 1; }

/* Floating geometric shapes — drop in any section */
.memphis-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.memphis-shape svg { display: block; }

/* Doodle squiggle divider between sections */
.doodle-divider {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  color: var(--primary);
}
.doodle-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Marker-style underline on inline text */
.marker {
  background: linear-gradient(180deg, transparent 60%, var(--accent) 60%);
  padding: 0 4px;
  font-weight: 800;
}
.marker.pink   { background: linear-gradient(180deg, transparent 60%, #f0cdb9 60%); }
.marker.teal   { background: linear-gradient(180deg, transparent 60%, #d9e3c4 60%); }

/* ── 4. Buttons ────────────────────────────────────────────────────── */
.btn,
.cta-button,
.submit-button,
.pattern-btn,
.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  background: var(--primary);
  color: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover,
.cta-button:hover,
.submit-button:hover,
.pattern-btn:hover,
.btn-reset:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}
.btn:active,
.cta-button:active,
.submit-button:active,
.pattern-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--text);
}
.btn-secondary,
.cta-button.secondary {
  background: var(--surface);
  color: var(--text);
}
.btn-accent { background: var(--accent); }
.btn-teal   { background: var(--secondary); color: var(--surface); }

/* ── 5. Tags / chips / badges ─────────────────────────────────────── */
.tag,
.chip,
.category-badge,
.featured-skill,
.article-category-badge,
.benefits-kicker,
.patterns-kicker {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--accent);
  border: var(--bw) solid var(--text);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--text);
}
.tag-1, .tag.tag-1 { background: var(--primary); color: var(--surface); transform: rotate(-2deg); }
.tag-2, .tag.tag-2 { background: var(--accent); transform: rotate(1deg); }
.tag-3, .tag.tag-3 { background: var(--secondary); color: var(--surface); transform: rotate(-1.5deg); }

/* Skill-level row — wrapper that holds multiple .skill-item chips. NOT
   a single pill; each child is its own bordered chip. */
.skill-level {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent !important;
  color: inherit;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--surface);
  border: 2.5px solid var(--text);
  border-radius: var(--r-pill);
  box-shadow: 2px 2px 0 var(--text);
}
.skill-level .skill-item:nth-child(4n+1) { background: var(--primary);   color: var(--surface); }
.skill-level .skill-item:nth-child(4n+2) { background: var(--accent);    color: var(--text); }
.skill-level .skill-item:nth-child(4n+3) { background: var(--secondary); color: var(--surface); }
.skill-level .skill-item:nth-child(4n+4) { background: var(--surface);   color: var(--text); }

.featured-skill {
  background: var(--accent);
  margin-bottom: 14px;
  font-size: .7rem;
  padding: 5px 12px;
  box-shadow: 2px 2px 0 var(--text);
}

/* ── 6. Cards (generic neobrutalism) ──────────────────────────────── */
.card,
.featured-card,
.blog-card,
.author-card,
.content-card,
.pattern-card,
.faq-item,
.intro-card,
.recommendations,
.newsletter-card {
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.featured-card:hover,
.blog-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

/* ── 7. Navbar ────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: var(--bw) solid var(--text);
  padding: 14px 24px;
}
.navbar > div {
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--text);
  transform: rotate(-3deg);
  font-size: 1.6rem;
  color: var(--surface);
  font-weight: 900;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.logo-sub {
  font-weight: 500;
  font-size: .72rem;
  color: var(--text-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background .15s, transform .12s;
}
.nav-link:hover {
  background: var(--accent);
  transform: translate(-1px, -1px);
}
.nav-link.active {
  background: var(--text);
  color: var(--surface);
}
.menu-toggle {
  display: none;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--text);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 0;
  border-top: 2px dashed var(--text);
  margin-top: 12px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: var(--r);
}

@media (max-width: 900px) {
  .nav-links     { display: none; }
  .menu-toggle   { display: flex; }
}

/* ── 8. Hero (homepage) ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  background: var(--bg);
  overflow: hidden;
  border-bottom: var(--bw) solid var(--text);
}
.hero::before {
  /* big pink memphis blob top-left */
  content: '';
  position: absolute;
  top: -80px; left: -100px;
  width: 320px; height: 320px;
  background: var(--primary);
  border-radius: 50%;
  opacity: .25;
  z-index: 0;
}
.hero::after {
  /* yellow zigzag accent bottom-right */
  content: '';
  position: absolute;
  bottom: -40px; right: -60px;
  width: 200px; height: 200px;
  background:
    repeating-linear-gradient(45deg,
      var(--accent) 0 12px,
      transparent 12px 24px);
  border-radius: 50%;
  opacity: .55;
  z-index: 0;
  transform: rotate(15deg);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero-title .pop { color: var(--primary-d); }
.title-underline {
  width: 120px;
  height: 8px;
  margin: 0 auto 28px;
  background: var(--accent);
  border: var(--bw) solid var(--text);
  border-radius: var(--r-pill);
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 var(--text);
}
.hero-box {
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  max-width: 720px;
  margin: 0 auto 32px;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-soft);
}
.hero-subtitle .highlight {
  background: var(--accent);
  border: 2.5px solid var(--text);
  border-radius: 8px;
  padding: 1px 10px;
  color: var(--text);
  font-weight: 800;
  display: inline-block;
  transform: rotate(-1deg);
  box-shadow: 2px 2px 0 var(--text);
}
.cta-section {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
.stat {
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px 12px;
  text-align: center;
}
.stat:nth-child(1) { background: var(--primary); color: var(--surface); transform: rotate(-1deg); }
.stat:nth-child(2) { background: var(--accent); transform: rotate(.5deg); }
.stat:nth-child(3) { background: var(--secondary); color: var(--surface); transform: rotate(-.7deg); }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
}

.floating-elements { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-item {
  position: absolute;
  font-size: 2.4rem;
  animation: floatA 6s ease-in-out infinite;
  filter: drop-shadow(2px 2px 0 var(--text));
}
.float-1 { top: 18%; left: 7%;  animation-delay: 0s;   }
.float-2 { top: 28%; right: 10%; animation-delay: 1.2s; }
.float-3 { bottom: 22%; left: 12%; animation-delay: 2.4s; }
.float-4 { bottom: 18%; right: 8%; animation-delay: 3.6s; }
@keyframes floatA {
  0%,100% { transform: translateY(0)   rotate(-3deg); }
  50%     { transform: translateY(-14px) rotate(3deg); }
}

@media (max-width: 640px) {
  .hero { padding: 56px 18px 72px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
}

/* ── 9. Trust strip ───────────────────────────────────────────────── */
.trust-strip {
  background: var(--text);
  color: var(--surface);
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  border-bottom: var(--bw) solid var(--text);
  font-weight: 600;
  font-size: .92rem;
}
.trust-strip strong {
  color: var(--accent);
  font-weight: 800;
  margin: 0 6px;
}
.trust-icon {
  display: inline-block;
  margin-right: 6px;
  font-size: 1.05rem;
}

/* ── 10. Generic section header ───────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.benefits-kicker,
.patterns-kicker {
  margin-bottom: 18px;
  background: var(--surface);
  color: var(--text);
}
.section-title-v2,
.patterns-h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.025em;
  margin-bottom: 18px;
  line-height: 1.05;
}
.benefits-lede,
.patterns-lede {
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── 11. Why-best (editorial benefits 01-04) ──────────────────────── */
.why-best-section {
  position: relative;
  padding: 90px 0;
  background: var(--surface);
  border-top: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
}
.editorial-benefits {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}
.ed-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  background: var(--bg);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  position: relative;
}
.ed-row-reverse { grid-template-columns: 1fr 200px; }
.ed-row-reverse .ed-visual { order: 2; text-align: right; }
.ed-row-reverse .ed-body   { order: 1; }
.ed-visual { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ed-row-reverse .ed-visual { align-items: flex-end; }
.ed-num {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.04em;
  -webkit-text-stroke: 2px var(--text);
  background: var(--accent);
  padding: 4px 18px;
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.ed-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--bw) solid var(--text);
  box-shadow: var(--shadow);
  color: var(--surface);
}
.ed-mark-green { background: var(--secondary); }
.ed-mark-pink  { background: var(--primary); }
.ed-mark-gold  { background: var(--accent); color: var(--text); }
.ed-mark-plum  { background: #8a6248; }
.ed-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-d);
}
.ed-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.ed-body p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.ed-body a {
  color: var(--primary-d);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 760px) {
  .ed-row, .ed-row-reverse { grid-template-columns: 1fr; }
  .ed-row-reverse .ed-visual { order: 0; align-items: flex-start; text-align: left; }
  .ed-row-reverse .ed-body { order: 1; }
}

/* ── 12. Featured / blog cards ────────────────────────────────────── */
.featured-section,
.blog-section {
  padding: 80px 0;
  background: var(--bg);
  position: relative;
}
.featured-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
}

.featured-card,
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.featured-ribbon {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: var(--bw) solid var(--text);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--text);
  transform: rotate(-3deg);
}
.featured-img,
.blog-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--primary);
  border-bottom: var(--bw) solid var(--text);
}
.featured-img img,
.blog-img,
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.featured-card:hover .featured-img img,
.blog-card:hover .blog-img,
.blog-card:hover .blog-image img { transform: scale(1.06); }
.featured-body,
.blog-content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.featured-title,
.blog-title {
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
}
.blog-title a { color: inherit; }
.featured-desc,
.blog-excerpt {
  font-size: .95rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}
.featured-cta-inline,
.blog-read-more {
  font-weight: 800;
  font-size: .95rem;
  color: var(--primary-d);
  letter-spacing: .02em;
}
.featured-card:hover .featured-cta-inline,
.blog-card:hover .blog-read-more { color: var(--text); }
.blog-meta {
  font-size: .78rem;
  color: var(--text-soft);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-img-placeholder {
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: var(--surface);
}
.blog-category {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
}
.blog-category .category-badge {
  background: var(--secondary);
  color: var(--surface);
  font-size: .68rem;
  padding: 5px 10px;
}

/* ── 13. Patterns listing extras ──────────────────────────────────── */
.patterns-hero {
  padding: 64px 24px 50px;
  text-align: center;
  background: var(--surface);
  border-bottom: var(--bw) solid var(--text);
  position: relative;
  overflow: hidden;
}
.patterns-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: .25;
}
.patterns-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background:
    radial-gradient(circle, var(--primary) 30%, transparent 30%),
    radial-gradient(circle, var(--primary) 30%, transparent 30%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  border-radius: 50%;
  opacity: .35;
}
.patterns-breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: .85rem;
  color: var(--text-soft);
}
.patterns-breadcrumb a {
  color: var(--primary-d);
  font-weight: 700;
}
.patterns-breadcrumb a:hover { color: var(--text); }
.patterns-breadcrumb .sep { margin: 0 8px; opacity: .55; }

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 24px;
  max-width: var(--container);
  margin: 32px auto 0;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  padding: 9px 18px;
  font-weight: 700;
  font-size: .9rem;
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--text);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--text);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.filter-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}
.filter-btn.active {
  background: var(--text);
  color: var(--surface);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  font-family: var(--font);
  font-size: .92rem;
  padding: 11px 38px 11px 16px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--text);
  width: 280px;
  outline: none;
}
.search-icon {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.results-bar {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: .9rem;
  color: var(--text-soft);
}

.empty-state {
  text-align: center;
  padding: 72px 24px;
}
.empty-icon { font-size: 4.4rem; margin-bottom: 18px; }
.empty-state h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.empty-state p  { color: var(--text-soft); margin-bottom: 22px; }

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: center;
  margin: 48px 0;
}
.pagination-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 10px 16px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--text);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.page-btn:hover:not(.disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}
.page-btn.active {
  background: var(--primary);
  color: var(--surface);
}
.page-btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}
.page-dots {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 800;
}

/* ── 14. FAQ accordion ────────────────────────────────────────────── */
.faq-section {
  padding: 80px 24px;
  background: var(--surface);
  border-top: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.faq-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--surface);
  padding: 6px 18px;
  border: var(--bw) solid var(--text);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--text);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .76rem;
  transform: rotate(-2deg);
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}
.faq-question h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}
.faq-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 2.5px solid var(--text);
  border-radius: var(--r-pill);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-icon svg { width: 16px; height: 16px; fill: var(--text); }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 24px 22px;
}
.faq-answer p {
  color: var(--text-soft);
  line-height: 1.65;
}
.faq-answer a {
  color: var(--primary-d);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

/* ── 15. Newsletter ───────────────────────────────────────────────── */
.newsletter-section {
  padding: 80px 24px;
  background: var(--bg);
}
.newsletter-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--primary);
  color: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: var(--accent);
  border-radius: 50%;
  border: var(--bw) solid var(--text);
  opacity: .9;
  z-index: 0;
}
.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 48px;
  position: relative;
  z-index: 1;
}
.newsletter-illustration {
  font-size: 3.4rem;
  margin-bottom: 16px;
  filter: drop-shadow(2px 2px 0 var(--text));
}
.newsletter-title {
  color: var(--surface);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.newsletter-subtitle {
  color: var(--surface);
  font-weight: 500;
  line-height: 1.55;
  opacity: .92;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .82rem;
  color: var(--surface);
  margin-bottom: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: .95rem;
  background: var(--surface);
  color: var(--text);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  outline: none;
  transition: transform .12s, box-shadow .12s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--text);
}
.form-text {
  font-size: .76rem;
  color: var(--surface);
  opacity: .82;
  margin-top: 4px;
  display: block;
}
.privacy-note {
  font-size: .78rem;
  color: var(--surface);
  opacity: .85;
  text-align: center;
}
.privacy-note a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
.newsletter-form .submit-button {
  background: var(--accent);
  color: var(--text);
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .newsletter-content { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}

/* ── 16. Footer ───────────────────────────────────────────────────── */
.footer-section {
  padding: 64px 24px;
  background: var(--text);
  color: var(--surface);
  position: relative;
}
.footer-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background:
    repeating-linear-gradient(90deg,
      var(--primary) 0 24px,
      var(--accent)  24px 48px,
      var(--secondary) 48px 72px);
  border-bottom: var(--bw) solid var(--text);
}
.footer-card {
  max-width: var(--container);
  margin: 0 auto;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-column { min-width: 0; }
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border: 2.5px solid var(--surface);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--surface);
  font-weight: 900;
  transform: rotate(-3deg);
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--surface);
  letter-spacing: -.01em;
}
.footer-tagline {
  color: rgba(255,254,247,.78);
  font-size: .92rem;
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 320px;
}
.footer-contact-email {
  color: var(--accent);
  font-weight: 700;
  font-size: .92rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.footer-heading {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.footer-links li { list-style: none; }
.footer-link {
  color: rgba(255,254,247,.78);
  font-size: .92rem;
  text-decoration: none;
  font-weight: 500;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 2px dashed rgba(255,254,247,.18);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.footer-copy { color: rgba(255,254,247,.65); }
.footer-credit-left,
.footer-credit-right { color: rgba(255,254,247,.65); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,254,247,.78); font-weight: 600; font-size: .85rem; }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
}

/* ── Visually-hidden helper (a11y) ──────────────────────────────────
   Keeps the element accessible to screen readers but invisible. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 17. Reduce motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── 18. News posts (Memphis + neobrutalism + doodle aesthetic) ───── */
/* Designed to match the rest of MyGrannySquare: 3px borders, 4px hard-offset
   shadows (no blur), accent-yellow highlights, marker-underline H2s,
   tilted Memphis tags, doodle accents. */

.news-article {
  padding: 30px 0 80px;
  background: var(--background);
  position: relative;
}

/* Confetti dot grid behind the article — same as patterns hero */
.news-article::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--text) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .04;
  pointer-events: none;
}

.news-article > .container { position: relative; z-index: 1; }

.news-article-header {
  margin: 0 0 28px;
  padding: 28px 32px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  position: relative;
}
.news-article-header::after {
  /* Tilted accent corner — Memphis decorative */
  content: "";
  position: absolute; top: -10px; right: -10px;
  width: 36px; height: 36px;
  background: var(--accent);
  border: var(--bw) solid var(--text);
  border-radius: 8px;
  transform: rotate(12deg);
  z-index: -1;
}

.news-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 10px 0 14px;
  color: var(--text);
}
.news-dek {
  font-size: 1.12rem; line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 18px;
  font-weight: 500;
}
.news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-soft);
  padding-top: 14px;
  border-top: 2px dashed var(--text);
}
.news-meta-sep { opacity: 0.35; }
.news-byline {
  font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, transparent 60%, var(--accent) 60%);
  padding: 0 4px;
}

/* Hero image — full neobrutalist card */
.news-hero {
  margin: 0 0 28px;
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg, 7px 7px 0 var(--text));
  overflow: hidden;
  background: var(--surface);
}
.news-hero img { display: block; width: 100%; height: auto; }

/* FTC affiliate disclosure — accent-yellow card */
.news-disclosure-wrap { margin: 0 0 22px; }
.news-disclosure {
  display: block;
  background: var(--accent);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--text);
  padding: 14px 20px;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}
.news-disclosure strong { font-weight: 800; }

/* Answer-summary block — the citation-extraction zone, visually distinct */
.answer-summary,
.news-answer-summary {
  margin: 0 0 28px;
  padding: 22px 26px;
  background: linear-gradient(180deg, #f7ecdd 0%, var(--surface) 100%);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--primary);
  position: relative;
}
.answer-summary::before {
  content: "TL;DR";
  position: absolute;
  top: -14px; left: 22px;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: .08em;
  padding: 4px 12px;
  border: 2.5px solid var(--text);
  border-radius: 999px;
  transform: rotate(-2deg);
}
.answer-summary p,
.news-answer-summary p {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}
.answer-summary p:last-child,
.news-answer-summary p:last-child { margin-bottom: 0; }

/* Body text — readable rhythm + marker-underlined H2s */
.news-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.news-body p { margin: 0 0 18px; }
.news-body p:first-child::first-letter {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  float: left;
  line-height: 1;
  padding: 4px 10px 0 0;
  color: var(--primary);
}
.news-body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  font-weight: 900;
  margin: 38px 0 14px;
  color: var(--text);
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, var(--accent) 65%);
  padding: 0 6px;
}
.news-body h3 {
  font-size: 1.22rem; font-weight: 800;
  margin: 26px 0 12px; color: var(--text);
}
.news-body ul, .news-body ol {
  padding-left: 1.5em; margin: 0 0 20px;
}
.news-body li { margin-bottom: 8px; line-height: 1.65; }
.news-body ul li::marker { color: var(--primary); font-weight: 900; }
.news-body a {
  color: var(--text);
  background: linear-gradient(180deg, transparent 70%, var(--accent) 70%);
  text-decoration: none;
  font-weight: 600;
  padding: 0 2px;
  transition: background .15s;
}
.news-body a:hover {
  background: var(--primary);
  color: #fff;
}
.news-body blockquote {
  border-left: 5px solid var(--primary);
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 22px 0; padding: 14px 22px;
  font-style: italic; color: var(--text);
  box-shadow: 4px 4px 0 var(--text);
}
.news-body strong { font-weight: 800; }

/* Internal-link "Related" block (fallback) */
.news-body .news-related {
  margin-top: 36px; padding: 22px 26px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.news-body .news-related h3 {
  margin-top: 0; font-size: 1.15rem; font-weight: 900;
}
.news-body .news-related h3::after {
  content: " 🌼"; color: var(--primary);
}
.news-body .news-related ul { padding-left: 1.3em; margin: 0; }
.news-body .news-related li { margin-bottom: 8px; }

/* Amazon affiliate cards */
.news-amazon {
  margin: 40px 0 0; padding: 26px 28px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.news-amazon-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem; font-weight: 900; margin: 0 0 4px;
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, var(--accent) 65%);
  padding: 0 6px;
}
.news-amazon-sub {
  font-size: 0.85rem; color: var(--text-soft);
  margin: 0 0 18px;
}
.news-amazon-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.news-amazon-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--background);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  padding: 14px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 3px 3px 0 var(--text);
}
.news-amazon-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 6px 6px 0 var(--text);
}
.news-amazon-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 90px; margin-bottom: 10px; font-size: 2.4rem;
  background: var(--surface);
  border: 2px solid var(--text);
  border-radius: 8px;
}
.news-amazon-thumb img { max-width: 100%; max-height: 100%; }
.news-amazon-name {
  font-size: 0.9rem; font-weight: 700;
  margin: 0 0 6px; line-height: 1.35;
}
.news-amazon-price {
  font-size: 0.82rem; color: var(--primary);
  font-weight: 800; margin: 0;
}

/* FAQ section — neobrutalist details/summary */
.news-faq {
  margin: 40px 0 0; padding: 26px 28px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.news-faq-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  margin: 0 0 18px;
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, var(--secondary) 65%);
  padding: 0 6px;
}
.news-faq-list { display: grid; gap: 12px; }
.news-faq-item {
  background: var(--background);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  padding: 0;
  transition: box-shadow .15s, transform .15s;
}
.news-faq-item[open] {
  box-shadow: 4px 4px 0 var(--primary);
}
.news-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  position: relative;
  padding-right: 48px;
  user-select: none;
}
.news-faq-item summary::-webkit-details-marker { display: none; }
.news-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: var(--accent);
  border: 2.5px solid var(--text);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.news-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--primary);
  color: #fff;
}
.news-faq-item summary:hover { background: rgba(181,80,47,.06); }
.news-faq-item p {
  margin: 0; padding: 0 22px 18px;
  line-height: 1.7;
  color: var(--text);
}

/* Source attribution — accent-yellow neobrutalist card */
.news-source-card {
  margin: 32px 0 0;
  padding: 18px 24px;
  background: var(--accent);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--text);
  transform: rotate(-.4deg);
}
.news-source-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.news-source-text a {
  color: var(--text);
  font-weight: 800;
  border-bottom: 2.5px solid var(--text);
}
.news-source-text a:hover { background: #fff; }

/* Tags — Memphis tilted pills */
.news-tags {
  margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.news-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--text);
  transform: rotate(-1.5deg);
}
.news-tag:nth-child(even) {
  transform: rotate(1.5deg);
  background: var(--accent);
}
.news-tag:nth-child(3n) {
  background: #f7ecdd;
  transform: rotate(-2deg);
}

/* "More patterns to make" — related-pattern grid */
.news-related-bottom {
  margin: 48px 0 0;
  padding-top: 36px;
  border-top: 3px dashed var(--text);
  position: relative;
}
.news-related-bottom::before {
  content: "🌼 🌼 🌼";
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--background);
  padding: 0 18px;
  color: var(--primary);
  font-size: 1.2rem;
  letter-spacing: 6px;
}
.news-related-bottom h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem; font-weight: 900;
  margin: 0 0 22px;
  display: inline-block;
  background: linear-gradient(180deg, transparent 65%, var(--accent) 65%);
  padding: 0 6px;
}
.news-related-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.news-related-card {
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  padding: 12px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 3px 3px 0 var(--text);
}
.news-related-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 6px 6px 0 var(--primary);
}
.news-related-card img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--text);
}
.news-related-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .news-article { padding: 20px 0 60px; }
  .news-article-header { padding: 22px 20px; }
  .news-body p:first-child::first-letter {
    font-size: 2.6rem; padding-right: 8px;
  }
  .news-amazon, .news-faq { padding: 22px 18px; }
  .news-faq-item summary { padding: 12px 18px; padding-right: 44px; }
  .news-faq-item summary::after { right: 12px; width: 24px; height: 24px; }
}

/* ── Browse-by-type chips (MyGrannySquare homepage) ────────────────── */
.browse-types-section {
  padding: 70px 0 30px;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.type-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: var(--bw) solid var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.type-chip:nth-child(2n) { transform: rotate(-1deg); }
.type-chip:nth-child(3n) { transform: rotate(1deg); }
.type-chip:hover {
  transform: translate(-3px,-3px) rotate(0deg);
  box-shadow: var(--shadow-lg);
  background: var(--accent);
}
.type-emoji { font-size: 1.5rem; line-height: 1; }
.type-name  { font-size: .98rem; }
@media (max-width: 860px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Full-width-ish chips look broken when tilted — keep them straight on phones */
  .type-chip, .type-chip:nth-child(2n), .type-chip:nth-child(3n) { transform: none; }
  .type-chip { padding: 15px 14px; min-height: 56px; }
  .type-name { font-size: .95rem; }
}
@media (max-width: 340px) {
  .type-grid { grid-template-columns: 1fr; }
}
