/* Scoped layout; typography and palette belong to the active theme. */
.ttkn-ig,.ttkn-ig * { box-sizing:border-box; }
.ttkn-ig { --ig-accent:var(--color-accent,currentColor); --ig-background:var(--color-bg,#fff); --ig-border:var(--color-border,#d7d7d7); --ig-muted:var(--color-muted,#5c5c5c); font-family:var(--ig-body-font,var(--font-body,inherit)); width:100%; }
.ttkn-ig .ttkn-ig-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.ttkn-ig .ttkn-ig-section { margin:0 0 2rem; }
.ttkn-ig .ttkn-ig-intro { margin-block:0; padding-block:1.5rem; }
/* Only the TTKN directory's page-title header: do not add a second gap above the intro. */
.ttkn-instagram-directory-intro .page-entry > .entry-copy > .entry-header { margin-bottom:0; }
.ttkn-instagram-directory-intro .page-entry > .entry-copy > .entry-header > .page-title { margin-bottom:0; }
.ttkn-ig--no-intro .ttkn-ig-section { margin-top:0; }
.ttkn-ig .ttkn-ig-card { margin:0; border:1px solid var(--ig-border); background:var(--ig-background); border-radius:6px; overflow:hidden; min-width:0; }
.ttkn-ig .ttkn-ig-link { display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
.ttkn-ig .ttkn-ig-link:focus-visible { outline:3px solid var(--ig-accent); outline-offset:-4px; }
.ttkn-ig .ttkn-ig-link:hover .ttkn-ig-read { text-decoration:underline; }
.ttkn-ig .ttkn-ig-image { aspect-ratio:1; width:100%; overflow:hidden; background:var(--color-header-bg,#eee); }
.ttkn-ig .ttkn-ig-image img { display:block; width:100%; height:100%; object-fit:cover; margin:0; padding:0; }
.ttkn-ig .ttkn-ig-image--graphic img { object-fit:contain; }
.ttkn-ig .ttkn-ig-placeholder { display:flex; flex-direction:column; gap:1rem; align-items:center; justify-content:center; padding:1.25rem; text-align:center; color:var(--ig-muted); font-family:var(--ig-heading-font,var(--font-ui,inherit)); font-size:1.5rem; overflow-wrap:anywhere; }
.ttkn-ig .ttkn-ig-placeholder span { font-size:.85rem; }
.ttkn-ig .ttkn-ig-placeholder strong { color:var(--ig-accent); font-weight:600; line-height:1.25; }
.ttkn-ig .ttkn-ig-copy { padding:1rem; display:flex; flex-direction:column; flex:1; }
.ttkn-ig .ttkn-ig-copy h3 { padding:0; margin:0 0 .5rem; font-family:var(--ig-heading-font,var(--font-ui,inherit)); font-size:1.3rem; line-height:1.25; overflow-wrap:anywhere; }
.ttkn-ig .ttkn-ig-copy p { padding:0; margin:.5rem 0; font-size:1rem; line-height:1.45; }
.ttkn-ig .ttkn-ig-copy time,.ttkn-ig .ttkn-ig-note { color:var(--ig-muted); font-size:.9rem; }
.ttkn-ig .ttkn-ig-access { font-weight:700; }
.ttkn-ig .ttkn-ig-stats { display:grid; grid-template-columns:minmax(0,.55fr) repeat(2,minmax(0,1fr)); width:100%; max-width:100%; min-width:0; margin:0; padding:8px 4px; background:var(--ig-stats-background,var(--ig-background)); color:var(--ig-stats-text,inherit); text-align:center; }
.ttkn-ig .ttkn-ig-stat { display:flex; flex-direction:column; min-width:0; padding:0 3px; overflow-wrap:anywhere; }
.ttkn-ig .ttkn-ig-stat dt { margin:0 0 2px; padding:0; font-size:12px; line-height:14px; font-weight:700; }
.ttkn-ig .ttkn-ig-stat dd { display:flex; flex-direction:column; justify-content:center; flex:1; margin:0; padding:0; font-size:14px; line-height:14px; }
.ttkn-ig .ttkn-ig-stat dd span { display:block; }
.ttkn-ig .ttkn-ig-read { margin-top:auto; padding-top:.75rem; font-weight:700; color:var(--ig-accent); }
.ttkn-ig .ttkn-ig-pagination { display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; margin-top:1.25rem; }
.ttkn-ig .ttkn-ig-pagination a { padding:.6rem .8rem; border:1px solid var(--ig-border); border-radius:4px; }
@media(max-width:1000px) { .ttkn-ig .ttkn-ig-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .ttkn-ig .ttkn-ig-grid { grid-template-columns:1fr; } }
