/* shared/wyla.css
   Inline "What you're looking at" blocks (non-blocking, recruiter-safe).
*/
:root{
  --wyla-bg: rgba(255,255,255,0.06);
  --wyla-bd: rgba(255,255,255,0.16);
  --wyla-text: rgba(255,255,255,0.92);
  --wyla-muted: rgba(255,255,255,0.74);
  --wyla-muted2: rgba(255,255,255,0.56);
  --wyla-accent: rgba(155,209,255,0.95);
  --wyla-shadow: 0 10px 30px rgba(0,0,0,0.45);
  --wyla-radius: 14px;
}

.wyla-wrap{
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wyla-card{
  border: 1px solid var(--wyla-bd);
  background: var(--wyla-bg);
  border-radius: var(--wyla-radius);
  box-shadow: var(--wyla-shadow);
  overflow: hidden;
}

.wyla-row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px;
}

.wyla-left{
  display: flex;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.wyla-badge{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: radial-gradient(circle at 30% 30%, rgba(120,170,255,0.45), rgba(120,170,255,0.12) 60%, rgba(0,0,0,0));
  margin-top: 2px;
}

.wyla-text{
  min-width: 0;
}

.wyla-title{
  font-weight: 850;
  letter-spacing: .02em;
  font-size: 13px;
  color: var(--wyla-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wyla-title .wyla-mini{
  font-weight: 800;
  color: var(--wyla-muted2);
  font-size: 12px;
  letter-spacing: .04em;
}

.wyla-body{
  margin-top: 4px;
  color: var(--wyla-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.wyla-body strong{
  color: var(--wyla-text);
}

.wyla-actions{
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.wyla-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--wyla-text);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .01em;
}

.wyla-btn:hover{ background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
.wyla-btn.secondary{ background: transparent; }
.wyla-btn.link{
  background: transparent;
  border-color: transparent;
  color: var(--wyla-accent);
  padding: 7px 6px;
}

.wyla-btn.icon{
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.wyla-details{
  display: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 10px 12px 12px;
  color: var(--wyla-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.wyla-details p{ margin: 0 0 8px 0; }
.wyla-details p:last-child{ margin-bottom: 0; }
.wyla-details .h{
  color: var(--wyla-text);
  font-weight: 900;
  letter-spacing: .02em;
}

.wyla-card.is-open .wyla-details{ display: block; }
.wyla-wrap.is-hidden{ display: none !important; }

@media (max-width: 520px){
  .wyla-row{ flex-direction: column; }
  .wyla-actions{ justify-content: flex-end; width: 100%; }
}



/* === PHASE A VISIBILITY & LAYERING OVERRIDES === */
html, body {
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
  background-blend-mode: normal !important;
}

body::before,
body::after,
main::before,
main::after {
  content: none !important;
  display: none !important;
}

[class*="overlay"],
[class*="scrim"],
[class*="backdrop"],
[id*="overlay"],
[id*="scrim"],
[id*="backdrop"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

* {
  text-shadow: none !important;
}

.nxs-pill,
.start-pill,
button,
a.buttonlike {
  opacity: 1 !important;
  filter: none !important;
}

/* Lock content to foreground plane */
main, .content, .page, .container {
  position: relative;
  z-index: 1;
}


/* === PHASE C: Z-INDEX & STACKING CONTEXT SANITY === */

/* Normalize z-index layers */
:root {
  --z-background: 0;
  --z-content: 1;
  --z-ui: 10;
  --z-nav: 100;
  --z-modal: 1000;
  --z-debug: 10000;
}

/* Foreground locking */
main, section, article, .content, .container {
  position: relative;
  z-index: var(--z-content);
}

/* Navigation always above content */
nav, .nexusbar, header {
  position: relative;
  z-index: var(--z-nav) !important;
}

/* Debug UI always topmost */
#eruda, .debug-ui, .debug-panel {
  z-index: var(--z-debug) !important;
}

/* Remove backdrop-filter traps */
[class*="blur"],
[class*="glass"],
[class*="frost"],
[class*="backdrop"] {
  backdrop-filter: none !important;
  filter: none !important;
}

/* Prevent future accidental stacking */
[data-stack] {
  position: relative;
  z-index: var(--z-content);
}

/* === END PHASE C === */


/* === PHASE D: ACCESSIBILITY, CONTRAST & PERCEPTION === */

/* Enforce readable contrast */
:root {
  --min-contrast-bg: #0f172a;
  --min-contrast-text: #e5e7eb;
}

body {
  color: var(--min-contrast-text) !important;
  background-color: var(--min-contrast-bg) !important;
}

/* Focus visibility */
*:focus,
*:focus-visible {
  outline: 3px solid #22d3ee !important;
  outline-offset: 2px !important;
}

/* Remove fake-button links */
a:not(.btn):not(.buttonlike) {
  text-decoration: underline;
}

/* Button semantics */
button, .btn, .buttonlike {
  cursor: pointer;
  text-decoration: none !important;
}

/* Ensure tap targets */
a, button {
  min-height: 44px;
  min-width: 44px;
}

/* Kill misleading hover-only affordances */
@media (hover: none) {
  *:hover {
  }
}

/* Screen reader safety */
[aria-hidden="true"] {
  display: none !important;
}

/* Ensure visible labels */
input, select, textarea {
  color: #0f172a !important;
  background: #fff !important;
}

/* Prevent ultra-dense layouts */
section, article, main {
  line-height: 1.6;
}

/* === END PHASE D === */


/* === Recommended Path Tile (compact) === */
/* === More Tile === */


/* === Hybrid Editorial Tile System (C) === */
.inline-tile{
  position: relative;
  background: linear-gradient(180deg, rgba(18,22,35,0.92) 0%, rgba(12,16,28,0.88) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
}

.inline-tile::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:4px;
  background: linear-gradient(180deg, rgba(168,85,247,0.85) 0%, rgba(59,130,246,0.55) 100%);
  
}

.inline-tile h3{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  
}

.inline-tile p{
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  
  max-width: 70ch;
}

/* Slightly tighter cards for short statements */
.inline-tile--tight{
  padding: 16px 18px;
}

@media (max-width: 520px){
  .inline-tile{
    padding: 16px 16px;
    border-radius: 14px;
  }
  .inline-tile p{
    font-size: 14px;
  }
}



/* === Inline Tiles Full-Width === */
.inline-tile{
  width: 100% !important;
  box-sizing: border-box;
  grid-column: 1 / -1;
}
.inline-tile p{ max-width: none; }


/* === Thumb De-Dimming === */
.thumb img, .tile-thumb img, .app-thumb img, .nxs-thumb img, .thumbs img{
  filter: none !important;
  opacity: 1 !important;
}
.thumb::after, .tile-thumb::after, .app-thumb::after, .nxs-thumb::after, .thumbs::after,
.thumb::before, .tile-thumb::before, .app-thumb::before, .nxs-thumb::before, .thumbs::before{
  display: none !important;
  content: none !important;
}


/* === Force remove thumb dimming (override) === */
img{ filter: none !important; opacity: 1 !important; }
.tile img, .card img, .thumb img, .tile-thumb img, .app-thumb img, .nxs-thumb img, .thumbs img,
.tile picture img, picture img { filter:none !important; opacity:1 !important; mix-blend-mode: normal !important; }
.tile::before, .tile::after,
.card::before, .card::after,
.thumb::before, .thumb::after,
.tile-thumb::before, .tile-thumb::after,
.app-thumb::before, .app-thumb::after,
.nxs-thumb::before, .nxs-thumb::after,
.thumbs::before, .thumbs::after,
.tile img::before, .tile img::after { display:none !important; content:none !important; }


/* === Full-width for Start Here + key tiles === */
.start-here, .startHere, .nxs-start, #start-here, .start-here-tile,
.recommended-path, .scope-tile, .inline-tile, .inline-tile--tight {
  width: 100% !important;
  max-width: none !important;
}
/* If they sit inside a grid, make them span the grid */
.start-here, .startHere, .nxs-start, #start-here, .start-here-tile,
.recommended-path, .scope-tile, .inline-tile, .inline-tile--tight {
  grid-column: 1 / -1 !important;
}
