/* =====================================================================
   RSI · enterrsi.si · rsi-s.css (v1.11.0, Nov 17, 2026)
   The Off Switch Directory and The Safe Word. Uses the site's tokens
   and the shared pieces of rsi-g.css and rsi-o.css.
   ===================================================================== */
:root { --sw-ok: #5fe3a6; --sw-part: #ffd27a; --sw-no: #ff9aa8; }

/* ---------------- shared ---------------- */
.os-center-t { text-align: center; max-width: 70ch; margin-left: auto; margin-right: auto; }
.sw-small { font-size: 14.5px; color: var(--dim); }
.sw-small a, .sw-note a { color: var(--mute); }
.sw-tiles .g-v.sw-tdate { font-size: clamp(18px, 2vw, 26px); line-height: 1.6; }
.sw-tiles .g-tile .k, .sw-ns-tiles .g-tile .k { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.45; }
.sw-q { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--rose); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ice); font-style: italic; overflow-wrap: anywhere; }

/* ---------------- the hub: search, groups, cards ---------------- */
.sw-search { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; margin-bottom: clamp(22px, 3vw, 34px); }
.sw-qf { flex: 1 1 320px; }
.sw-qf input { font-size: 16px; }
.sw-count { flex: 0 1 auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-bottom: 12px; }
.sw-groups { display: grid; gap: clamp(26px, 3.4vw, 44px); }
.sw-group[hidden] { display: none; }
.sw-gh { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: clamp(15px, 1.3vw, 18px); color: var(--ice); margin: 0 0 14px; letter-spacing: .02em; }
.sw-gn { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.sw-grid { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 16px); }
.sw-grid > .sw-card { flex: 1 1 280px; min-width: 0; }
.sw-grid.sw-g3 > .sw-card { flex-basis: 340px; }
.sw-card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.sw-card > * + * { margin-top: 0; }
.sw-card[hidden] { display: none; }
.sw-card .h3 { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.4; }
.sw-card .k { overflow-wrap: anywhere; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--ice); line-height: 1.35; }
.sw-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.sw-chip.sw-ok { color: var(--sw-ok); border-color: rgba(95, 227, 166, .35); }
.sw-chip.sw-part { color: var(--sw-part); border-color: rgba(255, 210, 122, .35); }
.sw-chip.sw-no { color: var(--sw-no); border-color: rgba(255, 154, 168, .35); }
.sw-date { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------------- an app page ---------------- */
.sw-due { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 210, 122, .4); background: rgba(255, 210, 122, .08); color: #ffe7b8; font-size: 15px; line-height: 1.5; }
.sw-due[hidden] { display: none; }
.sw-blocks { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 20px); }
.sw-blocks > * { flex: 1 1 340px; min-width: 0; }
.sw-block { display: grid; gap: 12px; align-content: start; }
.sw-block > * + * { margin-top: 0; }
.sw-steps { list-style: none; counter-reset: sw; display: grid; gap: 10px; margin: 0; padding: 0; }
.sw-steps li { counter-increment: sw; position: relative; padding-left: 40px; color: var(--mute); font-size: 16px; line-height: 1.6; min-height: 28px; }
.sw-steps li::before { content: counter(sw); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; color: var(--ice); }
.sw-ui { color: var(--ice); font-weight: 600; background: rgba(79, 163, 255, .08); border: 1px solid rgba(79, 163, 255, .22); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sw-sep { color: var(--ion); font-weight: 400; }
.sw-bsrc { font-size: 13.5px; color: var(--dim); line-height: 1.55; border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
.sw-bsrc a, .sw-srcs a { color: var(--mute); }
.sw-note { margin-top: clamp(16px, 2vw, 22px); font-size: 14.5px; color: var(--dim); text-align: center; max-width: 80ch; margin-left: auto; margin-right: auto; }
.sw-nsbox { display: grid; gap: 12px; margin-bottom: clamp(16px, 2vw, 22px); border-color: rgba(255, 210, 122, .32); }
.sw-nsbox > * + * { margin-top: 0; }
.sw-nsbox .k { color: var(--sw-part); }
.sw-region { margin-top: clamp(16px, 2vw, 22px); text-align: center; color: var(--mute); }
.sw-tail { margin-top: clamp(20px, 2.6vw, 32px); display: grid; gap: clamp(12px, 1.6vw, 20px); }
.sw-srcbox { display: grid; gap: 12px; }
.sw-srcbox > * + * { margin-top: 0; }
.sw-srcbox .sw-small a { color: var(--ice); }
.sw-srcs { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.sw-report { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.sw-report > * + * { margin-top: 0; }
.sw-rep-a, .sw-rep-b { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sw-rep-a > * + *, .sw-rep-b > * + * { margin-top: 0; }
.sw-report .g-f textarea { min-height: 112px; }
@media (max-width: 820px) { .sw-report { grid-template-columns: minmax(0, 1fr); } }
.sw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sw-rel { margin-top: 0; }

/* ---------------- the No switch list ---------------- */
.sw-nsg + .sw-nsg { margin-top: clamp(28px, 3.6vw, 44px); }
.sw-nsub { color: var(--mute); margin: -6px 0 14px; }
.sw-nslist { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(10px, 1.4vw, 16px); margin: 0; padding: 0; }
.sw-nslist > .sw-ns { flex: 1 1 340px; min-width: 0; display: grid; gap: 10px; align-content: start; }
.sw-ns > * + * { margin-top: 0; }
.sw-ns .h3 a { color: var(--ice); }

/* ---------------- the method table ---------------- */
.sw-tablecard { margin-top: clamp(20px, 2.6vw, 32px); display: grid; gap: 14px; }
.sw-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sw-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sw-table th, .sw-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sw-table th { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.sw-table td { color: var(--mute); }
.sw-table td a { color: var(--ice); }
.sw-table td time { white-space: nowrap; }
.sw-table .sw-n { text-align: center; }
@media (max-width: 640px) { .sw-table th:nth-child(3), .sw-table td:nth-child(3) { display: none; } }

/* ---------------- the Safe Word: generator ---------------- */
.sw-gen { display: grid; gap: clamp(16px, 2vw, 24px); justify-items: center; text-align: center; padding: clamp(22px, 3.4vw, 44px); }
.sw-gen > * + * { margin-top: 0; }
.sw-gen-opts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; }
.sw-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.sw-seg legend { float: left; margin-right: 10px; padding: 0; line-height: 40px; }
.sw-seg label, .sw-check { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sw-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ctl-line); background: var(--ctl); color: var(--mute); font-size: 15px; }
.sw-seg input:checked + span { background: var(--btn); color: var(--ink); border-color: var(--btn); }
.sw-seg input:focus-visible + span, .sw-check input:focus-visible { outline: 2px solid var(--ion); outline-offset: 2px; }
.sw-check input { width: 20px; height: 20px; accent-color: var(--ion); }
.sw-check span { color: var(--mute); font-size: 15px; }
.sw-word { min-height: 1.6em; max-width: 100%; font-family: var(--f-display); font-size: clamp(26px, 5vw, 58px); line-height: 1.3; letter-spacing: .01em; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
:lang(zh) .sw-word, :lang(ja) .sw-word, :lang(ko) .sw-word, :lang(vi) .sw-word { font-family: var(--f-body); font-weight: 800; }
.sw-word-ph { color: var(--dim); -webkit-text-fill-color: var(--dim); }
.sw-say { color: var(--ice); font-size: 16.5px; max-width: 60ch; }
.sw-say[hidden] { display: none; }
.sw-privacy { font-size: 14.5px; color: var(--dim); max-width: 66ch; }

/* ---------------- the Safe Word: quotes, guides, pledge, share, day ---------------- */
.sw-quotes { align-items: stretch; }
.sw-quote { margin: 0; display: grid; gap: 12px; align-content: start; }
.sw-quote > * + * { margin-top: 0; }
.sw-quote .k { color: var(--ion); }
.sw-guides > .card { display: grid; gap: 10px; align-content: start; }
.sw-pledge { margin-top: 0; }
.sw-pledge > .card { display: grid; gap: 14px; align-content: start; }
.sw-pledge > .card > * + * { margin-top: 0; }
.sw-share { display: grid; gap: 16px; justify-items: center; text-align: center; padding: clamp(24px, 3.6vw, 48px); }
.sw-share > * + * { margin-top: 0; }
.sw-share-t { font-family: var(--f-display); font-size: clamp(22px, 3vw, 38px); line-height: 1.35; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 26ch; }
:lang(zh) .sw-share-t, :lang(ja) .sw-share-t, :lang(ko) .sw-share-t, :lang(vi) .sw-share-t { font-family: var(--f-body); font-weight: 800; }
.sw-share .btn svg { width: 16px; height: 16px; }
.sw-day { margin-top: clamp(16px, 2vw, 22px); display: grid; gap: 10px; text-align: center; justify-items: center; }
.sw-day > * + * { margin-top: 0; }
.sw-tips { margin-top: clamp(16px, 2vw, 22px); display: grid; gap: 12px; }
.sw-tips > * + * { margin-top: 0; }

/* ---------------- the card to save as an image ---------------- */
.sw-cardwrap { display: grid; gap: 16px; justify-items: center; }
.sw-print { width: min(100%, 620px); aspect-ratio: 7 / 4; display: grid; grid-template-rows: auto auto 1fr auto; gap: clamp(8px, 1.4vw, 14px); padding: clamp(18px, 3.4vw, 36px); border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 154, 60, .14), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(79, 163, 255, .14), transparent 60%), linear-gradient(160deg, #111318, #050506); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.sw-print > * { margin: 0; }
.sw-ct { font-family: var(--f-display); font-size: clamp(16px, 2.6vw, 26px); background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
:lang(zh) .sw-ct, :lang(ja) .sw-ct, :lang(ko) .sw-ct, :lang(vi) .sw-ct { font-family: var(--f-body); font-weight: 800; }
.sw-cw { display: flex; align-items: flex-end; gap: 12px; font-family: var(--f-mono); font-size: clamp(11px, 1.4vw, 13px); letter-spacing: .12em; text-transform: uppercase; color: var(--ion); }
.sw-line { flex: 1; border-bottom: 2px solid var(--line-2); height: 1.4em; }
.sw-clist { display: grid; gap: clamp(4px, .8vw, 8px); padding-left: 1.3em; color: var(--ice); font-size: clamp(12.5px, 1.6vw, 16px); line-height: 1.45; align-content: center; }
.sw-cu { font-family: var(--f-mono); font-size: clamp(11px, 1.3vw, 13px); color: var(--mute); text-align: right; }
@media (max-width: 420px) { .sw-print { aspect-ratio: auto; } }

/* ---------------- Off Switch Day: eight help links fill two rows ---------------- */
@media (min-width: 1001px) { .os-help { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.od-what4 > .card { display: grid; gap: 10px; align-content: start; }

.g-steps + .sw-tiles { margin-top: clamp(22px, 3vw, 36px); margin-bottom: 0; }

/* ---------------- long languages at phone width ---------------- */
.sw-pledge > .card { min-width: 0; }
.sw-pledge .g-pass-out .body-copy { flex-basis: 220px; min-width: 0; }
.sw-pledge .btn, .sw-share .btn, .sw-day .btn, .sw-tail .btn { white-space: normal; height: auto; min-height: 44px; line-height: 1.35; text-align: center; max-width: 100%; }
/* the headline effect keeps each word on one line; Chinese and Japanese headings have no spaces, so let them break between characters */
:lang(zh) [data-decode] .wd, :lang(ja) [data-decode] .wd { display: inline; white-space: normal; }
.sw-gen-opts, .sw-gen-opts > * { min-width: 0; max-width: 100%; }
.sw-seg { min-inline-size: 0; justify-content: center; }
.sw-gen .btn, .os-hero-cta .btn { white-space: normal; height: auto; min-height: 44px; line-height: 1.35; text-align: center; max-width: 100%; }
@media (max-width: 420px) { .sw-seg legend { float: none; width: 100%; text-align: center; line-height: 1.6; margin: 0 0 4px; } }
@media (max-width: 600px) {
  main .btn { white-space: normal; height: auto; min-height: 44px; line-height: 1.35; text-align: center; max-width: 100%; min-width: 0; }
  main .cta-row { min-width: 0; max-width: 100%; }
}
