/* 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; flex:1; }
.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-tools-menu { position:relative; flex:none; }
.tf-detail-menu-toggle { list-style:none; cursor:pointer; }
.tf-detail-menu-toggle::-webkit-details-marker { display:none; }
.tf-detail-tool-label { display:none; }
.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-overview-title { margin:0 0 1rem; 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; max-width:100%; overflow-wrap:anywhere; }
.tf-detail-alternatives-list a:hover { text-decoration:underline; text-underline-offset:3px; }
.tf-detail-alt-icon,.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-icon { display:inline-flex; }
.tf-detail-alt-icon img[hidden],.tf-detail-alt-letter[hidden] { display: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-alternatives-more { color:hsl(var(--muted-foreground)); }
.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:center; gap:.4rem; color:hsl(var(--muted-foreground)); font-size:.875rem; line-height:1.5; overflow-wrap:anywhere; }
.tf-detail-tags b { flex:none; font-size:1.25rem; line-height:1; font-weight:400; color:hsl(var(--muted-foreground)/.7); }
.tf-share-block { margin-top:1.75rem; }
.tf-share-strip { display:inline-flex; flex-wrap:nowrap; align-items:center; gap:.125rem; max-width:100%; padding:.2rem; border:1px solid hsl(var(--border)); border-radius:.375rem; vertical-align:top; }
.tf-share-strip__label { padding-inline:.5rem .25rem; color:hsl(var(--muted-foreground)); font-size:.8125rem; white-space:nowrap; }
.tf-share-strip a,.tf-share-strip button { display:inline-flex; flex:none; align-items:center; justify-content:center; gap:.5rem; min-width:2rem; min-height:2rem; padding:.375rem; border-radius:.25rem; color:hsl(var(--muted-foreground)); font-size:.8125rem; white-space:nowrap; }
.tf-share-strip button[data-copy-detail] { padding-inline:.625rem; margin-right:.125rem; border-right:1px solid hsl(var(--border)); border-radius:0; }
.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,.tf-detail-share-status { margin-top:.5rem; font-size:.75rem; line-height:1.5; color:hsl(var(--muted-foreground)); }
.tf-share-strip__status:empty,.tf-detail-share-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(min-width:640px) {
 .tf-detail-tools-menu[data-menu-ready]>.tf-detail-menu-toggle { display:none; }
}
@media(max-width:639px) {
 .tf-detail-hero { padding:1.25rem; }
 .tf-detail-heading { gap:.75rem; }
 .tf-detail-name { font-size:1.5rem; }
 .tf-detail-tools-menu { z-index:5; }
 .tf-detail-tools-menu .tf-detail-tools { position:absolute; right:0; top:calc(100% + .5rem); width:10.5rem; max-width:calc(100vw - 2rem); padding:.375rem; flex-direction:column; align-items:stretch; gap:.125rem; border:1px solid hsl(var(--border)); border-radius:.375rem; background:hsl(var(--card)); box-shadow:0 4px 12px hsl(var(--foreground)/.08); }
 .tf-detail-tools-menu .tf-detail-tools .tf-detail-button { width:100%; justify-content:flex-start; border-color:transparent; background:transparent; padding:.5rem .75rem; }
 .tf-detail-tools-menu .tf-detail-tools .tf-detail-button:hover { background:hsl(var(--accent)); }
 .tf-detail-tool-label { display:inline; }
 .tf-detail-button { min-height:2.75rem; }
 .tf-detail-button--icon { width:2.75rem; }
 .tf-detail-actions { gap:.625rem; }
 .tf-detail-actions>.tf-detail-button { flex:none; padding-inline:.625rem; white-space:nowrap; font-size:.8125rem; gap:.375rem; }
 .tf-detail-actions>.tf-detail-button--primary { flex:1; min-width:0; }
 .tf-detail-intro { font-size:1rem; }
 .tf-share-strip__copy-label,.tf-share-strip .tf-share-strip__secondary { display:none; }
 .tf-share-strip a,.tf-share-strip button { min-height:2.75rem; min-width:2.75rem; }
 .tf-share-strip button[data-copy-detail] { padding-inline:.375rem; }
 .tf-share-strip__label { padding-inline:.25rem; font-size:.75rem; }
}
@media(max-width:359px) {
 .tf-detail-identity { gap:.5rem; }
 .tf-detail-name { font-size:1.375rem; }
 .tf-detail-actions .tf-detail-upvote-label { display:none; }
}
