/* Post detail: one social story, clear author actions and a visible conversation. */
.sp-social{--social-ink:#234b70;--social-title:#174e83;--social-muted:#647e96;max-width:1040px;margin:0 auto;color:var(--social-ink)}
.sp-social :is(h1,h2,h3,strong,label,legend){color:var(--social-title)}
.sp-social :is(button,input,textarea){font-family:inherit}
.sp-social-nav{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 4px 20px;color:var(--social-muted);font-size:12px}
.sp-social-story{background:#fff;border:1px solid #dce7f0;border-radius:24px;overflow:hidden;box-shadow:0 8px 30px #1c4b7010}
.sp-social-head{padding:30px 34px 0}
.sp-social-byline{display:flex;align-items:center;gap:12px;font-size:14px}
.sp-social-byline>div{min-width:0;flex:1}
.sp-social-byline small{display:block;line-height:1.55;overflow-wrap:anywhere;color:var(--social-muted);font-size:12px}
.sp-social .sp-avatar{width:46px;height:46px;flex:none;background:#eaf3fc;color:#205e98;border:1px solid #d7e8f7;font-size:14px;letter-spacing:.02em}
.sp-social-byline .sp-tag{padding:6px 12px;background:#f0f6fc;color:#316995;font-size:11px}
.sp-social .sp-social-head h1{font-size:clamp(26px,3vw,34px);font-weight:750;line-height:1.2;letter-spacing:-.035em;margin:24px 0 14px;overflow-wrap:anywhere;color:var(--social-title)}
.sp-social-intro{font-size:17px;line-height:1.65;color:var(--social-muted);margin:0 0 22px!important;overflow-wrap:anywhere}
.sp-social-actions{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0 22px;border-bottom:1px solid #e7eff6}
.sp-social .sp-social-actions .sp-button{min-height:40px;padding:9px 14px;font-size:13px;border-color:#dbe8f4;border-radius:10px;background:#fff;color:#21639e;box-shadow:none}
.sp-social-actions .sp-button:hover{background:#f0f6fc}
.sp-count{display:inline-grid;place-items:center;border-radius:20px;min-width:22px;padding:1px 6px;background:#eaf2fa;color:#326992;font-size:11px;font-weight:750}
.sp-draft-banner{margin-top:22px;border:1px solid #d9e7f2;border-radius:14px;background:#f4f8fc;padding:17px 20px;display:flex;gap:20px;align-items:center}
.sp-draft-banner>div{flex:1;min-width:0}
.sp-draft-banner strong{font-size:14px}
.sp-draft-banner p{margin:5px 0 0;font-size:13px;line-height:1.6;color:var(--social-muted)}
.sp-draft-banner form{flex-shrink:0;margin:0}
.sp-social .sp-draft-banner .sp-button{background:#1767a7;border-color:#1767a7;color:#fff;font-size:13px;min-height:42px}
.sp-social-content{padding:0 34px 30px}
.sp-social .sp-prose{font-size:17px;line-height:1.85;color:var(--social-ink);margin:26px 0;padding:0;background:transparent;border:0;border-radius:0;overflow-wrap:anywhere}
.sp-social .sp-prose>p:first-child{margin-top:0}
.sp-social .sp-prose>p:last-child{margin-bottom:0}
.sp-social .sp-prose:empty{display:none}
.sp-social .sp-prose a{color:#1767a7;text-decoration:underline;text-underline-offset:3px}
.sp-social .sp-prose blockquote{background:#f3f8fc;border-left:3px solid #6a9cc7;padding:12px 20px;border-radius:0 10px 10px 0;margin:22px 0}
.sp-social .sp-story-photo{margin:22px 0}
.sp-social .sp-photo{border-radius:14px;background:#f0f5f9}
.sp-social figcaption{font-size:13px;line-height:1.6;color:var(--social-muted);padding:10px 2px}
.sp-social .sp-gallery,.sp-social .sp-videos{margin:28px 0}
.sp-social .sp-section-head{align-items:center;margin-bottom:20px}
.sp-social .sp-section-head h2{font-size:20px;margin:5px 0 0;letter-spacing:-.025em}
.sp-social .sp-section-head>div{min-width:0}
.sp-social .sp-kicker{font-size:10px;letter-spacing:.1em;font-weight:750;color:#68849c}
.sp-social .sp-video-card{border-color:#dce8f3;padding:10px}
.sp-social .sp-video-poster{background:#eef5fb;min-height:250px}
.sp-social .sp-video-poster strong{font-size:16px}
.sp-flight-story{scroll-margin-top:24px;background:#f6f9fc;border:1px solid #dfeaf3;border-radius:18px;padding:24px;margin-top:28px}
.sp-aircraft-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid #d9e6f1;background:#fff;color:#2b638f;border-radius:20px;font-size:12px;font-weight:700;overflow-wrap:anywhere;max-width:45%}
.sp-route-banner{display:grid;grid-template-columns:minmax(0,1fr) minmax(40px,.65fr) minmax(0,1fr);gap:20px;align-items:center;padding:20px 0 18px}
.sp-route-banner>div:last-child{text-align:right}
.sp-route-banner small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--social-muted)}
.sp-route-banner strong{display:block;font-size:clamp(20px,3vw,30px);line-height:1.25;margin-top:7px;overflow-wrap:anywhere;letter-spacing:-.03em}
.sp-route-line{position:relative;text-align:center;color:#5586b0;font-size:25px;background:linear-gradient(#c5d9ea,#c5d9ea) center/100% 1px no-repeat}
.sp-flight-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 16px;font-size:12px;color:var(--social-muted)}
.sp-flight-meta a{font-weight:700}
.sp-track-story{border-top:1px solid #dce7f0;margin-top:8px;padding-top:22px}
.sp-track-heading{display:flex;gap:14px;align-items:center;margin-bottom:18px}
.sp-track-heading h3{font-size:17px;margin:0 0 5px}
.sp-track-heading p{font-size:13px;color:var(--social-muted);margin:0;line-height:1.6}
.sp-track-icon{display:grid;place-items:center;border-radius:12px;background:#e5eff9;color:#3976a6;width:48px;height:48px;font-size:34px;flex-shrink:0}
.sp-track-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.sp-track-stats>div{padding:14px;background:#fff;border:1px solid #e0eaf3;border-radius:12px}
.sp-track-stats small{display:block;font-size:11px;line-height:1.4;margin-bottom:5px}
.sp-track-stats strong{font-size:20px;line-height:1.3;display:block}
.sp-track-stats strong span{font-size:12px;font-weight:500}
.sp-social .sp-track-story>.sp-button{font-size:13px;border-color:#cbdfee;color:#22669e;background:#fff}
.sp-social-discussion{scroll-margin-top:24px;margin:22px 0;padding:28px 34px;border-radius:24px;background:white;box-shadow:0 8px 30px #1c4b7008}
.sp-social .sp-social-discussion>.sp-hint{margin:0 0 20px;font-size:13px}
.sp-comment-locked{padding:20px;border:1px dashed #cbdde9;border-radius:14px;background:#f7fafd}
.sp-comment-locked strong{font-size:15px}
.sp-comment-locked p{font-size:13px;margin:8px 0 16px}
.sp-social .sp-comment-form{margin:22px 0}
.sp-social .sp-comment-form label{font-size:13px;gap:10px}
.sp-social .sp-comment-form textarea{background:#f8fbfd;border:1px solid #d8e6f1;min-height:105px;resize:none;color:var(--social-ink);font-size:15px;border-radius:14px;padding:16px}
.sp-social .sp-comment-form .sp-button{background:#fff;border-color:#cbdfee;color:#21639e;font-size:13px;min-height:42px}
.sp-social .sp-rating-details{padding:0 0 12px;border-bottom:1px solid #e5edf5}
.sp-social .sp-rating-details>summary{font-size:13px;color:#376c98}
.sp-social .sp-vote{margin:12px 0 0;padding:8px 0;border:0}
.sp-social .sp-stars span{background:#f5f9fc;color:#487caa;border:1px solid #d9e7f2}
.sp-social .sp-stars input:checked+span{background:#e2effa;border-color:#5d95c3;color:#215c8e}
.sp-social .sp-comment{display:flex;gap:12px;border:0;padding:0;margin:20px 0}
.sp-comment-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;background:#eaf2fa;border-radius:50%;color:#316a98;font-size:12px;font-weight:700}
.sp-comment-bubble{flex:1;min-width:0;border-radius:0 14px 14px;background:#f5f8fc;padding:15px 18px}
.sp-comment-bubble>.sp-row{gap:8px;font-size:13px}
.sp-comment-bubble small{font-size:11px}
.sp-social .sp-comment-bubble p{margin:8px 0 0;color:var(--social-ink);font-size:14px}
.sp-social .sp-admin-tools{box-shadow:none;border-radius:16px;background:#f8fbfd}
.sp-social .sp-admin-tools>summary{font-size:14px}
.sp-social .sp-moderation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.sp-social>.sp-panel:has([value=delete_post]){background:transparent;border:0;padding:0 4px;margin:18px 0}
@media(max-width:640px){
 .sp-social-nav{margin-bottom:15px}.sp-social-nav>span{display:none}
 .sp-social-story,.sp-social-discussion{border-radius:18px}
 .sp-social-head{padding:22px 20px 0}.sp-social-content{padding:0 20px 22px}
 .sp-social .sp-social-head h1{font-size:27px;margin-top:22px}
 .sp-social-byline{flex-wrap:wrap;gap:10px}.sp-social-byline .sp-tag{margin-left:56px;margin-top:-4px}
 .sp-social-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:18px}
 .sp-social .sp-social-actions .sp-button{font-size:12px;padding:10px 8px}
 .sp-draft-banner{display:block;padding:16px}.sp-draft-banner form{margin-top:14px}.sp-draft-banner .sp-button{width:100%}
 .sp-social .sp-prose{font-size:16px;line-height:1.75;margin-top:22px}
 .sp-flight-story{padding:18px}.sp-flight-story .sp-section-head{flex-wrap:wrap;gap:12px}
 .sp-aircraft-chip{max-width:100%}.sp-route-banner{gap:12px;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr)}
 .sp-route-banner strong{font-size:23px}.sp-track-stats{grid-template-columns:1fr}.sp-track-stats>div{display:flex;justify-content:space-between;align-items:center;gap:12px}
 .sp-track-stats small{margin:0}.sp-track-stats strong{font-size:18px;white-space:nowrap}
 .sp-social-discussion{padding:22px 20px}.sp-social .sp-section-head h2{font-size:19px}
 .sp-comment-bubble{padding:13px}.sp-social .sp-moderation-grid{grid-template-columns:1fr}
 .sp-social .sp-photo-grid{grid-template-columns:1fr}.sp-social .sp-video-poster{min-height:180px}
}

/* Inline media follows the text immediately, without gallery-sized gutters. */
.sp-social .sp-prose>figure{margin:0;padding:0;overflow:hidden}
.sp-social .sp-prose>p:has(+figure),.sp-social .sp-prose>figure+p{margin-top:0;margin-bottom:0}
.sp-social .sp-prose .sp-video-card{padding:0;border:0;background:transparent}
.sp-social .sp-prose figcaption:empty,.sp-social [data-video-state]:empty{display:none}
.sp-track-map{display:block;width:100%;height:500px;border:1px solid #cbddee;border-radius:14px;margin:16px 0 12px;background:#edf5fa}
/* Sharing stays beside the other story actions, with one state-changing control. */
.sp-social-actions .sp-share-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:380px;scroll-margin-top:24px}
.sp-social-actions .sp-share-controls form{margin:0;padding:0}
.sp-social .sp-share-controls .sp-sharing-active{border-color:#9bc9b6;background:#f0f8f4;color:#28694f}
.sp-share-note{flex-basis:100%;font-size:12px;line-height:1.45;color:var(--social-muted)}
.sp-share-feedback{flex-basis:100%;font-size:12px;color:#28694f}
.sp-share-feedback:empty{display:none}
.sp-share-controls [data-share-url]{flex-basis:100%;width:100%;min-width:0;padding:10px;border:1px solid #cbddee;border-radius:9px;background:#f5faff;color:#17446c;font:inherit}
.sp-share-controls [data-share-url][hidden]{display:none}
.sp-social .sp-share-controls button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:640px){.sp-social-actions .sp-share-controls{grid-column:1/-1;max-width:none}}
@media(max-width:600px){
 .sp-track-map{height:520px;margin-top:12px}
 .sp-track-heading{gap:10px;margin-bottom:12px}
 .sp-track-icon{width:34px;height:34px;border-radius:10px}
 .sp-track-icon svg{width:22px;height:22px}
 .sp-track-stats{gap:0;margin:12px 0;border:1px solid #dce7f0;border-radius:12px;background:#fff;overflow:hidden}
 .sp-track-stats>div{padding:9px 12px;border:0;border-radius:0;background:transparent}
 .sp-track-stats>div+div{border-top:1px solid #e7eff6}
 .sp-track-stats strong{font-size:16px}
 .sp-social .sp-track-story>.sp-button{display:flex;justify-content:center;width:100%;min-height:44px}
}

/* Five stars above the comment; fractional averages retain the same five positions. */
.sp-rating-summary{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px;color:#376c98;font-size:13px;line-height:1.5}
.sp-rating-stars{position:relative;display:inline-block;flex:none;white-space:nowrap;color:#cedce7;font-family:Arial,sans-serif;font-size:23px;line-height:1.2;letter-spacing:2px;vertical-align:middle}
.sp-rating-stars-filled{position:absolute;inset:0 auto 0 0;overflow:hidden;white-space:nowrap;color:#ae781b}
.sp-comment-rating{margin-top:8px;line-height:1}
.sp-comment-rating .sp-rating-stars{font-size:18px}
.sp-rating-owner{margin:18px 0 8px}

/* Compact preview; the player expands only after an explicit click. */
.sp-social .sp-video-card,.sp-social .sp-prose .sp-video-card{width:100%;max-width:420px;margin:12px auto;padding:0;border:0;background:transparent}
.sp-social .sp-video-card.sp-video-playing{max-width:800px}
.sp-social .sp-video-poster{min-height:0;padding:18px 20px;gap:10px;border:1px solid #dce8f3}
.sp-social .sp-video-symbol{width:38px;height:38px;font-size:18px}
.sp-social .sp-video-poster strong{font-size:14px;line-height:1.4}
.sp-social .sp-video-poster .sp-button{min-height:38px;padding:8px 16px;font-size:13px}
.sp-social .sp-video-card [data-video-state]{text-align:center;font-size:12px;margin:6px 0}
.sp-social .sp-comment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 20px;margin-top:14px}
.sp-social .sp-comment-rating-picker{border:0;padding:0;margin:0;min-width:0}
.sp-social .sp-comment-rating-picker legend{font-size:12px;color:#58748e;margin:0 0 3px;padding:0}
.sp-social .sp-rating-options{display:flex;gap:2px}
.sp-social .sp-rating-options label{position:relative;display:block;margin:0;cursor:pointer}
.sp-rating-options input{position:absolute;width:1px;height:1px;opacity:0}
.sp-rating-options span{display:grid;place-items:center;width:36px;height:36px;font:30px/1 system-ui;color:#b9c9d6;border-radius:6px}
.sp-rating-options label:has(input:checked) span,.sp-rating-options label:has(~ label input:checked) span{color:#b58020}
.sp-rating-options input:focus-visible+span{outline:3px solid #78aee4;outline-offset:1px}
.sp-social .sp-own-rating-hint{font-size:13px;color:#58748e;margin:0;max-width:360px;line-height:1.5}
.sp-social .sp-remove-rating{margin:-8px 0 22px}
.sp-social .sp-comment-actions .sp-text-button,.sp-social .sp-remove-rating .sp-text-button{font-size:13px}
@media(max-width:480px){.sp-social .sp-comment-actions{gap:12px}.sp-social .sp-comment-actions>.sp-button{width:100%}.sp-social .sp-own-rating-hint{max-width:none}}

/* A real Stream frame beneath the play control; no video download until play. */
.sp-social .sp-video-poster{position:relative;overflow:hidden}
.sp-social .sp-video-poster [data-video-thumbnail]{display:none}
.sp-social .sp-video-has-thumbnail{aspect-ratio:16/9;padding:16px;min-height:0;background:#edf5fa}
.sp-social .sp-video-has-thumbnail [data-video-thumbnail]{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;margin:0;border-radius:0}
.sp-social .sp-video-has-thumbnail::after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,rgba(15,42,64,.65));pointer-events:none}
.sp-social .sp-video-has-thumbnail .sp-video-symbol{display:none}
.sp-social .sp-video-has-thumbnail strong{position:absolute;bottom:12px;left:12px;right:12px;z-index:1;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-social .sp-video-has-thumbnail [data-video-play]{position:relative;z-index:2;box-shadow:0 2px 12px #173c5c33}
.sp-social .sp-video-has-thumbnail [data-video-play]::before{content:'▶';margin-right:8px}

/* One reply level keeps conversations legible on phones as well as desktop. */
.sp-comment-thread{scroll-margin-top:24px}
.sp-comment-thread+.sp-comment-thread{border-top:1px solid #e5edf5;padding-top:4px}
.sp-social .sp-thread-replies{margin:0 0 24px 46px;padding-left:18px;border-left:2px solid #d8e7f4}
.sp-social .sp-thread-replies .sp-comment-bubble{background:#f8fbfe}
.sp-social .sp-replies-label{font-size:12px;color:#587b99;font-weight:650;margin:0}
.sp-social .sp-comment-bubble .sp-reply-context{color:#587b99;font-size:12px;margin:8px 0}
.sp-social .sp-comment-bubble .sp-comment-removed{color:#a75a62;font-style:italic;font-size:13px}
.sp-social .sp-comment-tools{display:flex;gap:4px 18px;flex-wrap:wrap;margin-top:10px}
.sp-social .sp-comment-tools>details[open]{flex-basis:100%}
.sp-social .sp-comment-tools>details>summary{font-size:12px;padding:4px 0;color:#21639e;list-style:none}
.sp-social .sp-comment-tools>details>summary::-webkit-details-marker{display:none}
.sp-social .sp-comment-tools>details>summary::after{content:' +';font-weight:700}
.sp-social .sp-comment-tools>details[open]>summary::after{content:' −'}
.sp-social .sp-reply-form label{font-size:12px;color:#587b99;margin:0 0 10px;display:block}
.sp-social .sp-reply-form textarea,.sp-social .sp-comment-edit textarea{display:block;width:100%;margin-top:8px;resize:none;min-height:90px;border-radius:10px;font-size:14px;background:#fff}
.sp-social .sp-reply-form .sp-button{min-height:36px;padding:8px 14px;font-size:12px;background:#fff;color:#21639e;border-color:#cbdfee}
.sp-social .sp-comment:target .sp-comment-bubble{outline:2px solid #9bc2e4;outline-offset:3px}
@media(max-width:640px){.sp-social .sp-thread-replies{margin-left:12px;padding-left:10px}.sp-social .sp-comment-reply{gap:8px}.sp-social .sp-comment-reply .sp-comment-avatar{width:28px;height:28px}.sp-social .sp-comment-reply .sp-comment-bubble{padding:12px}.sp-social .sp-thread-replies .sp-pagination{flex-wrap:wrap}}
