/* Category pages as a card grid (2026-11-14). Loaded on category archives only.
   Markup (CheerUp loop-grid-3): .posts-dynamic > .posts-wrap > .column.col-4 > .grid-post */
.ta-cat-grid .main-content .grid-post .post-excerpt,
.ta-cat-grid .main-content .grid-post .read-more,
.ta-cat-grid .main-content .grid-post .post-footer,
.ta-cat-grid .main-content .grid-post .post-share,
.ta-cat-grid .main-content .grid-post .meta-above .post-cat{display:none!important} /* category already on the photo badge */
.ta-cat-grid .main-content .grid-post{margin-bottom:34px}
.ta-cat-grid .main-content .grid-post .post-thumb{border-radius:14px;overflow:hidden}
.ta-cat-grid .main-content .grid-post .post-thumb .img{transition:transform .5s ease}
.ta-cat-grid .main-content .grid-post:hover .post-thumb .img{transform:scale(1.04)}
.ta-cat-grid .main-content .grid-post .post-title-alt{font-size:21px;line-height:1.3}
.ta-cat-grid .main-content .grid-post a:focus-visible{outline:3px solid #d8a819;outline-offset:3px}

/* phones: two cards per row so the page reads as a list of recipes */
@media (max-width:767px){
  .ta-cat-grid .main-content .posts-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;margin:0}
  .ta-cat-grid .main-content .posts-wrap > .column{width:auto!important;max-width:none!important;padding:0!important;margin:0!important;float:none!important}
  .ta-cat-grid .main-content .posts-wrap::before,
  .ta-cat-grid .main-content .posts-wrap::after{display:none}
  .ta-cat-grid .main-content .grid-post{margin:0;width:100%;max-width:none}
  .ta-cat-grid .main-content .grid-post .post-thumb{border-radius:12px;margin-bottom:8px}
  .ta-cat-grid .main-content .grid-post .content-wrap,
  .ta-cat-grid .main-content .grid-post .meta-title{padding-left:0;padding-right:0}
  .ta-cat-grid .main-content .grid-post .post-title-alt{font-size:16px;line-height:1.3;margin:4px 0 0}
  .ta-cat-grid .main-content .grid-post .cat-label .category{font-size:10px;padding:2px 8px}
  .ta-cat-grid .main-content .grid-post .meta-below{font-size:11px}
}

/* Subcategory chips under the title on a parent category page (2026-11-15, inc/ta-nav.php).
   Same palette as the home band: heading green ink, mint line, gold on hover. Theme font (Muli), no new fonts. */
.ta-cat-grid .archive-head .description{width:auto;max-width:1100px;margin:16px auto 0;padding:0}
.ta-subcats{margin:0 auto;width:100%}
.ta-subcats,.ta-subcats *{box-sizing:border-box}
.ta-subcats__list{list-style:none;margin:0;padding:2px 0 6px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 8px}
.ta-subcats__list li{margin:0;padding:0;list-style:none}
.ta-subcats__list li::before{display:none!important}
.ta-subcats__chip{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:6px 8px 6px 15px;border:1px solid #cfe6df;border-radius:999px;background:#fff;color:#1b382e!important;font-family:'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;font-size:14px;font-weight:600;line-height:1.2;letter-spacing:0;text-decoration:none!important;white-space:nowrap;transition:border-color .2s ease, background-color .2s ease}
.ta-subcats__n{display:inline-block;line-height:16px;min-width:24px;padding:3px 7px;border-radius:999px;background:#f4fbf9;color:#4f5d59;font-size:12px;font-weight:700;text-align:center}
.ta-subcats__chip:hover{border-color:#d8a819;background:#fffdf6}
.ta-subcats__chip:hover .ta-subcats__n{background:#d8a819;color:#1a1a1a}
.ta-subcats__chip:focus{outline:none}
.ta-subcats__chip:focus-visible{outline:3px solid #1b382e;outline-offset:2px}

/* phones: one swipeable row so the cards stay near the top */
@media (max-width:767px){
  .ta-cat-grid .archive-head .description{margin:12px -25px 0;max-width:none}
  .ta-subcats__list{padding-left:16px!important;padding-right:16px!important;scroll-padding-left:16px}
  .ta-subcats__list{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 2px 8px}
  .ta-subcats__list::-webkit-scrollbar{display:none}
  .ta-subcats__list li{flex:0 0 auto;scroll-snap-align:start}
  .ta-subcats__chip{min-height:40px}
}
.ta-subcats__sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* The faded "CATEGORY" watermark behind the title is decoration: drawn by CSS so it is not read as page text
   (axe flagged its 4% opacity as a contrast failure). Looks the same as the theme's .archive-head .background. */
.ta-cat-grid .archive-head .background{font-size:0!important}
.ta-cat-grid .archive-head .background::before{content:"Category";font-size:126px}
