/* การ์ดของน่าพกในหน้าหมุด (app/aff-cards.js) — DRAFT, localhost only, never in the zip.
   Filled block, no strokes, no shadows (owner's control rules). */
.tk-aff-slot:empty{display:none}
.tk-aff{margin:12px 0 4px;padding:12px;border-radius:14px;background:var(--surface-brand-soft,#EEF7E9)}
.tk-aff-title{margin:0 0 8px;display:flex;flex-direction:column;gap:2px}
.tk-aff-title b{font-size:15px;color:var(--text-strong,#1F2A1F)}
.tk-aff-title span{font-size:13px;color:var(--text-muted,#5B665E)}
.tk-aff ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tk-aff li a{display:flex;align-items:center;gap:10px;padding:8px;border-radius:10px;background:var(--surface-card,#fff);color:inherit;text-decoration:none}
.tk-aff li a:hover{background:var(--tk-fill-hover,#E6EBE3)}
.tk-aff-pic{flex:0 0 48px;width:48px;height:48px;border-radius:8px;background:#fff;display:grid;place-items:center;overflow:hidden}
.tk-aff-pic img{width:36px;height:36px;object-fit:contain}
.tk-aff-pic img.is-photo{width:100%;height:100%}
.tk-aff-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.tk-aff-txt b{font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-aff-txt small{font-size:12.5px;color:var(--text-muted,#5B665E);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-aff-txt em{font-style:normal;font-size:11px;font-weight:700;color:#8A5A00}
.tk-aff-price{flex:0 0 auto;font-weight:800;color:#E2541B;font-size:15px}
/* owner 11-27: orange bag + arrow instead of a price (filled chip, no stroke) */
.tk-aff-go{flex:0 0 auto;display:inline-flex;align-items:center;gap:1px;padding:4px 2px;color:#E2541B}
.tk-aff-go svg{width:22px;height:22px;display:block}
.tk-aff-go .tk-aff-arr{width:14px;height:14px}
.tk-aff li a:hover .tk-aff-go{color:#C2410C}
html[data-tk-theme="dark"] .tk-aff-go{color:#FF9A5A}
.tk-aff-note{margin:8px 2px 0;font-size:11.5px;line-height:1.45;color:var(--text-muted,#5B665E)}
html[data-tk-theme="dark"] .tk-aff{background:#1B2A1F}
html[data-tk-theme="dark"] .tk-aff li a{background:var(--tk-fill,#243128)}
html[data-tk-theme="dark"] .tk-aff-txt em{color:#F2C46B}
/* home: sits in the home column right under the ของน่าพก card · SEO pages: before the source note */
.tk-aff.is-home{margin:10px 0 0}
.tk-aff.is-trip,.tk-aff.is-road,.tk-aff.is-commute,.tk-aff.is-city{margin:22px 0 6px}
/* owner 11-24: on home the card replaces "ชุดกู้ภัยใกล้ ๆ" (localhost only) */
html.tk-aff-home #tkRescue{display:none!important}
/* wide screens: products side by side instead of long empty rows */
@media (min-width:720px){
  .tk-aff ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
  .tk-aff li a{height:100%;box-sizing:border-box}
}
/* owner 11-24 (later): white card, very large heading. Rows sit on a light fill (no strokes).
   Heading size follows the card's own width, so it is huge on home/SEO pages and still fits a pin card. */
.tk-aff{background:#fff;container-type:inline-size;padding:16px 12px 12px}
html[data-tk-theme="dark"] .tk-aff{background:var(--surface-card,#1E2620)}
.tk-aff-title{align-items:center;text-align:center;margin:0 0 12px;gap:4px}
.tk-aff-title b{font-size:22px;font-size:clamp(20px,6cqi,30px);line-height:1.25;font-weight:800;color:#FF7A1A;text-wrap:balance}
.tk-aff-title span{font-size:14px;font-weight:600;color:#5B665E}
.tk-aff-note{text-align:center;font-size:12px;color:#5B665E}
.tk-aff li a{background:#F4F5F2;color:#1F2A1F}
.tk-aff li a:hover{background:#FFF1E6}
.tk-aff-txt small{color:#5B665E}
.tk-aff-txt em{color:#8A5A00}
html[data-tk-theme="dark"] .tk-aff-title b{color:#FF7A1A}
html[data-tk-theme="dark"] .tk-aff-title span,html[data-tk-theme="dark"] .tk-aff-note{color:#C8BDB4}
html[data-tk-theme="dark"] .tk-aff li a{background:#2A3129;color:#F3EDE8}
html[data-tk-theme="dark"] .tk-aff-txt small{color:#C8BDB4}
html[data-tk-theme="dark"] .tk-aff-txt em{color:#F2C46B}
/* each space-separated phrase stays whole, so lines break at the space (Thai has no word gaps) */
.tk-aff-title b i{font-style:normal;white-space:nowrap;display:inline-block}

/* owner 11-29: home card rolls through the carry items — a soft fade between sets */
.tk-aff ul{transition:opacity .26s ease}
.tk-aff ul.is-swap{opacity:0}
@media (prefers-reduced-motion: reduce){.tk-aff ul{transition:none}}
