/* New Way’s Community: the thank-you card. Loaded only on Community pages and Admin’s Community screens,
   so the rest of the website's styles are untouched.
   Colours from the official logo: navy #000428, gold #F8B709 (highlight #FFED81). */

.nwc-card {
  position: relative; width: 100%; aspect-ratio: 1200 / 630; overflow: hidden;
  border-radius: 14px; background: #030A3C;
  box-shadow: 0 0 0 1px rgba(248, 183, 9, 0.35), 0 10px 30px rgba(0, 4, 40, 0.6);
}
.nwc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.nwc-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.nwc-layer text { font-kerning: normal; }

/* The badge's gentle gold light: a soft band passes across the badge, then rests, and the halo breathes slowly */
.nwc-shine { opacity: 0; mix-blend-mode: screen; transform-box: fill-box; }
.nwc-halo { opacity: 0.45; transform-box: fill-box; transform-origin: center; }
.nwc-animate .nwc-shine { animation: nwc-sweep 5.5s ease-in-out infinite; }
.nwc-animate .nwc-halo { animation: nwc-glow 5.5s ease-in-out infinite; }
@keyframes nwc-sweep {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  52% { opacity: 1; }
  58% { transform: translateX(267%); opacity: 0; }
  100% { transform: translateX(267%); opacity: 0; }
}
@keyframes nwc-glow { 0%, 100% { opacity: 0.35; } 40% { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) {
  .nwc-animate .nwc-shine, .nwc-animate .nwc-halo { animation: none; }
  .nwc-shine { display: none; }
}

/* ---------- the public post page ---------- */
.nwc-post { display: grid; gap: 14px; width: 100%; max-width: 760px; margin: 0 auto; }
.nwc-meta { color: #FFED81; font-size: 0.95rem; text-align: center; }

/* ---------- Admin: Community preview ---------- */
.nwc-admin-intro { display: grid; gap: 8px; margin-bottom: 14px; }
.nwc-toggles { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.nwc-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(248, 183, 9, 0.6); color: #fff; text-decoration: none; font-weight: 500;
}
.nwc-toggle[aria-pressed="true"] { background: #F8B709; border-color: #F8B709; color: #000428; }
.nwc-preview-list { display: grid; gap: 22px; }
.nwc-preview-item { display: grid; gap: 8px; }
.nwc-preview-item h2 { font-size: 1.05rem; color: #FFED81; }

/* ---------- Admin: Community cards and the card editor (phone first) ---------- */
.nwc-h2 { font-size: 20px; margin: 22px 0 10px; }
.nwc-note { margin: 4px 0 10px; color: #DDE3FF; font-size: 15px; }
.nwc-label { display: block; margin: 0 0 6px; font-weight: 500; }
.nwc-status { margin: 0 0 12px; line-height: 1.7; }
.nwc-status .chip { margin-right: 6px; }
.nwc-ed-preview {
  position: sticky; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 6;
  margin: 0 -16px 8px; padding: 8px 16px; background: rgba(0, 4, 40, 0.97); border-bottom: 1px solid #0C2CAA;
}
.nwc-ed-preview .nwc-card { touch-action: none; user-select: none; -webkit-user-select: none; }
.nwc-ed-preview [data-role] { cursor: grab; }
.nwc-ed-warn { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid #FF8A80; background: #3A0A1E; font-size: 15px; }
.nwc-move { margin: 4px 0 14px; }
.nwc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.nwc-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid #0C2CAA; background: #09186A; color: #FFFFFF; font: inherit; font-size: 15px; cursor: pointer; }
.nwc-chip[aria-pressed="true"] { background: #F8B709; border-color: #F8B709; color: #000428; font-weight: 500; }
.nwc-pad {
  display: grid; grid-template-columns: repeat(3, 56px) 16px repeat(2, 56px); grid-template-rows: repeat(3, 52px); gap: 6px;
  grid-template-areas: ". up . gap smaller bigger" "left centre right gap . ." ". down . gap . .";
}
.nwc-padbtn { border-radius: 14px; border: 1px solid #F8B709; background: #030A3C; color: #F8B709; font: inherit; font-size: 18px; cursor: pointer; touch-action: manipulation; }
.nwc-padbtn:active { background: #09186A; }
.nwc-up { grid-area: up; } .nwc-down { grid-area: down; } .nwc-left { grid-area: left; } .nwc-right { grid-area: right; }
.nwc-centre { grid-area: centre; font-size: 13px; } .nwc-smaller { grid-area: smaller; } .nwc-bigger { grid-area: bigger; }
.nwc-sec { margin: 0 0 12px; padding: 0 14px; border-radius: 16px; border: 1px solid #0C2CAA; background: #030A3C; }
.nwc-sec > summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 500; font-size: 17px; color: #FFED81; }
.nwc-sec[open] > summary { margin-bottom: 4px; }
.nwc-sec > :last-child { margin-bottom: 14px; }
.nwc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nwc-range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin: 0 0 14px; }
.nwc-range label { grid-column: 1 / -1; font-weight: 500; }
.nwc-range input[type="range"] { width: 100%; min-height: 40px; accent-color: #F8B709; }
.nwc-range output { min-width: 3.2em; text-align: right; color: #FFED81; font-variant-numeric: tabular-nums; }
.nwc-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nwc-swatch { width: 44px; height: 44px; padding: 6px; border-radius: 50%; border: 1px solid #0C2CAA; background: #000428; cursor: pointer; }
.nwc-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); }
.nwc-sw-f8b709 { background: #F8B709; } .nwc-sw-ffed81 { background: #FFED81; } .nwc-sw-ffffff { background: #FFFFFF; }
.nwc-sw-9cc2ff { background: #9CC2FF; } .nwc-sw-0669f9 { background: #0669F9; } .nwc-sw-000428 { background: #000428; }
.nwc-swatches input[type="color"] { width: 56px; height: 44px; padding: 2px; border-radius: 12px; border: 1px solid #0C2CAA; background: #000428; }
.nwc-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 4px; }
.nwc-thumb { position: relative; display: grid; gap: 4px; font-size: 13px; text-align: center; cursor: pointer; }
.nwc-thumb input { position: absolute; opacity: 0; pointer-events: none; }
.nwc-thumb img { width: 100%; height: auto; border-radius: 8px; border: 2px solid transparent; }
.nwc-thumb input:checked + img { border-color: #F8B709; box-shadow: 0 0 0 2px #F8B709; }
.nwc-thumb input:focus-visible + img { outline: 3px solid #FFED81; outline-offset: 2px; }
.nwc-actions { display: grid; gap: 12px; margin: 20px 0 8px; }
.nwc-publish {
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 2px solid #F8B709; background: #09186A; color: #FFED81;
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; cursor: pointer;
}
.nwc-fb { margin: 18px 0; padding: 4px 14px 14px; border-radius: 16px; border: 1px solid #F8B709; background: #030A3C; }
.nwc-fbbtn { margin: 4px 0; }
.nwc-danger { margin-top: 26px; padding-top: 16px; border-top: 1px solid #0C2CAA; }

/* ---------- the public Community: welcome panel, reactions and comments ---------- */
.nwc-testing { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; border: 1px dashed #F8B709; color: #FFED81; font-size: 14px; text-align: center; }
.nwc-small { font-size: 14px; color: #DDE3FF; }
.nwc-center { text-align: center; }
.nwc-section-h { margin: 22px 0 12px; font-size: 22px; color: #F8B709; }
.nwc-welcome { margin: 14px 0; padding: 16px; border-radius: 22px; display: grid; gap: 10px; }
.nwc-welcome h2 { font-size: 21px; color: #F8B709; }
.nwc-welcome-actions { display: grid; gap: 10px; }
.nwc-fbhelp { margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid #F8B709; background: #2E2203; display: grid; gap: 8px; }
.nwc-fbhelp h2 { font-size: 18px; color: #FFD45C; }
.btn-gold-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 16px; letter-spacing: 0.03em; color: #000428; text-decoration: none;
  background: linear-gradient(180deg, #FFED81 0%, #F8B709 45%, #C67809 100%); box-shadow: 0 0 18px rgba(248,183,9,0.35);
}
.btn-gold-pill:disabled { opacity: 0.6; }
.nwc-reactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nwc-react { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1px solid #0255F3; background: #030A3C; color: #FFFFFF; font: inherit; font-size: 16px; cursor: pointer; }
.nwc-react[aria-pressed="true"] { border-color: #F8B709; background: #2E2203; color: #FFED81; }
.nwc-count { color: #FFED81; font-weight: 500; }
.nwc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.nwc-list-link { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.nwc-list-title { font-family: 'Cinzel', Georgia, serif; font-size: 18px; color: #FFED81; }
.nwc-list-meta { font-size: 14px; color: #DDE3FF; margin-top: 2px; }
.nwc-comments { max-width: 760px; margin: 0 auto; }
.nwc-comment-list, .nwc-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nwc-replies { margin-top: 10px; padding-left: 14px; border-left: 2px solid #0C2CAA; }
.nwc-comment { padding: 12px 14px; border-radius: 16px; background: #030A3C; border: 1px solid #0C2CAA; }
.nwc-comment-official { border-color: #2FBF71; box-shadow: 0 0 0 1px rgba(47,191,113,0.35); }
.nwc-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.nwc-name { font-weight: 500; color: #FFFFFF; }
.nwc-official { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #0F5132; color: #D9FBE8; font-weight: 600; }
.nwc-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2FBF71; color: #00240F; font-size: 13px; font-weight: 700; }
.nwc-when { font-size: 13px; color: #B9C3EE; }
.nwc-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.nwc-comment-text a { color: #9CC2FF; }
.nwc-comment-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nwc-act { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid #0C2CAA; background: transparent; color: #DDE3FF; font: inherit; font-size: 14px; cursor: pointer; }
.nwc-act[aria-pressed="true"] { border-color: #F8B709; color: #FFED81; }
.nwc-act-quiet { border-color: transparent; color: #B9C3EE; }
.nwc-empty { color: #DDE3FF; }
.nwc-form { margin: 18px 0; padding: 16px; border-radius: 22px; display: grid; gap: 12px; }
.nwc-form h3 { font-size: 19px; color: #F8B709; }
.nwc-field { display: grid; gap: 6px; }
.nwc-field label { font-weight: 500; }
.nwc-field input, .nwc-field textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid #0255F3; background: #000428; color: #FFFFFF; font: inherit; font-size: 17px; }
.nwc-field textarea { line-height: 1.5; resize: vertical; }
.nwc-field input:focus, .nwc-field textarea:focus { outline: none; border-color: #F8B709; box-shadow: 0 0 0 3px rgba(248,183,9,0.35); }
.nwc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nwc-message { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid #2FBF71; background: #06301C; }
.nwc-message-error { border-color: #FF8A80; background: #3A0A1E; }
.nwc-replying { margin: 0; font-size: 15px; }
.nwc-design .nwc-bg { object-fit: cover; }

/* ---------- Live comments ---------- */
.nwc-replyto { margin: 0 0 2px; font-size: 13px; color: #9CC2FF; }
.nwc-live-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; font-size: 14px; color: #CFE0FF; }
.nwc-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #2FBF71; box-shadow: 0 0 0 3px rgba(47,191,113,0.25); flex: none; }
.nwc-live-bar[data-mode="paused"] .nwc-live-dot, .nwc-live-bar[data-mode="offline"] .nwc-live-dot { background: #8A93B8; box-shadow: none; }
.nwc-live-bar[data-mode="reduced"] .nwc-live-dot, .nwc-live-bar[data-mode="fallback"] .nwc-live-dot { background: #F8B709; box-shadow: 0 0 0 3px rgba(248,183,9,0.25); }
.nwc-new { animation: nwc-arrive 3s ease-out; }
@keyframes nwc-arrive { from { box-shadow: 0 0 0 2px #F8B709; background: #0A1A66; } to { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .nwc-new { animation: none; outline: 2px solid #F8B709; } }
.nwc-gone { padding: 12px 14px; border-radius: 12px; background: #2A0A14; border: 1px solid #A33; }
