/* =========================================================
   TAROT DMs — FLASH MINIMALIST WHITE & INK-BLACK (FUTURA HEADINGS)
   ========================================================= */


/* =========================================================
   TYPOGRAPHY
   Does not interfere with Rocket.Chat icons
   ========================================================= */

html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: #111111 !important; /* Sharp, Ink-like Near-Black */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* ALL HEADERS CONVERTED TO STRUCTURAL UPPERCASE FUTURA FOR A GALLERY LOOK */
h1,
h2,
h3,
h4,
h5,
h6,
.rcx-tile header,
[class*="section-header"],
.main-tagline,
.status-bar {
  font-family: "Futura", "Futura-Medium", Futura, "Trebuchet MS", Arial, sans-serif !important; 
  color: #111111 !important; 
  font-weight: 700 !important;
  letter-spacing: 0.08em !important; /* Elegant, intentional letter spacing for the gallery look */
  line-height: 1.3 !important;
  text-transform: uppercase !important; /* Forces structural capitalization */
}


/* =========================================================
   HOMEPAGE
   ========================================================= */

/* Hide standard homepage cards */
.rcx-card-group > .rcx-card-group__item:not(:last-child) {
  display: none !important;
}

/* Make custom-content card full width */
.rcx-card-group > .rcx-card-group__item:last-child {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

/* Hide “Some ideas to get you started” */
h3.rcx-css-1ln5v6k {
  display: none !important;
}

/* Hide old homepage welcome heading */
h2.rcx-css-1dgu1qo {
  display: none !important;
}

/* Hide “Powered by Rocket.Chat” */
div.rcx-css-1kba3lq {
  display: none !important;
}

/* Hide homepage logo */
img[alt="Home"][src$="assets/logo.png"] {
  display: none !important;
}


/* =========================================================
   HOMEPAGE COPYRIGHT
   ========================================================= */

/* Older Starter footer */
div.rcx-css-k29f7k {
  font-size: 0 !important;
}

div.rcx-css-k29f7k::after {
  content: "\00A9 2026 Finbarre Snarey";
  font: normal 400 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

a:has(> div.rcx-css-k29f7k) {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}

/* Newer footer layout */
footer:has(img[alt="Home"][src$="assets/logo.png"]) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

footer:has(img[alt="Home"][src$="assets/logo.png"]) > a {
  display: none !important;
}

footer:has(img[alt="Home"][src$="assets/logo.png"])::after {
  content: "\00A9 2026 Finbarre Snarey";
  display: block;
  color: inherit;
  font: normal 400 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}


/* =========================================================
   LOGIN AND REGISTRATION
   ========================================================= */

/* Remove left welcome panel */
.rcx-css-14gyq0r {
  display: none !important;
}

/* Convert split layout to one column */
.rcx-css-s3n4r5 {
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: center !important;
}

/* Centre login and registration section */
.rcx-css-1tmhcn7 {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
  margin-inline: auto !important;
}

/* Hide remaining login branding */
img[src$="/images/logo/logo.svg"][alt="Logo"],
.rcx-box:has(> a[href="https://rocket.chat/"]),
#welcomeTitle {
  display: none !important;
}

/* Replace submit-button wording */
button[type="submit"] > .rcx-button--content {
  font-size: 0 !important;
}

button[type="submit"] > .rcx-button--content::after {
  content: "Submit";
  font-size: 14px !important;
}


/* =========================================================
   PANELS
   ========================================================= */

.rcx-tile,
.rcx-card {
  color: #111111 !important;
  background-color: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.rcx-button--primary,
button[type="submit"]:has(> .rcx-button--content) {
  color: #ffffff !important;
  background-color: #4A223B !important; 
  border: 1px solid #4A223B !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}

.rcx-button--primary:hover,
button[type="submit"]:has(> .rcx-button--content):hover,
button[type="submit"]:has(> .rcx-button--content):focus {
  color: #ffffff !important;
  background-color: #5c2b4a !important;
  border-color: #5c2b4a !important;
}

.rcx-button--primary:active,
button[type="submit"]:has(> .rcx-button--content):active {
  border-style: solid !important;
  box-shadow: none !important;
  transform: none !important;
}


/* =========================================================
   ORDINARY FORM FIELDS
   Search fields are excluded
   ========================================================= */

.rcx-input-box:not([type="search"]):not([placeholder*="Search"]):not([placeholder*="search"]),
.rcx-input-box__wrapper:not(:has(input[type="search"])):not(:has(input[placeholder*="Search"])):not(:has(input[placeholder*="search"])) {
  color: #111111 !important;
  background-color: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}


/* =========================================================
   SEARCH BOX — NEUTRAL GREY
   ========================================================= */

input[type="search"],
input[placeholder*="Search"],
input[placeholder*="search"],
.rcx-input-box--type-search {
  color: #111111 !important;
  background-color: #ffffff !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.rcx-input-box__wrapper:has(input[type="search"]),
.rcx-input-box__wrapper:has(input[placeholder*="Search"]),
.rcx-input-box__wrapper:has(input[placeholder*="search"]),
.rcx-navbar [class*="input"]:has(input[placeholder*="Search"]),
.rcx-sidebar-topbar [class*="input"]:has(input[placeholder*="Search"]) {
  background-color: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.rcx-input-box__wrapper:has(input[type="search"]):focus-within,
.rcx-input-box__wrapper:has(input[placeholder*="Search"]):focus-within,
.rcx-input-box__wrapper:has(input[placeholder*="search"]):focus-within,
.rcx-navbar [class*="input"]:has(input[placeholder*="Search"]):focus-within,
.rcx-sidebar-topbar [class*="input"]:has(input[placeholder*="Search"]):focus-within {
  border-color: #a5a5a5 !important;
  outline: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   UPPER NAVIGATION BAR & SIDEBAR NAVIGATION BUTTONS
   ========================================================= */

.rcx-navbar,
.rcx-sidebar-topbar,
.rcx-sidebar-topbar button {
  background-color: #ffffff !important;
}

.rcx-navbar {
  border-bottom: 1px solid #e5e5e5 !important;
}

.rcx-navbar button,
.rcx-navbar a,
.rcx-sidebar-topbar button,
.rcx-sidebar-topbar a,
.rcx-sidebar button {
  color: #111111 !important;
}

/* Force light backgrounds on the targeted layout selection classes found in the HTML source */
.rcx-navbar button:hover,
.rcx-navbar button:focus,
.rcx-navbar button:active,
.rcx-navbar button.rcx-button--icon-pressed,
.rcx-navbar button.rcx-button--icon--pressed,
.rcx-sidebar-topbar button:hover,
.rcx-sidebar-topbar button:focus,
.rcx-sidebar-topbar button[aria-pressed="true"],
.rcx-sidebar-topbar .rcx-button--active,
button[class*="rcx-button--icon-pressed"],
button[class*="rcx-button--icon--pressed"] {
  background-color: #fafafa !important;
  color: #4A223B !important;
  box-shadow: none !important;
}

/* 
   THE CATCH-ALL ICON GLOW OUTLINE FIX
   Applies a thick, high-contrast 8-directional white stroke to the webfont icons. 
   If Rocket.Chat forces a black state, the glyphs pop perfectly against it.
*/
.rcx-navbar button .rcx-icon,
.rcx-navbar button [class*="rcx-icon"],
.rcx-sidebar button .rcx-icon,
button[class*="rcx-button--icon-pressed"] .rcx-icon,
button[class*="rcx-button--icon--pressed"] .rcx-icon {
  color: inherit !important;
  text-shadow: 1px 1px 0 #ffffff, -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff,
               0px 1px 0 #ffffff, 0px -1px 0 #ffffff, 1px 0px 0 #ffffff, -1px 0px 0 #ffffff !important;
}


/* =========================================================
   SIDEBAR 
   ========================================================= */

.rcx-sidebar,
.rcx-sidebar--main,
.rcx-box--is-sidebar,
aside.rcx-sidebar,
div[class*="rcx-sidebar"] {
  background-color: #ffffff !important;
  border-right: 1px solid #e5e5e5 !important;
}

body .rcx-sidebar .rcx-sidebar-v2-collapse-group__header,
body .rcx-sidebar .rcx-sidebar-v2-collapse-group,
body .rcx-sidebar [class*="collapse-group"],
.rcx-sidebar .rcx-box {
  background-color: transparent !important;
}

body .rcx-sidebar h4.rcx-sidebar-v2-collapse-group__title,
body .rcx-sidebar .rcx-sidebar-v2-collapse-group__title {
  font-weight: 600 !important;
  opacity: 1 !important;
}

body .rcx-sidebar .rcx-sidebar-v2-collapse-group__title * {
  color: #111111 !important;
  opacity: 1 !important;
}

.rcx-sidebar a,
.rcx-sidebar-item,
.rcx-sidebar-item__title {
  color: #555555 !important;
  background-color: transparent !important;
}

.rcx-sidebar a[aria-current="page"],
.rcx-sidebar [aria-selected="true"],
.rcx-sidebar .rcx-sidebar-item--selected {
  color: #4A223B !important;
  background-color: #fafafa !important;
  border-left: 3px solid #4A223B !important;
}

.rcx-sidebar a[aria-current="page"] *,
.rcx-sidebar [aria-selected="true"] *,
.rcx-sidebar .rcx-sidebar-item--selected * {
  color: #4A223B !important;
}

.rcx-sidebar a:hover,
.rcx-sidebar .rcx-sidebar-item:hover {
  color: #111111 !important;
  background-color: #fafafa !important;
}

.rcx-sidebar a:hover *,
.rcx-sidebar .rcx-sidebar-item:hover * {
  color: #111111 !important;
}


/* =========================================================
   LINKS AND DIVIDERS
   ========================================================= */

a {
  color: #4A223B;
  text-decoration: underline;
}

a:visited {
  color: #6b3758;
}

.rcx-message-divider {
  color: #e5e5e5 !important;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
  color: #111111;
  background-color: #f0e6eb;
}

/* Smaller, quieter copyright footer */
div.rcx-css-k29f7k::after,
footer:has(img[alt="Home"][src$="assets/logo.png"])::after {
  font: normal 400 13px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  color: #666666 !important;
  opacity: 0.8;
}

/* Centre the complete homepage card */
main:has(.chat-content) .rcx-card-group {
  justify-content: center !important;
}

main:has(.chat-content) .rcx-card-group > .rcx-card {
  width: calc(100% - 16px) !important;
  max-width: 724px !important;
  flex: 0 1 724px !important;
}

/* Centre the Tarot DMs title independently of Customize */
main:has(.chat-content) header > div {
  position: relative !important;
}

main:has(.chat-content) header h1 {
  position: absolute !important;
  left: 50% !important;
  width: max-content !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  pointer-events: none;
}

/* =========================================================
   LOGIN SUBMIT BUTTON TEXT COLOR FIX
   ========================================================= */

/* Forces the login button text content to be pure white */
button[type="submit"] > .rcx-button--content,
button[type="submit"] > .rcx-button--content::after,
.rcx-button--primary > .rcx-button--content {
  color: #ffffff !important;
}