/* Card styling for the link list on /cow-laming-acaris-team-overview/.
 *
 * This lives in a real stylesheet, NOT in a <style> block inside the page
 * content, because post content cannot keep one:
 *
 *   - KSES strips <style> tags from post_content on save for any user
 *     without unfiltered_html (which includes anything saved from CLI),
 *     leaving the raw CSS behind as visible text;
 *   - wptexturize then rewrites that now-plain text, turning every "--"
 *     into an en dash and every quote into a curly quote, which destroys
 *     custom properties (--clt-fg) and content:"" even if the tag had
 *     survived.
 *
 * A stylesheet also survives someone re-saving the page in the Divi
 * builder, which an inline <style> would not.
 */

.clt-wrap {
    --clt-fg: #0f172a;
    --clt-muted: #64748b;
    --clt-line: #e2e8f0;
    --clt-accent: #2563eb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--clt-fg);
    max-width: 1180px;
    margin: 0 auto;
}
.clt-wrap * { box-sizing: border-box; }

.clt-head {
    text-align: center; margin: 0 0 6px;
    font-size: 28px; font-weight: 600; color: var(--clt-fg);
}
.clt-intro {
    text-align: center; margin: 0 0 28px;
    font-size: 15px; color: var(--clt-muted);
}

.clt-group { margin: 0 0 26px; }
.clt-group-title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--clt-muted);
}
.clt-group-title::after { content: ""; flex: 1; height: 1px; background: var(--clt-line); }

.clt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.clt-card {
    display: block; position: relative; overflow: hidden;
    padding: 16px 18px 16px 20px;
    background: #fff; border: 1px solid var(--clt-line); border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.clt-card::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--clt-accent); opacity: .25; transition: opacity .15s ease;
}
.clt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .10);
    border-color: #cbd5e1; text-decoration: none; color: inherit;
}
.clt-card:hover::before { opacity: 1; }
.clt-card:focus-visible { outline: 2px solid var(--clt-accent); outline-offset: 2px; }

.clt-title {
    display: block; margin: 0 0 4px;
    font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--clt-fg);
}
.clt-desc {
    display: block; margin: 0 0 10px;
    font-size: 13px; line-height: 1.5; color: var(--clt-muted);
}
.clt-path {
    display: inline-block; padding: 2px 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px; color: #475569;
    background: #f1f5f9; border: 1px solid var(--clt-line); border-radius: 4px;
    word-break: break-all;
}
.clt-card:hover .clt-path { background: #e8effc; border-color: #c7d8f7; color: #1d4ed8; }

.clt-badge {
    display: inline-block; margin-left: 8px; padding: 1px 7px;
    border-radius: 999px; background: #dcfce7; color: #15803d;
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; vertical-align: middle;
}
.clt-card--new::before { opacity: 1; background: #16a34a; }

@media (max-width: 600px) {
    .clt-grid { grid-template-columns: 1fr; }
    .clt-head { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    .clt-card { transition: none; }
    .clt-card:hover { transform: none; }
}
