/* Detail-page layout. Reuses TextFrog's existing colours and corner sizes. */
.tf-detail-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:2rem; }
.tf-detail-main,.tf-detail-aside { min-width:0; }
.tf-detail-hero { padding:1.5rem; border:1px solid hsl(var(--border)); border-radius:.5rem; background:hsl(var(--card)); }
.tf-detail-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.tf-detail-identity { display:flex; align-items:center; gap:1rem; min-width:0; }
.tf-detail-logo { width:3rem; height:3rem; flex:none; object-fit:contain; border-radius:.375rem; }
.tf-detail-name { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin:0; font-size:1.75rem; line-height:1.25; font-weight:700; overflow-wrap:anywhere; }
.tf-detail-verified { display:inline-flex; flex:none; align-items:center; width:1.2rem; height:1.2rem; }
.tf-detail-verified svg { width:100%; height:100%; }
.tf-detail-category { display:inline-block; margin-top:.375rem; color:hsl(var(--muted-foreground)); font-size:.8125rem; }
.tf-detail-category:hover { color:hsl(var(--foreground)); text-decoration:underline; text-underline-offset:3px; }
.tf-detail-tools { display:flex; gap:.375rem; flex-shrink:0; align-items:center; }
.tf-detail-button { display:inline-flex; min-height:2.5rem; align-items:center; justify-content:center; gap:.5rem; border:1px solid hsl(var(--border)); border-radius:.375rem; padding:.5rem .875rem; background:hsl(var(--background)); color:hsl(var(--foreground)); font-size:.875rem; line-height:1.4; font-weight:500; text-decoration:none; }
.tf-detail-button:hover { background:hsl(var(--accent)); color:hsl(var(--accent-foreground)); }
.tf-detail-button.upvoted { background:hsl(var(--primary)/.1); color:hsl(var(--primary)); }
.tf-detail-button:disabled { opacity:.6; cursor:wait; pointer-events:none; }
.tf-detail-button:focus-visible,.tf-detail-tags a:focus-visible,.tf-share-strip a:focus-visible,.tf-share-strip button:focus-visible { outline:2px solid hsl(var(--ring)); outline-offset:3px; }
.tf-detail-button--icon { width:2.5rem; padding:.5rem; flex:none; }
.tf-detail-button svg { width:1rem; height:1rem; flex:none; }
.tf-detail-button--primary { background:hsl(var(--primary)); color:hsl(var(--primary-foreground)); border-color:hsl(var(--primary)); }
.tf-detail-button--primary:hover { background:hsl(var(--primary)/.9); color:hsl(var(--primary-foreground)); }
.tf-detail-intro { margin-top:1.25rem; font-size:1.0625rem; line-height:1.65; color:hsl(var(--muted-foreground)); overflow-wrap:anywhere; }
.tf-detail-subtitle { margin-top:1.25rem; font-size:1.125rem; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
.tf-detail-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; margin-top:1.5rem; }
.tf-detail-actions .tf-detail-button--primary { padding-inline:1.25rem; }
.tf-detail-actions [data-upvote-status] { flex-basis:100%; font-size:.75rem; line-height:1.5; color:hsl(var(--muted-foreground)); }
.tf-detail-added { display:block; margin-top:1rem; color:hsl(var(--muted-foreground)); font-size:.75rem; }
.tf-detail-media { margin-top:1.5rem; overflow:hidden; border:1px solid hsl(var(--border)); border-radius:.5rem; background:hsl(var(--muted)); }
.tf-detail-media img { display:block; width:100%; height:auto; max-height:42rem; object-fit:contain; cursor:zoom-in; }
.tf-detail-alternatives { margin-top:1.5rem; }
.tf-detail-alternatives p { color:hsl(var(--muted-foreground)); font-size:.8125rem; margin-bottom:.5rem; }
.tf-detail-alternatives-list { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; }
.tf-detail-alternatives-list a { display:inline-flex; gap:.5rem; align-items:center; font-size:.875rem; min-height:2rem; }
.tf-detail-alternatives-list a:hover,.tf-detail-subject-guide:hover { text-decoration:underline; text-underline-offset:3px; }
.tf-detail-alternatives-list img,.tf-detail-alt-letter { width:1.5rem; height:1.5rem; border-radius:.25rem; object-fit:contain; flex:none; }
.tf-detail-alt-letter { display:inline-flex; align-items:center; justify-content:center; background:hsl(var(--muted)); color:hsl(var(--muted-foreground)); font-size:.75rem; font-weight:600; }
.tf-detail-subject-guide { display:inline-flex; align-items:center; gap:.5rem; margin-top:.75rem; font-size:.875rem; font-weight:500; }
.tf-detail-tags { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; padding-top:1.5rem; margin-top:1rem; }
.tf-detail-tags>span,.tf-detail-tags>a { display:inline-flex; align-items:baseline; gap:.4rem; color:hsl(var(--muted-foreground)); font-size:.875rem; overflow-wrap:anywhere; }
.tf-detail-tags b { font-size:1.25rem; font-weight:400; color:hsl(var(--muted-foreground)/.7); }
.tf-share-strip { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; border-top:1px solid hsl(var(--border)); margin-top:1.75rem; padding-top:1rem; }
.tf-share-strip__label { padding-inline:.5rem .25rem; color:hsl(var(--muted-foreground)); font-size:.8125rem; }
.tf-share-strip a,.tf-share-strip button { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-width:2.25rem; min-height:2.25rem; padding:.375rem; border-radius:.375rem; color:hsl(var(--muted-foreground)); font-size:.8125rem; }
.tf-share-strip button[data-copy-detail] { padding-inline:.625rem; border:1px solid hsl(var(--border)); }
.tf-share-strip a:hover,.tf-share-strip button:hover { background:hsl(var(--accent)); color:hsl(var(--foreground)); }
.tf-share-strip svg { width:1rem; height:1rem; flex:none; }
.tf-share-strip__status { flex-basis:100%; font-size:.75rem; color:hsl(var(--muted-foreground)); }
.tf-share-strip__status:empty { display:none; }
.tf-detail-tabs { scroll-margin-top:6rem; }
.tf-detail-tabs>div:first-child { display:flex; flex-wrap:wrap; gap:.5rem; }
.tf-detail-tabs [x-show] { overflow-wrap:anywhere; }
.tf-detail-offer-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.625rem 1rem; margin-top:1rem; font-size:.8125rem; color:hsl(var(--muted-foreground)); }
.tf-detail-offer-meta span { display:inline-flex; align-items:center; gap:.375rem; }
.tf-detail-offer-meta svg { width:1rem; height:1rem; }
@media(min-width:960px) { .tf-detail-layout { grid-template-columns:minmax(0,2.1fr) minmax(17rem,1fr); gap:2rem; } }
@media(max-width:639px) {
 .tf-detail-hero { padding:1.25rem; }
 .tf-detail-heading { flex-wrap:wrap; }
 .tf-detail-name { font-size:1.5rem; }
 .tf-detail-tools { margin-left:auto; }
 .tf-detail-button { min-height:2.75rem; }
 .tf-detail-button--icon { width:2.75rem; }
 .tf-detail-actions { flex-wrap:wrap; gap:.625rem; }
 .tf-detail-actions>.tf-detail-button { flex:1; min-width:0; padding-inline:.5rem; }
 .tf-detail-intro { font-size:1rem; }
 .tf-share-strip a,.tf-share-strip button { min-height:2.75rem; min-width:2.75rem; }
}
