/* Samoa theme overrides. Every selector is scoped to html[data-island="sm"] so nothing here can reach another island.
   Derived from C:/Users/Alipate/Projects/Samoa685App/src/app/globals.css (the owner's original Samoa copy):
   - :root / bright / night colour variables (Samoa blue and red instead of Tonga's tapa brown), lines ~16-75 there.
   - single-line rules that differ from this repo's globals.css AND use art (tapa/siapo header, hero, chat, news, notices...);
     their url() paths now point to /islands/sm/art/. The tapa pattern file ngatu-v2.webp is shipped here as siapo-v2.webp.
   - Rules for Tonga-only features (kava, pool-hall, Vava'u scenes, stickers) were left out on purpose.
   Other colour-only differences in Samoa685App's globals.css (gradients, glows, buttons) are NOT carried over; add them if needed. */
html[data-island="sm"] {
  --tapa-dark: #0a1a44; --tapa: #002B7F; --tapa-mid: #2a4fa0; --tapa-light: #8fa6d6;
  --cream: #e3eaf8; --paper: #f6f8fd; --paper-2: #eef2fa;
  --ink: #0f1a33; --ink-soft: #46506b; --line: #d4dcee;
  --red: #CE1126; --red-dark: #a30d1e;
  --gold: #2a497e; --gold-bright: #6f92cf;
  --warn: #223c68; --warn-soft: #e0e8f5;
  --shadow: 0 1px 2px rgb(10 26 68 / 0.08), 0 6px 20px rgb(10 26 68 / 0.08);
  --header-ink: #e3eaf8;
}
html[data-island="sm"][data-theme='bright'] {
  --paper: #ffffff; --paper-2: #f1f4fb; --line: #dde4f3;
}
html[data-island="sm"][data-theme='night'] {
  --paper: #10182c; --paper-2: #0b1120; --ink: #e8edf8; --ink-soft: #a9b6d3; --line: #26324f;
  --tapa-dark: #e3eaf8; --cream: #e3eaf8; --warn-soft: #141e30; --gold: #6f92cf;
}

html[data-island="sm"] .hero.tapa { background-color: #2a0a0a; background-image: linear-gradient(90deg, rgb(18 6 6 / calc(var(--wash) + 0.16)) 0%, rgb(18 6 6 / calc(var(--wash) - 0.1)) 55%, rgb(18 6 6 / calc(var(--wash) - 0.55)) 100%), url('/islands/sm/art/v3/hero-poly4.webp'); background-size: auto, 640px; background-position: 0 0, center top; }
html[data-island="sm"] .page-head.tapa { background-color: #2a0a0a; background-image: linear-gradient(90deg, rgb(18 6 6 / calc(var(--wash) + 0.16)) 0%, rgb(18 6 6 / calc(var(--wash) - 0.1)) 55%, rgb(18 6 6 / calc(var(--wash) - 0.55)) 100%), url('/islands/sm/art/v3/hero-poly4.webp'); background-size: auto, 640px; }
@media (max-width: 720px) { html[data-island="sm"] .hero.tapa, html[data-island="sm"] .page-head.tapa { background-image: linear-gradient(90deg, rgb(18 6 6 / calc(var(--wash) + 0.16)) 0%, rgb(18 6 6 / calc(var(--wash) - 0.1)) 55%, rgb(18 6 6 / calc(var(--wash) - 0.55)) 100%), url('/islands/sm/art/v3/hero-poly4-m.webp'); } }
html[data-island="sm"] .site-header.tapa { background-image: linear-gradient(rgb(15 21 37 / var(--wash-head)), rgb(15 21 37 / var(--wash-head))), url('/islands/sm/art/siapo-v2.webp?v=3'); }
html[data-island="sm"] .ft { display: grid; gap: 0; margin: 12px 0; padding: 12px 8px 40px; border-radius: 14px; background: linear-gradient(rgb(243 246 252 / 0.3), rgb(243 246 252 / 0.3)), url(/islands/sm/art/v2/family-tree-bg.webp) center bottom / auto 100% no-repeat, linear-gradient(#e6f4dc, #edf0f8); min-height: 380px; }
html[data-island="sm"][data-theme='night'] .ft { background: linear-gradient(rgb(16 19 28 / 0.6), rgb(16 19 28 / 0.6)), url(/islands/sm/art/v2/family-tree-bg.webp) center bottom / auto 100% no-repeat, #1e2a1a; }
html[data-island="sm"] .home-chat { background: linear-gradient(var(--paper) 35%, rgb(243 246 252 / 0.2) 75%), url(/islands/sm/art/v2/community-bg.webp) center bottom / cover no-repeat, var(--paper); min-height: 320px; }
html[data-island="sm"][data-theme='night'] .home-chat { background: linear-gradient(var(--paper) 35%, rgb(16 19 28 / 0.3) 75%), url(/islands/sm/art/v2/community-bg.webp) center bottom / cover no-repeat, var(--paper); }
html[data-island="sm"] .home-news { background: linear-gradient(rgb(243 246 252 / 0.95) 0%, rgb(243 246 252 / 0.86) 55%, rgb(243 246 252 / 0.45) 100%), url(/islands/sm/art/v2/news-bg.webp) center bottom / cover no-repeat, var(--paper); }
html[data-island="sm"][data-theme='night'] .home-news { background: linear-gradient(rgb(16 19 28 / 0.94) 0%, rgb(16 19 28 / 0.85) 55%, rgb(16 19 28 / 0.5) 100%), url(/islands/sm/art/v2/news-bg.webp) center bottom / cover no-repeat, var(--paper); }
html[data-island="sm"] .mychats-log { background: #a0b2e4 url(/islands/sm/art/v2/mychats-bg.webp) center bottom / cover no-repeat; }
html[data-island="sm"] .profile-theme-ngatu { background: linear-gradient(rgb(240 243 251 / .88), rgb(240 243 251 / .88)), url(/islands/sm/art/siapo-v2.webp?v=3) center / 300px repeat; }
html[data-island="sm"] .verse-card { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; padding: 18px 22px; border-radius: var(--radius); border: 2px solid var(--red); background: linear-gradient(rgb(242 244 251 / .93), rgb(242 244 251 / .93)), url(/islands/sm/art/siapo-v2.webp?v=3) center / 260px repeat; box-shadow: var(--shadow); }
html[data-island="sm"][data-theme='night'] .verse-card { background: linear-gradient(rgb(16 19 28 / .9), rgb(16 19 28 / .9)), url(/islands/sm/art/siapo-v2.webp?v=3) center / 260px repeat; }
html[data-island="sm"] .coming-up { background: #2a2a6e url(/islands/sm/art/v2/coming-up-bg.webp) center bottom / cover no-repeat; border-color: #5475ce; }
html[data-island="sm"] .chat[class*='chat-room-p-'] .chat-log { background: linear-gradient(rgb(238 241 249 / .55), rgb(238 241 249 / .15) 60%), #c9d1e8 url(/islands/sm/art/v2/hall-bg.webp) center bottom / cover no-repeat; }
html[data-island="sm"][data-theme='night'] .chat[class*='chat-room-p-'] .chat-log { background: linear-gradient(rgb(8 11 18 / .62), rgb(8 11 18 / .62)), #141926 url(/islands/sm/art/v2/hall-bg.webp) center bottom / cover no-repeat; }
html[data-island="sm"] .profile-banner.empty { background: linear-gradient(rgb(19 28 53 / .35), rgb(19 28 53 / .55)), url(/islands/sm/art/siapo-v2.webp?v=3) center / 340px repeat; }
html[data-island="sm"] .online-now { margin-bottom: 18px; border: 2px solid #6c88d4; background: linear-gradient(90deg, rgb(217 241 251 / 0) 0%, rgb(217 241 251 / .55) 22%, rgb(217 241 251 / .82) 45%), #d9f1fb url(/islands/sm/art/v2/online-sun-wide.webp) left bottom / cover no-repeat; padding: 14px 16px 14px 150px; min-height: 130px; }
html[data-island="sm"][data-theme='night'] .online-now { background-image: linear-gradient(rgb(8 11 18 / .35), rgb(8 11 18 / .35)), url(/islands/sm/art/v2/online-sun.webp); }
html[data-island="sm"] .bulletin-board { --np-art: url(/islands/sm/art/v2/notice-hibiscus.webp) right -8px top -6px / 190px auto no-repeat, url(/islands/sm/art/v2/notice-leaf.webp) left bottom 30px / 110px auto no-repeat, url(/islands/sm/art/v2/notice-tapa.webp) left bottom / auto 30px repeat-x; background: var(--np-art), repeating-linear-gradient(transparent 0 33px, rgb(120 160 190 / .22) 33px 34px), #f7f9fd; border: 2px solid #939fc0; padding: 18px 150px 48px 78px; }
html[data-island="sm"] .music-box { border: 2px solid #5475ce; background: linear-gradient(rgb(243 246 252 / .82), rgb(243 246 252 / .55)), url(/islands/sm/art/v2/bg/beach-fale.webp) center bottom / cover no-repeat; display: grid; align-content: center; }
html[data-island="sm"][data-theme='night'] .music-box { background-image: linear-gradient(rgb(8 11 18 / .55), rgb(8 11 18 / .55)), url(/islands/sm/art/v2/bg/beach-fale.webp); }
html[data-island="sm"] .group-cover:not([style]),html[data-island="sm"] .group-tile-cover:not([style]),html[data-island="sm"] .event-tile-cover:not([style]),html[data-island="sm"] .event-cover:not([style]) { background-image: linear-gradient(rgb(15 21 37 / .55), rgb(15 21 37 / .55)), url('/islands/sm/art/siapo-v2.webp?v=3'); background-size: auto, 300px; }
html[data-island="sm"] .weather-box { margin-bottom: 18px; padding: 14px 18px; background: linear-gradient(rgb(246 248 253 / .55), rgb(246 248 253 / .25) 60%, rgb(246 248 253 / .1)), url(/islands/sm/art/v2/weather-bg.webp) 70% bottom / cover no-repeat, #bfe0e4; }
html[data-island="sm"][data-theme='night'] .weather-box { background: linear-gradient(rgb(16 19 28 / .72), rgb(16 19 28 / .5)), url(/islands/sm/art/v2/weather-bg.webp) 70% bottom / cover no-repeat, #1d3236; }
html[data-island="sm"] .flight-finder { background: linear-gradient(rgb(246 248 253 / .9), rgb(246 248 253 / .82)), url(/islands/sm/art/v2/scenes/vaka.webp) right bottom / cover no-repeat; }
html[data-island="sm"][data-theme='night'] .flight-finder { background: linear-gradient(rgb(21 24 33 / .9), rgb(21 24 33 / .82)), url(/islands/sm/art/v2/scenes/vaka.webp) right bottom / cover no-repeat; }
html[data-island="sm"] .flights-card { background: linear-gradient(90deg, rgb(246 248 253 / .95) 40%, rgb(246 248 253 / .55)), url(/islands/sm/art/v2/scenes/vaka.webp) right center / cover no-repeat; }
html[data-island="sm"][data-theme='night'] .flights-card { background: linear-gradient(90deg, rgb(21 24 33 / .95) 40%, rgb(21 24 33 / .6)), url(/islands/sm/art/v2/scenes/vaka.webp) right center / cover no-repeat; }
html[data-island="sm"] .jobs-banner { position: relative; display: flex; gap: 16px; align-items: stretch; margin: 18px 0; padding: 18px; border-radius: var(--radius); border: 2px solid #5475ce; box-shadow: var(--shadow); overflow: hidden; background: #d4dbee url(/islands/sm/art/jobs-bg.webp) center 70% / cover no-repeat; }

/* Stickers are on for Samoa685 (29 Nov 2026): the sticker buttons and its own picture emoji (public/islands/sm/art/emoji) show. */

/* The island's phone code next to its name in the header (Tonga draws "676" as art; see src/components/Brand676.tsx). */
html[data-island="sm"] .brand-code { margin-left: 4px; font-weight: 900; color: #fff; background: #CE1126; border-radius: 8px; padding: 0 7px; letter-spacing: 0.5px; }

/* The "All sections" menu panel bar: Samoa navy instead of the base tapa brown. */
html[data-island="sm"] .menu-panel-top { background: #0a1a44; }

/* The island's own coat of arms as a faint watermark behind the home hero and page heads (Tonga's sila gets the same treatment on its hero card). */
html[data-island="sm"] .hero.tapa::before, html[data-island="sm"] .page-head.tapa::before { content: ""; position: absolute; right: 4%; top: 50%; width: min(300px, 46vw); aspect-ratio: 1; transform: translateY(-50%); background: url('/art/sila-large.webp') center / contain no-repeat; opacity: .09; pointer-events: none; }
html[data-island="sm"] .page-head.tapa { position: relative; overflow: hidden; }
html[data-island="sm"] .page-head.tapa::before { width: min(150px, 30vw); right: 3%; opacity: .12; }
html[data-island="sm"] .hero.tapa > .container, html[data-island="sm"] .page-head.tapa > .container { position: relative; z-index: 1; }
