.learning-layout.time-home-layout .learning-main { padding: 0; margin: 0; background: #073386; }

.learning-layout.time-home-layout .app-shell { max-width: none; padding: 0 !important; margin: 0; }

.learning-layout.time-home-layout > .learning-main > .learning-service-bar { display: none; }

.learning-layout.time-home-layout .learning-sidebar { background: #061d4e; }

.learning-layout.time-home-layout .learning-nav-item { color: #edf4ff; }

.learning-layout.time-home-layout .learning-nav-item.is-active { color: #ffffff; background: #0969ff; border-color: #4998ff; }

.learning-layout.time-home-layout .learning-nav-item:hover { color: #ffffff; background: #143b76; }

.time-home { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; padding: 22px 24px 42px; overflow: hidden; color: #ffffff; background: #073386; }

.time-home-scene { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.time-home-characters { position: absolute; left: 3%; bottom: 26%; width: 46%; height: auto; z-index: 0; pointer-events: none; filter: drop-shadow(0 16px 12px #00174366); }

.time-home-top, .time-home-welcome { position: relative; z-index: 1; }

.time-home-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 48px; }

.time-home-user { display: flex; align-items: center; gap: 10px; color: #ffffff; font-size: 17px; font-weight: 700; }

.time-user-mark { display: block; width: 40px; height: 40px; object-fit: contain; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

.time-home-services { display: flex; gap: 8px; }

.time-home-services button { min-height: 36px; padding: 6px 12px; border: 1px solid #a8c8fa; border-radius: 6px; color: #ffffff; background: #073477; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; }

.time-home-services button:hover { background: #14559b; }

.time-home-welcome { display: flex; flex: 1; align-items: center; justify-content: flex-end; min-height: 390px; padding: 24px 0 100px; }

.time-home-copy { width: 51%; }

.time-home-copy h1 { margin: 0 0 18px; color: #ffffff; font-size: 44px; font-weight: 800; line-height: 1.35; letter-spacing: 0; text-shadow: 0 2px 12px #04205a99; }

.time-home-copy > p { margin: 0; color: #ffffff; font-size: 21px; line-height: 1.6; text-shadow: 0 2px 8px #04205a; }

.time-home-date { display: flex; align-items: center; gap: 14px; width: fit-content; margin: 28px 12px 0 auto; padding: 14px 20px; border: 1px solid #c6ddff; border-radius: 8px; background: #f4f8ff; color: #102747; box-shadow: 0 4px 14px #04205a20; }

.time-home-date time { display: flex; gap: 14px; font-size: 16px; font-weight: 700; white-space: nowrap; }

.time-calendar-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #a34b9c; border-top-width: 7px; border-radius: 4px; color: #90388a; font-size: 13px; font-weight: 800; }

.time-home-portals { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; width: 88%; margin: 0 auto; }

.time-portal { position: relative; min-width: 0; aspect-ratio: 16 / 9; padding: 0; border: 0; background: transparent; cursor: default; }

.time-portal-surface { position: absolute; inset: 0; display: block; }

/* Feather only the artwork; keep the floating glyphs crisp outside its curved edge. */

.time-portal-art { position: absolute; inset: 0; background-image: url('assets/ui-delivery/time-home-portals-v1-9e8d68627073-w1200.webp'); background-size: 200% 200%; background-position: var(--portal-position); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, #000e 56%, #0008 74%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, #000e 56%, #0008 74%, transparent 98%); }

.time-planet { position: absolute; top: -7%; left: var(--glyph-left, 18%); width: 27%; max-width: 118px; min-width: 64px; aspect-ratio: 1; z-index: 1; transition: transform .2s ease; }

.time-portal-write { --glyph-left: 20%; }

.time-portal-listen { --glyph-left: 23%; }

.time-portal-practice { --glyph-left: 17%; }

.time-planet-body { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid #f5deff; border-radius: 50%; background: radial-gradient(circle at 30% 20%, #f3cbff, #a923e7 43%, #6007bf 80%); box-shadow: inset -6px -5px 10px #42008a55, 0 5px 9px #2b145344; animation: time-planet-float 4.8s ease-in-out infinite; animation-delay: var(--float-delay); }

.time-planet-body::before { content: ''; position: absolute; inset: 28% -21%; z-index: -1; border: 4px solid #ffe785; border-radius: 50%; transform: rotate(-23deg); box-shadow: 0 2px 5px #ffd95180; }

.time-planet b { position: relative; color: #ffffff; font-size: 42px; font-weight: 900; line-height: 1; text-shadow: 1px 1px #dfcaff, 2px 2px #c18aed, 3px 3px #9652bd, 4px 4px #7135a3, 5px 6px 5px #48067477; }

.time-portal-write .time-planet-body { background: radial-gradient(circle at 30% 20%, #c2f8ff, #088ef7 43%, #0346b5 80%); }

.time-portal-listen .time-planet-body { background: radial-gradient(circle at 30% 20%, #dcff9e, #46ce21 43%, #078526 80%); }

.time-portal-practice .time-planet-body { background: radial-gradient(circle at 30% 20%, #ffd8f2, #f141a0 43%, #b70e67 80%); }

.time-portal-write .time-planet b { text-shadow: 1px 1px #d4f6ff, 2px 2px #9bdcff, 3px 3px #4f99e6, 4px 4px #206ac1, 5px 6px 5px #03326e88; }

.time-portal-listen .time-planet b { text-shadow: 1px 1px #e9ffcf, 2px 2px #beeb9b, 3px 3px #79c364, 4px 4px #3f9c4a, 5px 6px 5px #08682a88; }

.time-portal-practice .time-planet b { text-shadow: 1px 1px #ffe3f2, 2px 2px #ffbedb, 3px 3px #db72a2, 4px 4px #ad3571, 5px 6px 5px #78073d88; }

.time-home button:focus-visible { outline: 3px solid #ffe17a; outline-offset: 5px; }

.time-home-menu, .time-nav-backdrop { display: none; }

@keyframes time-planet-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (min-width: 1101px) {

  .learning-layout.time-home-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); }

  .learning-layout.time-home-layout .learning-sidebar { position: sticky; inset: 0 auto auto; width: auto; }

}

@media (min-width: 1700px) {

  .time-home { padding: 26px 30px 48px; }

  .time-home-copy h1 { font-size: 54px; }

  .time-home-copy > p { font-size: 25px; }

  .time-home-welcome { min-height: 460px; }

  .time-planet b { font-size: 54px; }

}

@media (max-width: 1150px) {

  .time-home-copy h1 { font-size: 36px; }

  .time-home-copy > p { font-size: 18px; }

  .time-home-welcome { min-height: 370px; padding-bottom: 80px; }

  .time-home-portals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; }

  .time-home-scene { height: 650px; object-position: 28% top; }

  .time-portal { aspect-ratio: 16 / 9; }

}

@media (max-width: 1100px) {

  .learning-layout.time-home-layout { display: block; }

  .learning-layout.time-home-layout .learning-sidebar { display: none; }

  .time-home { padding: 16px 16px 30px; }

  .time-home-menu { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #abcfff; border-radius: 6px; background: #073477; color: #ffffff; font-size: 24px; cursor: pointer; }

  .time-home-top { justify-content: space-between; gap: 8px; }

  .time-home-user { font-size: 14px; gap: 6px; }

  .time-user-mark { width: 30px; height: 30px; font-size: 13px; }

  .time-home-services { gap: 5px; }

  .time-home-services button { padding: 5px 7px; font-size: 12px; }

  .time-home-welcome { min-height: 450px; align-items: flex-start; padding-top: 28px; padding-bottom: 0; }

  .time-home-copy { width: 100%; text-align: center; }

  .time-home-copy h1 { font-size: 30px; margin-bottom: 10px; }

  .time-home-copy > p { font-size: 16px; }

  .time-home-date { margin: 16px auto 0; padding: 10px 14px; gap: 10px; }

  .time-home-date time { font-size: 14px; }

  .time-home-scene { inset: 190px 0 auto; width: 100%; height: 430px; object-fit: cover; object-position: 19% center; -webkit-mask-image: linear-gradient(transparent, #000 5%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 5%, #000 78%, transparent); }

  .time-home-portals { gap: 38px 16px; width: 90%; }

  .time-home-characters { top: 260px; bottom: auto; left: 7%; width: 70%; max-width: 540px; }

  .time-planet { width: 32%; min-width: 52px; max-width: 72px; }

  .time-planet b { font-size: 32px; }

  .time-planet-body::before { border-width: 3px; }

  .learning-layout.space-nav-open.time-home-layout .learning-sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 85vw); height: 100dvh; padding: 16px; z-index: 60; overflow-y: auto; }

  .learning-layout.space-nav-open .time-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; border: 0; background: #03142f99; }

}

@media (max-width: 600px) {

  .time-home-characters { top: 285px; left: 4%; width: 92%; }

  .time-home-portals { width: 96%; }

}

@media (max-width: 360px) {

  .time-home { padding-right: 12px; padding-left: 12px; }

  .time-home-copy h1 { font-size: 27px; }

  .time-user-mark { display: none; }

  .time-home-services button { padding: 5px; }

}

@media (prefers-reduced-motion: reduce) {

  .time-planet-body { animation: none; }

  .time-home *, .time-home *::before { transition: none; }

}


/* Tablet uses the desktop navigation column, never an overlay over the hero. */
@media (min-width:701px) and (max-width:1366px) {
  .typex-touch .learning-layout.time-home-layout,
  .typex-touch .learning-layout.time-home-layout.space-nav-open { display:grid; grid-template-columns:200px minmax(0,1fr); }
  .typex-touch .learning-layout.time-home-layout > .learning-sidebar,
  .typex-touch .learning-layout.time-home-layout.space-nav-open > .learning-sidebar { display:flex; position:sticky; inset:0 auto auto; width:auto; height:var(--typex-viewport-height,100vh); min-height:0; padding:12px 8px; overflow-y:auto; z-index:3; }
  .typex-touch .learning-layout.time-home-layout .learning-nav { min-height:0; gap:3px; }
  .typex-touch .learning-layout.time-home-layout .learning-nav-item { min-height:44px; padding:6px 8px; font-size:14px; }
  .typex-touch .learning-layout.time-home-layout .time-home-menu,
  .typex-touch .learning-layout.time-home-layout .time-nav-backdrop { display:none; }
  .typex-touch .time-home { min-height:var(--typex-viewport-height,100vh); padding:14px 16px 24px; }
  .typex-touch .time-home-scene { inset:0; width:100%; height:100%; object-fit:cover; object-position:center; -webkit-mask-image:none; mask-image:none; }
}
@media (min-width:701px) and (max-width:1366px) and (orientation:landscape) {
  .typex-touch .time-home-welcome { min-height:260px; padding:10px 0 24px; align-items:center; }
  .typex-touch .time-home-copy { width:53%; margin-left:auto; text-align:left; }
  .typex-touch .time-home-copy h1 { font-size:clamp(25px,2.7vw,36px); }
  .typex-touch .time-home-copy > p { font-size:16px; }
  .typex-touch .time-home-date { margin:16px 0 0; padding:9px 12px; }
  .typex-touch .time-home-characters { top:auto; bottom:28%; left:1%; width:48%; max-width:620px; }
  .typex-touch .time-home-portals { grid-template-columns:repeat(4,minmax(0,1fr)); width:96%; gap:12px; }
  .typex-touch .time-planet { min-width:44px; max-width:62px; }
  .typex-touch .time-planet b { font-size:28px; }
}
@media (min-width:701px) and (max-width:1100px) and (orientation:portrait) {
  .typex-touch .learning-layout.time-home-layout { grid-template-columns:180px minmax(0,1fr); }
  .typex-touch .time-home-welcome { min-height:490px; }
  .typex-touch .time-home-characters { left:3%; width:94%; max-width:none; }
  .typex-touch .time-home-portals { width:94%; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Keep desktop calendar; mobile/tablet home deliberately omits it. */
@media(max-width:700px) { .time-home-date { display:none; } }
@media(max-width:1366px) { .typex-touch .time-home-date { display:none; } }
/* Contain the complete scene instead of cropping the clock with object-fit:cover. */
@media(min-width:701px) and (max-width:1366px) {
  .typex-touch .time-home-scene { inset:50% 0 auto; width:100%; height:auto; max-height:100%; object-fit:contain; object-position:center; transform:translateY(-50%); -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent); mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent); }
}
@media(min-width:701px) and (max-width:1100px) and (orientation:portrait) {
  .typex-touch .time-home-characters { top:auto; bottom:30%; left:4%; width:58%; }
}

/* Portrait tablet: compact greeting; give the illustration its own grid row. */
@media (min-width:701px) and (max-width:1100px) and (orientation:portrait) {
  .typex-touch .time-home { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto minmax(min-content,1fr) auto; gap:12px; }
  .typex-touch .time-home-top { grid-row:1; grid-column:1; min-height:44px; }
  .typex-touch .time-home-welcome { grid-row:2; grid-column:1; min-height:0; flex:none; padding:8px 0 6px; align-items:center; }
  .typex-touch .time-home-copy { width:100%; margin:0; text-align:center; }
  .typex-touch .time-home-copy h1 { font-size:24px; line-height:1.3; margin:0 0 8px; }
  .typex-touch .time-home-copy > p { font-size:14px; line-height:1.5; margin:0; }
  .typex-touch .time-home-scene { position:relative; grid-row:3; grid-column:1; align-self:start; inset:auto; transform:none; width:calc(100% + 32px); height:auto; max-height:none; max-width:none; margin-left:-16px; object-fit:contain; }
  .typex-touch .time-home-characters { position:relative; grid-row:3; grid-column:1; align-self:start; justify-self:start; inset:auto; width:62%; height:auto; max-width:none; margin:calc(25vw - 45px) 0 0; }
  .typex-touch .time-home-portals { grid-row:4; grid-column:1; align-self:end; margin:0 auto; }
}
