/* Social posts grid and post preview (used on the News page; moved out of the old social.html). */
    .soc-wrap { max-width: 1000px; margin: 0 auto; padding: 48px 20px 80px; }
    .soc-head { text-align: center; margin-bottom: 34px; }
    .soc-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; color: #1e2a4a; }
    .soc-head p { color: #51607f; max-width: 620px; margin: 0 auto 18px; line-height: 1.6; }
    .soc-follow { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 14px; color: #1e2a4a; text-decoration: none; box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 10px 24px -8px rgba(15,23,42,.18); }
    .soc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .soc-item { position: relative; display: block; padding: 0; border: 0; background: #e2e8f0; cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; }
    .soc-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
    .soc-item:hover img, .soc-item:focus-visible img { transform: scale(1.04); }
    .soc-item .ov { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; text-align: left; background: linear-gradient(180deg, rgba(15,23,42,0) 45%, rgba(15,23,42,.78) 100%); opacity: 0; transition: opacity .25s; color: #fff; }
    .soc-item:hover .ov, .soc-item:focus-visible .ov { opacity: 1; }
    .soc-item .ov b { font: 600 15px/1.25 Sora, sans-serif; } .soc-item .ov span { font-size: 12px; opacity: .85; margin-top: 3px; }
    .soc-item .tag { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); color: #1e2a4a; font: 700 11px Sora, sans-serif; padding: 4px 10px; border-radius: 999px; }
    .soc-note { text-align: center; color: #94a3b8; font-size: 13px; margin-top: 30px; }
    /* modal */
    .soc-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(8,12,24,.78); display: none; align-items: center; justify-content: center; padding: 20px; }
    .soc-modal.open { display: flex; }
    .soc-card { background: #fff; border-radius: 18px; width: min(1040px, 100%); height: min(860px, calc(100vh - 40px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
    .soc-media { background: #0f172a; display: flex; align-items: center; justify-content: center; min-height: 0; }
    .soc-media { overflow: hidden; }
    .soc-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; object-fit: contain; }
    .soc-side { padding: 22px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
    .soc-side h2 { font-size: 24px; margin: 0; color: #1e2a4a; }
    .soc-tabs { display: flex; gap: 6px; background: #f1f5f9; border-radius: 12px; padding: 4px; }
    .soc-tabs button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font: 600 13px Sora, sans-serif; color: #51607f; cursor: pointer; }
    .soc-tabs button[aria-selected="true"] { background: #fff; color: #1e2a4a; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
    .soc-size { font-size: 12px; color: #94a3b8; margin-top: -6px; }
    .soc-cap { white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; color: #1e2a4a; background: #f8fafc; border-radius: 12px; padding: 14px 16px; }
    .soc-tagsbox { font-size: 14px; line-height: 1.7; color: #2563eb; background: #f0f5ff; border-radius: 12px; padding: 12px 16px; word-break: break-word; }
    .soc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .soc-btn { border: 0; border-radius: 10px; padding: 11px 16px; font: 600 14px Sora, sans-serif; cursor: pointer; background: #eef2f6; color: #1e2a4a; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
    .soc-btn.primary { background: #1b5e37; color: #fff; }
    .soc-btn.done { background: #16a34a; color: #fff; }
    .soc-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 22px; line-height: 1; cursor: pointer; color: #1e2a4a; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .soc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 22px; cursor: pointer; color: #1e2a4a; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .soc-prev { left: 12px; } .soc-next { right: 12px; }

    .soc-item .stack { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; background: rgba(15,23,42,.62); display: flex; align-items: center; justify-content: center; }
    .soc-item .stack svg { width: 16px; height: 16px; }
    .soc-media { position: relative; touch-action: pan-y; }
    .soc-sarrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 22px; line-height: 1; cursor: pointer; color: #1e2a4a; box-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 2; display: none; }
    .soc-sarrow.show { display: block; } #soc-sprev { left: 10px; } #soc-snext { right: 10px; }
    .soc-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
    .soc-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }
    .soc-dots i.on { background: #fff; transform: scale(1.25); }
    .soc-pn { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #94a3b8; margin-right: 44px; }
    .soc-pn button { border: 0; background: transparent; font: 600 13px Sora, sans-serif; color: #51607f; cursor: pointer; padding: 4px 2px; }
    .soc-pn button:hover { color: #1b5e37; }
    @media (max-width: 820px) { .soc-card { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; max-height: calc(100vh - 40px); overflow-y: auto; } .soc-media { min-height: 0; } .soc-media img { max-height: 55vh; }  .soc-side { overflow: visible; } }
    @media (max-width: 560px) { .soc-grid { gap: 3px; } .soc-item .ov { display: none; } }

.soc-follow{margin:4px 10px 4px 0}
