/* Scoped to the Instagram news integration. No effect on standard news. */
.ig-post { --ig-bg: #fff; --ig-ink: #15243a; --ig-muted: #526579; --ig-border: #dbe5ef; min-width: 0; width: 100%; border: 1px solid var(--ig-border); border-radius: 16px; overflow: hidden; background: var(--ig-bg); color: var(--ig-ink); font: inherit; }
.ig-post [hidden], [data-news-editor] [hidden] { display: none !important; }
.ig-post__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--ig-border); font-size: .75rem; color: var(--ig-muted); }
.ig-post__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ig-ink); font-size: .9375rem; font-weight: 750; }
.ig-post__brand svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ig-post__gate { display: flex; min-height: 320px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 28px 24px; background: linear-gradient(145deg, rgba(100, 71, 200, .06), transparent 65%); }
.ig-post__mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ig-border); border-radius: 12px; font-size: 1.25rem; }
.ig-post__gate strong { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.025em; }
.ig-post .ig-post__gate p { margin: 0; color: var(--ig-muted); font-size: 1rem; line-height: 1.65; }
.ig-post__gate small { font-size: .75rem; line-height: 1.65; color: var(--ig-muted); }
.ig-post .ig-post__button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 44px; padding: 11px 18px; border: 0; border-radius: 9px; background: #075eb6; color: #fff; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 700; }
.ig-post__button:hover { background: #034a93; }
.ig-post__media { width: 100%; min-height: 400px; overflow: hidden; background: #fff; color: #15243a; }
.ig-post .ig-post__media blockquote, .ig-post .ig-post__media iframe { display: block; width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.ig-post .ig-post__media blockquote { padding: 24px !important; }
.ig-post .ig-post__media blockquote::before { display: none; }
.ig-post .ig-post__media iframe { min-height: 400px; }
.ig-post .ig-post__status { margin: 0; padding: 0 20px; color: var(--ig-muted); font-size: .8125rem; line-height: 1.65; }
.ig-post .ig-post__status:not(:empty) { padding-block: 12px; }
.ig-post__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--ig-border); }
.ig-post__footer a, .ig-post__footer button { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ig-ink); font: inherit; font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ig-post__footer button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--ig-muted); }
.news-card--instagram { align-self: start; }
.news-card--instagram .news-card__meta { margin-top: 20px; }
.news-card--instagram .text-link { font-size: .8125rem; }
.news-article-instagram { max-width: 580px; margin: 0 auto 32px; }
.ig-admin-preview { max-width: 500px; margin-top: 20px; }
.ig-editor-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ig-editor-type label { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid #dfe6ef; border-radius: 12px; cursor: pointer; }
.ig-editor-type label:has(input:checked) { border-color: #0872ce; background: #f0f7ff; }
.ig-editor-type input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #0872ce; }
.ig-editor-type strong, .ig-editor-type small { display: block; }
.ig-editor-type strong { color: #15243a; font-size: .9375rem; }
.ig-editor-type small { margin-top: 5px; color: #526579; font-size: .8125rem; line-height: 1.55; }
.ig-editor-link { margin-top: 22px; }
.ig-editor-link__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.ig-editor-link__status { font-size: .875rem; line-height: 1.6; color: #526579; }
.ig-editor-link__status.is-error { color: #b32f3c; }
.ig-editor-badge { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 5px; background: #eef0fc; color: #594692; font-size: .6875rem; font-weight: 700; }
html[data-theme="dark"] .ig-post { --ig-bg: #102239; --ig-ink: #edf4fb; --ig-muted: #adbed0; --ig-border: #294057; }
@media (max-width: 600px) { .ig-editor-type { grid-template-columns: 1fr; } .ig-post__gate { min-height: 290px; padding: 22px 18px; } .ig-post__head, .ig-post__footer { padding-inline: 16px; } }
