/* Yucca Lab internal apps: the shared identity (header, sign-in card, tokens). Navy and white carry the
   page, teal is the recurring accent, coral the one spotlight. App styles go in app.css, not here. */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("fonts/Outfit_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("fonts/Outfit_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("fonts/Outfit_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("fonts/Outfit_700Bold.woff2") format("woff2"); }

:root {
  --navy: #121B3A;
  --navy-2: #0F2A44;
  --teal: #12C9BE;
  --teal-dark: #0FB3A9;
  --coral: #FF8754;
  --coral-deep: #E76F51;
  --lav: #F5F5FD;
  --teal-tint: #E7FAF8;
  --coral-tint: #FFF0E8;
  --ink: #2A3342;
  --muted: #6B7785;
  --grey: #D7DFE6;
  --navy-light: #AEB6C6;
  --pale: #E7EAF2;
  --white: #FFFFFF;
  --radius: 10px;
  --topbar: 60px;
  --shadow: 0 1px 2px rgba(18, 27, 58, .06), 0 4px 16px rgba(18, 27, 58, .06);
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 14px/1.45 "Outfit", system-ui, sans-serif; color: var(--ink); background: var(--white); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.yl-kicker { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Header ------------------------------------------------------------------------------------------ */

.yl-topbar {
  position: sticky; top: 0; height: var(--topbar); z-index: 10;
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: var(--navy); color: var(--white); border-bottom: 3px solid var(--teal);
}
.yl-logo { display: flex; align-items: center; border-radius: 6px; }
.yl-logo img { height: 26px; width: auto; display: block; }
.yl-logo:hover img { opacity: .85; }
.yl-product { padding-left: 18px; border-left: 1px solid rgba(231, 234, 242, .25); color: var(--pale); font-weight: 500; font-size: 15px; white-space: nowrap; }
.yl-spacer { flex: 1; }
.yl-sections { display: flex; align-self: stretch; gap: 2px; }
.yl-sections a {
  display: flex; align-items: center; padding: 0 14px; margin-bottom: -3px;
  color: var(--navy-light); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent;
}
.yl-sections a:hover { color: var(--white); }
.yl-sections a[aria-current] { color: var(--white); border-bottom-color: var(--coral); }

.yl-who { position: relative; }
.yl-who summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.yl-who summary::-webkit-details-marker { display: none; }
.yl-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy); font-weight: 700; font-size: 13px; }
.yl-who .yl-name { font-weight: 600; }
.yl-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 14px; border-radius: var(--radius);
  background: var(--white); color: var(--ink); box-shadow: 0 8px 32px rgba(18, 27, 58, .2);
  display: flex; flex-direction: column; gap: 10px;
}
.yl-menu .dim { color: var(--muted); font-size: 13px; }
.yl-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--grey); background: var(--white); font-weight: 500; }
.yl-btn:hover { border-color: var(--teal); }

.yl-main { max-width: 1200px; margin: 0 auto; padding: 28px 22px 48px; }

@media (max-width: 640px) {
  .yl-topbar { gap: 12px; padding: 0 14px; }
  .yl-product { padding-left: 12px; font-size: 14px; }
  .yl-who .yl-name { display: none; }
}

/* Sign-in page ------------------------------------------------------------------------------------ */

body.yl-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; font-size: 15px; line-height: 1.5; background: var(--navy); }
.yl-card { width: min(420px, 100%); background: var(--white); border-radius: 14px; padding: 0 32px 28px; overflow: hidden; box-shadow: 0 8px 40px rgba(0, 0, 0, .25); }
.yl-brand { display: flex; align-items: center; gap: 12px; margin: 0 -32px 24px; padding: 16px 32px; background: var(--navy-2); color: var(--white); font-weight: 600; }
.yl-brand img { height: 28px; }
.yl-card h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; color: var(--navy); }
.yl-card p { margin: 0 0 16px; }
.yl-message { padding: 10px 12px; border-radius: 8px; background: var(--coral-tint); color: #8A3A17; }
.yl-message.ok { background: var(--teal-tint); color: #0B6E68; }
.yl-button { display: block; text-align: center; padding: 12px 16px; border-radius: 10px; background: var(--teal); color: var(--navy); font-weight: 600; text-decoration: none; }
.yl-button:hover, .yl-button:focus-visible { background: var(--teal-dark); }
