:root { --accent: #0d6efd; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --tint: #f6f8fb; }
body { color: var(--ink); background: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; font-weight: 500; border-radius: .25rem; }
a:hover { color: #0a58ca; background: rgba(13, 110, 253, .08); box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .08); }
/* Small arrow marks links that open another site */
a[target="_blank"]:not(.btn):not(.social-pill):not(.nav-link-admin)::after { content: "\2197"; font-size: .8em; margin-left: .2em; }
.btn:hover, .social-pill:hover, .brand:hover, .nav-link-admin:hover { box-shadow: none; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; letter-spacing: -.01em; }
.site-header .brand::before { content: ""; display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); margin-right: .5rem; }
.site-footer { background: var(--tint); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* Hero band */
.hero { background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.hero h1 { font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: var(--muted); max-width: 40rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 1.5rem; }
.hero-stats strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* Section headings */
.section-title { font-weight: 700; margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); position: relative; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 3rem; height: 2px; background: var(--accent); }

/* Cards */
.card-site, .card-update { border: 1px solid var(--line); border-radius: .75rem; padding: 1.1rem; height: 100%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card-site:hover, .card-update:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(16, 24, 40, .07); }
.card-update { border-left: 4px solid #cbd5e1; }
.card-update.u-facebook { border-left-color: #1877f2; } .card-update.u-instagram { border-left-color: #c13584; }
.card-update.u-linkedin { border-left-color: #0a66c2; } .card-update.u-youtube { border-left-color: #e00; }
.card-update.u-x { border-left-color: #111; } .card-update.u-website { border-left-color: #0d9488; }

.logo { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: .5rem; background: #fff; flex-shrink: 0; }
.avatar { width: 56px; height: 56px; border-radius: .5rem; background: #e7f0ff; color: var(--accent); font-weight: 700; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thumb { width: 100%; max-height: 200px; object-fit: cover; border-radius: .5rem; }
.meta { color: var(--muted); font-size: .85rem; }

/* Long video descriptions show only 3 lines, so video cards stay compact */
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }
.card-update .h6 { font-size: .95rem; }

/* YouTube thumbnail (shown when the owner disabled embedding) with a play button */
.video-thumb { display: block; position: relative; border-radius: .5rem; overflow: hidden; background: #000; }
.video-thumb:hover { box-shadow: none; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play { position: absolute; top: 50%; left: 50%; width: 3.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.6rem; background: #e00; border-radius: .6rem; opacity: .92; }
.video-thumb .play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -.5rem 0 0 -.3rem; border-left: .9rem solid #fff; border-top: .5rem solid transparent; border-bottom: .5rem solid transparent; }

/* Platform badge */
.platform { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: #374151; }
.platform .dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-facebook { background: #1877f2; } .p-instagram { background: #c13584; } .p-linkedin { background: #0a66c2; }
.p-website { background: #0d9488; } .p-youtube { background: #e00; } .p-x { background: #000; } .p-other { background: #6c757d; }

/* Social profile pills */
.social-pill { display: inline-block; border: 1px solid var(--line); border-radius: 2rem; padding: .3rem .9rem; margin: 0 .5rem .5rem 0; text-decoration: none; color: var(--ink); background: #fff; font-size: .9rem; }
.social-pill:hover { border-color: var(--accent); color: var(--accent); }

/* Admin nav */
.nav-link-admin, .nav-pill { text-decoration: none; color: #495057; padding: .25rem .75rem; border-radius: .375rem; }
.nav-link-admin:hover, .nav-pill:hover { background: #f1f3f5; box-shadow: none; }
.nav-link-admin.active, .nav-pill.active { background: #0d6efd; color: #fff; font-weight: 600; }
