/**
 * @file        sg-growth.css
 * @description Styles of the growth module: ad places (G3-08), donation button and link (G3-06, G3-07), storage sources and invite section (G3-10)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         3c9e5a71-2b84-4f06-9d1e-8a7b6c5d4e32
 * @version     0.1.0.2
 * @created     2026-12-01
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* G3-08: an ad place has a fixed height so the page doesn't jump when the ad arrives (250 px is the
   common medium rectangle). It never shows as an empty box: the server leaves it out, the script
   removes it when the ad fails. */
.sg-ad { margin: 24px 0; padding: 8px 12px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); max-width: 100%; overflow: hidden; }
.sg-ad__label { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.sg-ad__box { min-height: 250px; display: flex; align-items: center; justify-content: center; max-width: 100%; overflow: hidden; }
.sg-ad__box > * { max-width: 100%; }
.sg-tl-ad { list-style: none; }

/* G3-07: donation button on the profile (ghost, so Follow stays the one orange focal point) and text link on trips. */
.sg-support { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.sg-support__main { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow-wrap: anywhere; }
.sg-support__item { display: flex; align-items: center; gap: 6px; padding: 8px 0; overflow-wrap: anywhere; }
.sg-support-link { margin: 8px 0 0; }
.sg-support-link__a { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.sg-icon--out { width: 16px; height: 16px; flex: none; }

/* G3-06: donation rows. */
.sg-donation { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.sg-donation legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 4px; }
.sg-donation input { width: 100%; max-width: 100%; }

/* G3-10: storage sources and invite list; figures in IBM Plex Mono. */
.sg-growth-sources { list-style: none; margin: 0; padding: 0; }
.sg-growth-sources li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sg-growth-sources li:last-child { border-bottom: 0; }
.sg-growth-invite input[readonly] { width: 100%; max-width: 100%; font-family: var(--font-mono); overflow-x: auto; }
.sg-growth-sources .sg-mono, .sg-growth-invite .sg-mono { font-family: var(--font-mono); }

@media (min-width: 1440px) {
  /* Side column at 1440 px: the profile ad place floats beside the trip list instead of between. */
  .sg-ad--profile { float: right; width: 320px; margin: 0 0 24px 24px; }
}

/* D3-19 (mockup pass 2026-12-02): heading row with the provider count, narrow icon column. */
.sg-growth-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg-growth-head h2 { flex: 1 1 auto; margin: 0; }
.sg-growth-icon { width: 40px; }
.sg-growth-icon .sg-icon { width: 20px; height: 20px; }
