:root { --detail-ink: #1d1d1f; --detail-muted: #64748b; --detail-brand: #5b2a6b; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f7fb; color: var(--detail-ink); font-family: 'Anuphan', system-ui, sans-serif; }
.activity-detail-main { padding: 116px 16px 72px; }
.activity-detail-shell { width: min(1300px, 100%); margin: 0 auto; }
.activity-back-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 9px 12px; border: 1px solid transparent; border-radius: 999px; color: #475569; font-size: 13px; font-weight: 650; text-decoration: none; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.activity-back-link:hover { transform: translateX(-3px); border-color: rgba(91,42,107,.14); background: #fff; color: var(--detail-brand); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.activity-back-link svg { width: 16px; height: 16px; }
.activity-detail-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(330px, .8fr); gap: 28px; align-items: stretch; }
.activity-detail-primary, .activity-detail-side, .activity-not-found { border: 1px solid rgba(15,23,42,.07); border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.06); }
.activity-detail-primary { display: flex; min-height: 570px; padding: 12px; background: rgba(255,255,255,.72); }
.activity-image-card { position: relative; flex: 1 1 auto; height: 100%; overflow: hidden; border-radius: 18px; background: #e2e8f0; box-shadow: inset 0 0 0 1px rgba(15,23,42,.05); }
.activity-detail-image { display: block; width: 100%; height: 100%; object-fit: cover; background: #e2e8f0; }
.activity-image-date { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(255,255,255,.88); color: var(--detail-brand); box-shadow: 0 5px 16px rgba(15,23,42,.14); backdrop-filter: blur(10px); font-size: 12px; font-weight: 750; }
.activity-image-date svg { width: 14px; height: 14px; }
.activity-detail-side { height: 100%; overflow: hidden; }
.activity-detail-copy { padding: clamp(24px, 3vw, 34px); }
.activity-detail-date { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #f3edf5; color: var(--detail-brand); font-size: 12px; font-weight: 700; }
.activity-detail-date svg { width: 14px; height: 14px; }
.activity-detail-copy h1 { margin: 15px 0; font-size: clamp(21px, 2vw, 28px); line-height: 1.36; letter-spacing: -.03em; }
.activity-detail-body { color: #475569; font-size: 14px; line-height: 1.9; white-space: normal; }
.activity-detail-side-heading { display: flex; align-items: center; gap: 9px; margin: 0 24px; padding: 16px 0 13px; border-top: 1px solid #e8edf3; border-bottom: 1px solid #e8edf3; font-size: 13px; font-weight: 750; }
.activity-detail-side-heading svg { width: 17px; height: 17px; color: var(--detail-brand); }
.activity-attachments { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 20px; }
.activity-attachment { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 12px; color: #334155; background: #f8fafc; font-size: 12px; font-weight: 600; text-decoration: none; }
.activity-attachment:hover { background: #f3edf5; color: var(--detail-brand); }
.activity-attachment svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--detail-brand); }
.activity-attachment .facebook-logo { width: 18px; height: 18px; color: #1877f2; fill: currentColor; }
.activity-attachment.is-facebook { background: linear-gradient(135deg, #1b74e4 0%, #0a4ea4 100%); color: #fff; box-shadow: 0 7px 16px rgba(10,78,164,.22); animation: facebookPulse 2.6s ease-in-out infinite; }
.activity-attachment.is-facebook:hover { background: linear-gradient(135deg, #2781ee 0%, #083f86 100%); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10,78,164,.3); }
.activity-attachment.is-facebook .facebook-logo, .activity-attachment.is-facebook .activity-attachment-arrow { color: #fff; }
@keyframes facebookPulse { 0%, 100% { box-shadow: 0 7px 16px rgba(10,78,164,.22); } 50% { box-shadow: 0 9px 23px rgba(24,119,242,.45); } }
.activity-attachment span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-attachment .activity-attachment-arrow { margin-left: auto; width: 13px; height: 13px; color: #94a3b8; }
.activity-no-attachments { padding: 16px 24px 22px; color: var(--detail-muted); font-size: 12px; line-height: 1.6; }
.activity-not-found { padding: 56px 24px; text-align: center; }
.activity-not-found > svg { width: 42px; height: 42px; color: #d97706; }
.activity-not-found h1 { margin: 14px 0 6px; font-size: 23px; }
.activity-not-found p { margin: 0 0 20px; color: var(--detail-muted); font-size: 14px; }
.activity-not-found a { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--detail-brand); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.activity-detail-followup { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(330px, .8fr); gap: 28px; margin-top: 28px; }
.activity-detail-more-card { grid-column: 1; overflow: hidden; border: 1px solid rgba(15,23,42,.07); border-radius: 24px; background: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.06); }
.activity-detail-more-heading { display: flex; align-items: center; gap: 9px; padding: 17px 22px; border-bottom: 1px solid #e8edf3; color: var(--detail-brand); font-size: 13px; font-weight: 750; }
.activity-detail-more-heading svg { width: 16px; height: 16px; }
.activity-detail-more-body { padding: 22px; color: #475569; font-size: 14px; line-height: 1.9; }
.activity-related-section { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(15,23,42,.09); }
.activity-related-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.activity-related-heading span { color: var(--detail-brand); font-size: 12px; font-weight: 750; }
.activity-related-heading h2 { margin: 3px 0 0; font-size: clamp(21px, 2.4vw, 29px); letter-spacing: -.03em; }
.activity-related-heading > a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; color: #475569; background: #fff; box-shadow: 0 5px 14px rgba(15,23,42,.06); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.activity-related-heading > a:hover { color: var(--detail-brand); }
.activity-related-heading > a svg { width: 14px; height: 14px; }
.activity-related-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.activity-related-card { min-width: 0; overflow: hidden; border: 1px solid rgba(15,23,42,.06); border-radius: 20px; background: #fff; box-shadow: 0 12px 26px rgba(15,23,42,.05); color: var(--detail-ink); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.activity-related-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15,23,42,.12); }
.activity-related-image-wrap { aspect-ratio: 4 / 3; padding: 10px 10px 0; }
.activity-related-image-wrap img { display: block; width: 100%; height: 100%; border-radius: 13px; object-fit: cover; background: #e2e8f0; }
.activity-related-content { display: flex; flex-direction: column; min-height: 232px; padding: 14px 14px 16px; }
.activity-related-date { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 5px 8px; border-radius: 999px; background: #f3edf5; color: var(--detail-brand); font-size: 10px; font-weight: 750; }
.activity-related-date svg { width: 12px; height: 12px; }
.activity-related-card h3 { display: -webkit-box; margin: 12px 0 8px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 14px; line-height: 1.48; }
.activity-related-card p { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #94a3b8; font-size: 11px; line-height: 1.6; }
.activity-related-more { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 14px; color: var(--detail-brand); font-size: 11px; font-weight: 750; }
.activity-related-more svg { width: 13px; height: 13px; }
@media (max-width: 860px) { .activity-detail-grid, .activity-detail-followup { grid-template-columns: 1fr; } .activity-detail-primary { min-height: 0; } .activity-image-card { height: auto; } .activity-detail-image { height: auto; aspect-ratio: 3 / 2; } .activity-detail-more-card { grid-column: auto; } }
@media (max-width: 1100px) { .activity-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .activity-detail-main { padding: 96px 14px 48px; } .activity-detail-primary, .activity-detail-side, .activity-not-found, .activity-detail-more-card { border-radius: 18px; } .activity-detail-primary { padding: 8px; } .activity-image-card { border-radius: 13px; } .activity-image-date { right: 10px; bottom: 10px; padding: 7px 10px; font-size: 11px; } .activity-detail-copy { padding: 22px 18px; } .activity-detail-side-heading { margin: 0 18px; } .activity-no-attachments { padding-right: 18px; padding-left: 18px; } .activity-detail-body { font-size: 14px; line-height: 1.8; } .activity-detail-followup { margin-top: 16px; } .activity-detail-more-heading { padding: 15px 18px; } .activity-detail-more-body { padding: 18px; font-size: 14px; line-height: 1.8; } .activity-related-section { margin-top: 30px; padding-top: 24px; } .activity-related-heading { align-items: start; flex-direction: column; gap: 10px; } .activity-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .activity-related-card { border-radius: 15px; } .activity-related-image-wrap { padding: 7px 7px 0; } .activity-related-image-wrap img { border-radius: 10px; } .activity-related-content { min-height: 205px; padding: 11px; } .activity-related-card h3 { margin-top: 9px; font-size: 12px; } .activity-related-card p { font-size: 10px; } }
