/* Official Global & Domestic Social Media Matrix Styles (social-matrix.css).
   Strictly locked to pure Onmark + Robixx template color tokens:
   #ffffff, #f8f8f8, #ececec, #eeeeee, #dadada, #bbbbbb, #8d8d8d, #6b5f5f, #373737, #222222, #1a1a1a, #000000, #ac1717.
   Zero bare element selectors; 100% scoped under .om-footer-social-matrix, .om-social-showcase, and .om-social-toast. */

/* ---------- 1. Global Footer Official Channels Row (Every Page) ---------- */

.om-footer-social-matrix {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 22px 24px;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.om-footer-shell .om-footer-social-matrix {
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.35rem) 0;
  border-radius: 0;
  background-color: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.om-footer-social-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.om-footer-shell .om-footer-social-head {
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 0;
}

.om-footer-social-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.om-footer-social-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ac1717;
  box-shadow: 0 0 0 3px rgba(172, 23, 23, 0.28);
  flex: none;
}

section.footer .om-footer-social-matrix .om-footer-social-head a.om-footer-matrix-link,
.footer .om-footer-social-matrix .om-footer-social-head a.om-footer-matrix-link,
.om-footer-matrix-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #dadada;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

section.footer .om-footer-social-matrix .om-footer-social-head a.om-footer-matrix-link:hover,
.footer .om-footer-social-matrix .om-footer-social-head a.om-footer-matrix-link:hover,
.om-footer-matrix-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

section.footer .om-footer-social-matrix .om-footer-social-head a.om-footer-matrix-link:focus-visible,
.footer .om-footer-social-matrix .om-footer-social-head a.om-footer-matrix-link:focus-visible,
.om-footer-matrix-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.om-footer-social-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.om-footer-social-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 8px 14px;
  width: 100%;
  max-width: 100%;
}

.om-footer-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbbbbb;
}

.om-footer-social-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

section.footer .om-footer-social-matrix .om-footer-social-pills a.om-soc-pill,
.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill,
.om-soc-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

section.footer .om-footer-social-matrix .om-footer-social-pills a.om-soc-pill.is-live,
.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill.is-live,
.om-soc-pill.is-live {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
}

section.footer .om-footer-social-matrix .om-footer-social-pills a.om-soc-pill:hover,
.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill:hover,
.om-soc-pill:hover {
  background-color: rgba(172, 23, 23, 0.16);
  border-color: #ac1717;
  color: #ffffff;
}

section.footer .om-footer-social-matrix .om-footer-social-pills a.om-soc-pill.is-live:hover,
.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill.is-live:hover,
.om-soc-pill.is-live:hover {
  background-color: #ac1717;
  border-color: #ac1717;
  color: #ffffff;
}

section.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill.is-copied,
.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill.is-copied,
.om-soc-pill.is-copied {
  background-color: #ac1717;
  border-color: #ac1717;
  color: #ffffff;
}

section.footer .om-footer-social-matrix .om-footer-social-pills a.om-soc-pill:focus-visible,
.footer .om-footer-social-matrix .om-footer-social-pills .om-soc-pill:focus-visible,
.om-soc-pill:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.om-soc-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  color: currentColor;
}

.om-soc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.om-soc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ac1717;
  flex: none;
  transition: background-color 0.22s ease;
}

.om-soc-pill.is-live:hover .om-soc-live-dot {
  background-color: #ffffff;
}

/* ---------- 2. Architectural Showcase Band (#official-social-matrix on /contact & /about) ---------- */

.om-social-showcase {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.om-social-showcase-groups {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  width: 100%;
  max-width: 100%;
}

.om-soc-group-block {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.om-soc-group-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dadada;
}

.om-soc-group-heading {
  margin: 0;
  color: #000000;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.om-soc-group-meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #6b5f5f;
}

.om-soc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.om-soc-grid--domestic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.om-soc-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  border-radius: 16px;
  background-color: #ffffff;
  border: 1px solid #dadada;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.om-soc-card.is-live-card {
  border-color: #1a1a1a;
}

.om-soc-card:hover {
  border-color: #000000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.om-soc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.om-soc-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #f8f8f8;
  border: 1px solid #eeeeee;
  color: #1a1a1a;
  flex: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.om-soc-card.is-live-card .om-soc-card-badge {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.om-soc-card:hover .om-soc-card-badge {
  background-color: #ac1717;
  border-color: #ac1717;
  color: #ffffff;
}

.om-soc-card-svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  color: currentColor;
  flex: none;
}

.om-soc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background-color: #f8f8f8;
  border: 1px solid #eeeeee;
  color: #6b5f5f;
  white-space: nowrap;
}

.om-soc-status.is-live {
  background-color: rgba(172, 23, 23, 0.08);
  border-color: rgba(172, 23, 23, 0.28);
  color: #ac1717;
}

.om-soc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.om-soc-card-title {
  margin: 0;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.om-soc-card-handle {
  margin: 0;
  color: #373737;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.om-soc-handle-label {
  color: #6b5f5f;
  margin-right: 4px;
}

.om-soc-handle-code {
  padding: 2px 6px;
  border-radius: 6px;
  background-color: #f8f8f8;
  border: 1px solid #ececec;
  color: #1a1a1a;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.om-soc-card-desc {
  margin: 0;
  color: #6b5f5f;
  font-size: 13.5px;
  line-height: 1.55;
}

.om-soc-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.om-soc-card-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.om-soc-card-btn.is-live {
  background-color: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}

.om-soc-card-btn.is-live:hover {
  background-color: #ac1717;
  border-color: #ac1717;
  color: #ffffff;
}

.om-soc-card-btn.is-handle {
  background-color: #f8f8f8;
  border: 1px solid #dadada;
  color: #1a1a1a;
}

.om-soc-card-btn.is-handle:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.om-soc-card-btn.is-copied {
  background-color: #ac1717;
  border-color: #ac1717;
  color: #ffffff;
}

.om-soc-card-btn--sub {
  flex: 0 1 auto;
  background-color: #ffffff;
  border: 1px solid #dadada;
  color: #373737;
}

.om-soc-card-btn--sub:hover {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.om-soc-card-btn:focus-visible {
  outline: 2px solid #ac1717;
  outline-offset: 2px;
}

.om-soc-action-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
}

/* ---------- 3. Accessible Toast Confirmation Banner ---------- */

.om-social-toast[hidden] {
  display: none !important;
}

.om-social-toast {
  box-sizing: border-box;
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 48px);
  padding: 12px 18px;
  border-radius: 12px;
  background-color: #1a1a1a;
  border: 1px solid #373737;
  border-left: 3px solid #ac1717;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.om-social-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ac1717;
  flex: none;
}

/* ---------- 4. Responsive Breakpoints (1024 / 768 / 390 / 360) ---------- */

@media screen and (max-width: 1120px) {
  .om-soc-grid,
  .om-soc-grid--domestic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .om-footer-social-matrix {
    padding: 18px 16px;
  }

  .om-footer-shell .om-footer-social-matrix {
    padding: 1.5rem 0;
  }

  .om-footer-social-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .om-footer-group-label {
    min-height: 24px;
  }

  .om-soc-grid,
  .om-soc-grid--domestic {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .om-soc-card {
    padding: 18px;
  }

  .om-social-toast {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .om-soc-pill,
  .om-soc-card,
  .om-soc-card-badge,
  .om-soc-card-btn,
  .om-footer-matrix-link {
    transition: none !important;
  }
}
