/* Social: opt-in deck sharing, matching the existing StudyDeck theme. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.social-hero { justify-content: space-between; padding: 30px; gap: 26px; }
.social-hero h1 { font-size: clamp(23px, 3vw, 34px); letter-spacing: -.7px; margin: 7px 0 10px; }
.social-hero p:not(.social-eyebrow) { color: #b9c2d4; line-height: 1.6; }
.social-eyebrow { color: #b8a7ff; letter-spacing: 1.8px; font-size: 10px; font-weight: 800; }
.social-hero > button { flex-shrink: 0; }
.social-toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.social-tabs { display: flex; gap: 5px; }
#social-search { display: flex; gap: 8px; flex: 1; min-width: 240px; }
#social-query { width: 100%; min-width: 0; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; }
.social-privacy { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.social-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--shared-color); border-radius: 13px; }
.social-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.social-pill { border: 1px solid #343c4c; background: #222734; border-radius: 20px; padding: 4px 10px; color: #c0c8db; font-size: 11px; font-weight: 600; }
.social-owner { color: #bcaaff; font-size: 11px; font-weight: 700; }
.social-title { padding: 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; line-height: 1.35; }
.social-title:hover { color: #bcaaff; }
.social-description { color: #a8b2c5; font-size: 13px; line-height: 1.65; margin: 12px 0 22px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.social-byline { margin-top: auto; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.social-byline strong { color: #c4cadd; font-weight: 600; }
.social-date { color: var(--muted); font-size: 11px; margin: 6px 0 18px; }
.social-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.social-card-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 13px -10px -10px; }
.social-card-tools button { font-size: 11px; }
.social-danger:hover { color: #ffa5b7; }
.social-message { border: 1px solid #345d4c; border-radius: 10px; color: #ade2c6; background: #14251f; padding: 14px 18px; margin: 12px 0 20px; line-height: 1.6; }
.social-message.error { border-color: #743d4c; color: #ffbdcc; background: #301c24; }
.social-message button { margin-left: 12px; }
.social-loading { color: #b6a4f9; padding: 12px 0 24px; }
.social-empty { text-align: center; padding: 55px 20px; border: 1px dashed #373e4c; border-radius: 16px; }
.social-empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border: 1px solid #69519c; border-radius: 15px; color: #bda8ff; font-size: 30px; background: #241f37; }
.social-empty h2 { font-size: 21px; margin-bottom: 10px; }
.social-empty p { color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.social-more { text-align: center; margin-top: 25px; }
.social-modal-note { color: #aeb7ca; line-height: 1.65; font-size: 13px; margin: 12px 0 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-form { display: grid; gap: 16px; }
.social-form > label:not(.social-consent) { display: grid; gap: 7px; font-size: 13px; }
.social-form input:not([type=checkbox]), .social-form select, .social-form textarea { width: 100%; min-width: 0; background: #10131b; color: var(--text); border: 1px solid #3c4556; border-radius: 8px; padding: 10px 12px; font: inherit; }
.social-form textarea { resize: vertical; }
.social-consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.6; }
.social-consent input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; }
.social-form-error { color: #ffbdcc; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.social-preview { display: grid; gap: 12px; margin: 18px 0; }
.social-preview article { padding: 17px; border: 1px solid var(--border); border-radius: 10px; background: #11151d; }
.social-preview article > span { color: #b39eea; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
.social-preview h3 { margin: 10px 0; font-size: 15px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-preview p, .social-preview li { color: #b3becf; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.social-preview summary { margin-top: 12px; color: #b7a8e7; font-size: 12px; cursor: pointer; }
.social-preview ul { padding-left: 20px; }
.social-form input:focus-visible, .social-form select:focus-visible, .social-form textarea:focus-visible,
#social-query:focus-visible, .social-title:focus-visible { outline: 2px solid #a68bff; outline-offset: 3px; }
.content { padding-bottom: 100px; }
@media (max-width: 780px) {
  .topbar { flex-wrap: wrap; padding: 12px 15px; gap: 10px; }
  .topbar-right { margin-left: auto; }
  .topbar nav { order: 3; flex: 1 0 100%; }
  .social-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .social-toolbar { gap: 12px; }
  #social-search { flex-basis: 100%; order: 3; }
  .content { padding: 18px 15px 115px; }
  .social-tabs .btn { padding: 8px 11px; }
  .modal { max-width: calc(100vw - 24px); padding: 22px; }
}
