/* Tartan Manager: tartan pages and A–Z index (uses the theme's colours where available) */
.tm-tp { padding-bottom: clamp(40px, 6vw, 80px); }
.tm-tp .tde-crumbs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; margin: 18px 0 22px; color: var(--muted, #666); }
.tm-tp .tde-crumbs a { color: inherit; }
.tm-tp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tm-tp-swatch { margin: 0; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--panel-2, #eee); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .5); }
.tm-tp-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-tp-info h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 .4em; color: var(--brand, #1d3d2f); }
.tm-tp-lead { font-size: 1.1rem; }
.tm-tp-facts { display: grid; gap: 0; margin: 22px 0; border-top: 1px solid var(--line, #e3e0d8); }
.tm-tp-facts > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line, #e3e0d8); }
.tm-tp-facts dt { font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: var(--muted, #666); margin: 0; }
.tm-tp-facts dd { margin: 0; }
.tm-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.tm-dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.tm-dots i:last-of-type { margin-right: 6px; }
.tm-tp-shop, .tm-tp-related { margin-top: clamp(40px, 6vw, 72px); }
.tm-tp-shop h2, .tm-tp-related h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 20px; color: var(--brand, #1d3d2f); }
.tm-tp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.tm-tp-card a { display: block; color: inherit; text-decoration: none; }
.tm-tp-art { display: block; aspect-ratio: 4 / 5; background: var(--panel, #f6f4ef); border-radius: 3px; overflow: hidden; position: relative; }
.tm-tp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-tp-art .tde-render { position: absolute; inset: 0; }
.tm-tp-card:hover .tm-tp-art { box-shadow: 0 16px 28px -18px rgba(0, 0, 0, .45); }
.tm-tp-name { display: block; font-weight: 600; margin: 10px 0 4px; color: var(--brand, #1d3d2f); }
.tm-tp-price { display: block; font-size: .9rem; color: var(--muted, #666); }
.tm-tp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tm-tp-chips a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line, #e3e0d8); border-radius: 30px; color: inherit; text-decoration: none; font-size: .92rem; background: #fff; }
.tm-tp-chips img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.tm-tp-more { margin-top: 36px; font-size: .92rem; }
.tm-az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 10px; position: sticky; top: 0; background: var(--bg, #fff); padding: 10px 0; z-index: 3; }
.tm-az-nav a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line, #e3e0d8); border-radius: 3px; text-decoration: none; color: var(--brand, #1d3d2f); font-weight: 600; }
.tm-az-nav a[aria-current] { background: var(--brand, #1d3d2f); color: #fff; }
.tm-az-group h2 { font-size: 1.6rem; margin: 30px 0 10px; color: var(--brand, #1d3d2f); border-bottom: 1px solid var(--line, #e3e0d8); padding-bottom: 6px; }
.tm-az-group ul { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 28px; }
.tm-az-group li { break-inside: avoid; padding: 4px 0; }
.tm-az-group a { color: inherit; }
.tm-unit { font-size: .8em; font-weight: 400; opacity: .75; }
.tm-min { display: block; font-size: .8rem; font-weight: 400; opacity: .75; margin-top: 4px; }
@media (max-width: 760px) { .tm-tp-hero { grid-template-columns: 1fr; } .tm-tp-facts > div { grid-template-columns: 1fr; gap: 2px; } .tm-tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
