/* Shared styles for /tools/ pages and the tools hub. */
.tool-head { padding-block: clamp(44px, 6vw, 80px) 28px; max-width: 980px; position: relative }
.tool-head::before { content: ""; position: absolute; left: 50%; top: -140px; width: min(900px, 100vw); height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 181, 71, .10), transparent); pointer-events: none; z-index: -1 }
.tool-head h1 { font-size: clamp(38px, 5.6vw, 76px); margin: 16px 0 0 }
.tool-head h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--beam); letter-spacing: 0 }
.tool-app { margin-bottom: clamp(40px, 6vw, 80px) }
.tool-body { border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 50px) }
.tool-body .prose > h2:first-child { margin-top: 0 }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px }
.tool-card { display: flex; flex-direction: column; border-radius: 24px; background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .3s, transform .4s var(--ease) }
.tool-card:hover { border-color: var(--line2); transform: translateY(-3px) }
.tc-art { display: block; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 10%, rgba(107, 138, 255, .16), transparent 70%), linear-gradient(#141826, #0d0f17) }
.tc-art svg { display: block; width: 100%; height: 100%; transition: transform .6s var(--ease) }
.tool-card:hover .tc-art svg { transform: scale(1.04) }
.tc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px 24px 24px }
.tool-card b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; color: var(--fg) }
.tool-card p { margin: 0; color: var(--mute); font-size: 15.5px }
.tc-go { margin-top: auto; padding-top: 6px; color: var(--accent2); font-weight: 600; font-size: 15px }

/* TMDB credit (required by TMDB's terms) */
.tmdb-credit { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); color: var(--dim); font-size: 13px }
.tmdb-credit img { height: 14px; width: auto; flex: none }
.tmdb-credit > a:first-child { flex: none; color: var(--mute); font-weight: 700; text-decoration: none }
.tmdb-credit a { color: var(--mute) }

