/* TiraUniversity — a light Trailhead-style site inside a TiraOS window. */
.tu {
  --tu-navy: #032d60;
  --tu-blue: #0176d3;
  --tu-ink: #16325c;
  --tu-muted: #5c7594;
  --tu-line: #e1ebf4;
  --tu-bg: #f3f8fc;
  flex: 1;
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--tu-bg);
  color: var(--tu-navy);
  font: 14px/1.5 var(--sans);
}
.tu h1, .tu h2, .tu h3, .tu p { margin: 0; }
.tu h1 { font-size: 30px; letter-spacing: -.03em; line-height: 1.15; }
.tu h2 { font-size: 20px; letter-spacing: -.02em; }
.tu h3 { font-size: 16px; line-height: 1.3; }
.tu button { font-family: inherit; }

.tu-chrome { display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: #d7e6f4; border-bottom: 1px solid #c5d7e8; flex: none; }
.tu-dots { display: flex; gap: 6px; }
.tu-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.tu-dots i:nth-child(1) { background: #ff5f57; }
.tu-dots i:nth-child(2) { background: #febc2e; }
.tu-dots i:nth-child(3) { background: #28c840; }
.tu-url { flex: 1; min-width: 0; background: #fff; border-radius: 16px; padding: 5px 14px; font: 12px var(--mono); color: #3b4252; display: flex; gap: 8px; align-items: center; overflow: hidden; white-space: nowrap; }
.tu-lock { font-size: 11px; }

.tu-top { display: flex; align-items: center; gap: 16px; padding: 0 18px 0 16px; background: #fff; border-bottom: 1px solid var(--tu-line); min-height: 54px; flex: none; }
.tu-brand { display: flex; align-items: center; gap: 8px; flex: none; font-weight: 600; font-size: 20px; letter-spacing: -.03em; color: var(--tu-navy); }
.tu-brand b { font-weight: 800; }
.tu-glyph { display: grid; place-items: center; width: 26px; height: 26px; }
.tu-glyph svg { display: block; }
.tu-nav { display: flex; gap: 2px; height: 54px; min-width: 0; overflow-x: auto; }
.tu-nav button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0 14px; font: 600 13.5px var(--sans); color: var(--tu-muted); cursor: pointer; white-space: nowrap; }
.tu-nav button:hover { color: var(--tu-navy); }
.tu-nav button.on { color: var(--tu-navy); border-bottom-color: var(--tu-blue); }
.tu-wallet { margin-left: auto; flex: none; display: flex; align-items: baseline; gap: 8px; background: #eef6ff; border: 1px solid #c5ddf5; color: var(--tu-navy); border-radius: 999px; padding: 6px 12px 6px 14px; font-size: 12.5px; }
.tu-wallet b { font-size: 15px; color: var(--tu-blue); letter-spacing: -.02em; }
.tu-wallet b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #2e844a; box-shadow: 0 0 0 3px #2e844a22; vertical-align: 1px; }

.tu-main { flex: 1; min-height: 0; min-width: 0; overflow: auto; padding: 20px 22px 32px; scrollbar-color: #c5d4e4 transparent; }
.tu-main::-webkit-scrollbar-thumb { background-color: #c5d4e4; }

.tu-kicker { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tu-blue); margin-bottom: 6px; }
.tu-head { margin-bottom: 14px; }
.tu-head p, .tu-role, .tu-summary, .tu-how p, .tu-done p, .tu-empty p { color: var(--tu-ink); }
.tu-head p, .tu-how p, .tu-done p { margin-top: 4px; font-size: 14.5px; }
.tu-summary { font-size: 13.5px; margin-top: 6px; }

.tu-card { background: #fff; border: 1px solid var(--tu-line); border-radius: 12px; padding: 16px; box-shadow: 0 8px 24px #032d600e; }
.tu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.tu-ach-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tu-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }

.tu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 16px; border-radius: 999px; border: 1px solid #d3dfeb; background: #fff; color: var(--tu-navy); font: 600 13.5px/1.3 var(--sans); cursor: pointer; text-align: center; }
.tu-btn:hover:not(:disabled) { background: #f3f8fd; border-color: #b9d0e6; }
.tu-btn:focus-visible, .tu-nav button:focus-visible, .tu-stat:focus-visible { outline: 2px solid var(--tu-blue); outline-offset: 2px; }
.tu-btn.tu-primary { background: var(--tu-blue); border-color: var(--tu-blue); color: #fff; }
.tu-btn.tu-primary:hover:not(:disabled) { background: #014486; border-color: #014486; }
.tu-btn:disabled { background: #f4f7fb; color: var(--tu-muted); border-color: #e1e9f2; opacity: 1; cursor: default; }
.tu-btn.tu-ok:disabled { background: #e8f6ee; color: #0b6b3a; border-color: #b7e4c7; }

.tu-hero { position: relative; overflow: hidden; border-radius: 16px; min-height: 200px; padding: 28px 32px 92px; background: linear-gradient(180deg, #f7fbff 0%, #d4ebfb 50%, #b9daf3 100%); box-shadow: 0 10px 28px #032d6012; }
.tu-hero-copy { position: relative; z-index: 2; max-width: 540px; }
.tu-hero p { margin-top: 8px; font-size: 14.5px; color: var(--tu-ink); max-width: 48ch; }
.tu-sun { position: absolute; z-index: 0; right: 24%; top: 34px; width: 42px; height: 42px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 0 10px #ffe08a44; }
.tu-cloud { position: absolute; z-index: 1; background: #fff; border-radius: 20px; opacity: .92; }
.tu-cloud::before, .tu-cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.tu-cloud.c1 { width: 78px; height: 18px; top: 26px; right: 12%; }
.tu-cloud.c1::before { width: 28px; height: 28px; top: -16px; left: 14px; }
.tu-cloud.c1::after { width: 20px; height: 20px; top: -11px; left: 38px; }
.tu-cloud.c2 { width: 52px; height: 14px; top: 62px; right: 6%; }
.tu-cloud.c2::before { width: 18px; height: 18px; top: -11px; left: 10px; }
.tu-cloud.c2::after { width: 14px; height: 14px; top: -7px; left: 24px; }
.tu-cloud.c3 { width: 36px; height: 12px; top: 22px; right: 30%; opacity: .8; }
.tu-cloud.c3::before { width: 14px; height: 14px; top: -8px; left: 6px; }
.tu-cloud.c3::after { width: 11px; height: 11px; top: -5px; left: 16px; }
.tu-hill { position: absolute; z-index: 1; bottom: -36px; border-radius: 50% 50% 0 0; }
.tu-hill.h1 { left: -4%; width: 48%; height: 100px; background: #8ec4ee; }
.tu-hill.h2 { left: 30%; width: 46%; height: 78px; background: #69ade0; }
.tu-hill.h3 { right: -6%; width: 38%; height: 62px; background: #4e96d0; }
.tu-path { position: absolute; z-index: 2; left: 6%; right: 8%; bottom: 26px; height: 0; border-top: 3px dotted rgba(255, 255, 255, .85); }

.tu-profile { padding: 0; overflow: hidden; }
.tu-banner { height: 72px; background: linear-gradient(115deg, #7ec8f8, #0176d3 46%, #032d60); }
.tu-profile-body { padding: 14px 18px 18px; }
.tu-cash { margin-top: 14px; }
.tu-cash span { display: block; font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tu-muted); }
.tu-cash b { display: block; margin-top: 2px; font-size: 32px; letter-spacing: -.03em; line-height: 1.1; }
.tu-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tu-stat { text-align: left; background: #f4f8fc; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: inherit; }
.tu-stat:hover { background: #e7f2fb; }
.tu-stat b { display: block; font-size: 20px; letter-spacing: -.02em; }
.tu-stat span { font-size: 12px; color: var(--tu-muted); }
.tu-how { display: flex; flex-direction: column; justify-content: center; }
.tu-how p { font-size: 15px; line-height: 1.55; }

.tu-next { margin-top: 4px; }
.tu-next-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tu-done { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tu-done .tu-btn { margin-top: 6px; }

.tu-cert { display: flex; flex-direction: column; }
.tu-cert-badge { display: flex; justify-content: center; min-height: 112px; margin-bottom: 10px; }
.tu-perk { background: #f3f8ff; border-left: 3px solid var(--tu-blue); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.45; margin: 10px 0; }
.tu-perk-k { display: block; font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tu-blue); margin-bottom: 2px; }
.tu-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.tu-meta b { font-size: 16px; }
.tu-rank { font-size: 12px; color: var(--tu-muted); background: #f2f6fb; border-radius: 999px; padding: 3px 8px; text-align: right; }
.tu-cert .tu-btn { width: 100%; margin-top: auto; }

.tu-badge { object-fit: contain; display: block; }
.tu-hex { display: inline-grid; flex: none; }
.tu-hex svg { width: 100%; height: 100%; display: block; }
.tu-badge-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tu-badge-card h3 { margin-top: 8px; }
.tu-badge-card .tu-perk { text-align: left; align-self: stretch; }
.tu-badge-card .tu-btn { align-self: stretch; margin-top: auto; }
.tu-earned { margin-top: 4px; font-size: 12.5px; color: var(--tu-muted); }

.tu-empty { max-width: 440px; margin: 48px auto; text-align: center; background: #fff; border: 1px solid var(--tu-line); border-radius: 12px; padding: 36px 28px; box-shadow: 0 8px 24px #032d600e; }
.tu-empty-ico { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.tu-empty p { margin: 8px 0 16px; }
.tu-empty .tu-btn { margin: 0 auto; }

.tu-progress { margin-bottom: 16px; }
.tu-progress-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.tu-progress-h span { color: var(--tu-muted); font-variant-numeric: tabular-nums; }
.tu-track { height: 8px; background: #e1ebf5; border-radius: 99px; overflow: hidden; }
.tu-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0176d3, #1b96ff); border-radius: 99px; transition: width .35s ease; }
.tu-ach { display: flex; flex-direction: column; }
.tu-ach-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #e8f4ff; margin-bottom: 10px; }
.tu-ach p { color: var(--tu-ink); font-size: 13.5px; margin: 4px 0 12px; }
.tu-ach-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; font-size: 12.5px; color: var(--tu-muted); }
.tu-reward { color: #0b6b3a; font-size: 13.5px; }
.tu-ach.tu-locked { background: #f7f9fb; color: #6d7f95; box-shadow: none; }
.tu-ach.tu-locked h3 { color: #4e6078; }
.tu-ach.tu-locked p, .tu-ach.tu-locked .tu-reward { color: #7d8da1; }
.tu-ach.tu-locked .tu-ach-ico { background: #e8eef4; }

.tu-exam { position: absolute; inset: 0; z-index: 5; background: #032d60c7; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tu-exam-card { width: min(440px, 100%); background: #fff; border-radius: 16px; padding: 28px 26px 24px; text-align: center; box-shadow: 0 24px 60px #0006; color: var(--tu-navy); display: flex; flex-direction: column; align-items: center; }
.tu-exam-card h2 { margin: 6px 0 4px; }
.tu-exam-card p { color: var(--tu-ink); font-size: 14.5px; }
.tu-exam-badge { min-height: 132px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tu-bar { width: 100%; height: 10px; margin-top: 16px; background: #e6eef7; border-radius: 99px; overflow: hidden; }
.tu-bar i { display: block; height: 100%; width: 0; background: var(--tu-blue); border-radius: 99px; animation: tu-grade 1.2s linear forwards; }
.tu-stamp { margin: 6px 0 2px; padding: 6px 14px; border: 4px solid #2e844a; color: #2e844a; font: 800 28px/1 var(--sans); letter-spacing: .16em; border-radius: 8px; transform: rotate(-8deg); animation: tu-stamp-in .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.tu-pop { animation: tu-pop .45s cubic-bezier(.2, 1.35, .4, 1) both; }

@keyframes tu-grade { to { width: 100%; } }
@keyframes tu-stamp-in {
  from { transform: rotate(-8deg) scale(1.5); opacity: 0; }
  to { transform: rotate(-8deg) scale(1); opacity: 1; }
}
@keyframes tu-pop {
  from { transform: scale(.45); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .tu-cloud.c1 { animation: tu-drift 9s ease-in-out infinite; }
  .tu-cloud.c2 { animation: tu-drift 12s ease-in-out infinite reverse; }
}
@keyframes tu-drift { 50% { transform: translateX(12px); } }
@media (prefers-reduced-motion: reduce) {
  .tu-bar i, .tu-stamp, .tu-pop, .tu-cloud, .tu-track i { animation: none; transition: none; }
  .tu-bar i { width: 100%; }
}
.tu-how { justify-content: flex-start; }
.tu-how-list { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--tu-ink); }
.tu-how-list b { color: #032d60; }
