:root {
  --suite-ink: #19302f;
  --suite-mast: #152b2d;
  --suite-green: #0d6954;
  --suite-mint: #c9f4df;
  --suite-font: Inter, "Segoe UI", Arial, sans-serif;
}
.suite-wordmark, .suite-home, .suite-mast {
  display: flex;
  align-items: center;
}
.suite-wordmark {
  gap: .7rem;
  font: 700 1rem/1 var(--suite-font);
  letter-spacing: .055em;
  white-space: nowrap;
}
.suite-mark {
  display: inline-grid;
  grid-template: repeat(2, 9px) / repeat(2, 9px);
  gap: 3px;
}
.suite-mark i { background: #9ce4be; border-radius: 2px; }
.suite-mark i:last-child { background: #54a98c; }
.suite-mast { gap: 1.25rem; min-height: 4rem; }
.mast-caption, .suite-home-label {
  padding-left: 1.25rem;
  border-left: 1px solid #ffffff3b;
  color: #d9e7e2;
  font: 400 .94rem/1.4 var(--suite-font);
}
.suite-home {
  width: fit-content;
  gap: 1.25rem;
  color: #f2f9f5;
  text-decoration: none;
  border-radius: 3px;
}
.suite-home:hover .suite-home-label, .instructor-home:hover .product { text-decoration: underline; text-underline-offset: .25em; }
.catalog a:focus-visible, .suite-home:focus-visible, .instructor-home:focus-visible {
  outline: 3px solid #46b894;
  outline-offset: 4px;
}

/* Catalogue */
.catalog, .catalog *, .suite-cover, .suite-cover *, .device-gate, .device-gate *, .suite-confirm, .suite-confirm * {
  box-sizing: border-box;
}
.catalog {
  margin: 0;
  background: #f3f6f2;
  color: var(--suite-ink);
  font: 1rem/1.45 var(--suite-font);
  -webkit-font-smoothing: antialiased;
}
.catalog-width { width: min(91%, 92rem); margin-inline: auto; }
.catalog-mast { color: white; background: var(--suite-mast); }
.catalog-main { padding: clamp(1.7rem, 5vh, 4.5rem) 0 2.5rem; }
.catalog-main h1 {
  margin: 0 0 clamp(1.3rem, 3.4vh, 2.6rem);
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 570;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.8rem); }
.trainer-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #c5d3cc;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .16s, box-shadow .16s;
}
.trainer-card:hover, .trainer-card:focus-visible { border-color: var(--suite-green); box-shadow: 0 5px 20px #19302f12; }
.trainer-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-copy { padding: clamp(1.1rem, 1.8vw, 2rem); }
.module-label, #cover .module-label {
  display: block;
  font: 650 .8rem/1.45 var(--suite-font);
  color: var(--suite-green);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card-copy h2, .instructor-card h2 {
  margin: .45rem 0 .55rem;
  font: 600 clamp(1.55rem, 2.2vw, 2.6rem)/1.1 var(--suite-font);
  letter-spacing: -.045em;
}
.card-copy p, .instructor-card p { margin: 0; font-size: 1rem; line-height: 1.45; color: #4d625d; }
.instructor-card {
  display: flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: clamp(7.2rem, 15vh, 11rem);
  overflow: hidden;
  margin-top: clamp(1rem, 2.6vh, 2rem);
  padding: 1.3rem clamp(1.3rem, 2.2vw, 2.8rem);
  background: var(--suite-mast);
  color: white;
  border-radius: 12px;
  text-decoration: none;
}
.instructor-card img {
  position: absolute; z-index: -2; height: 100%; width: 50%; inset: 0 0 0 auto;
  object-fit: cover; object-position: center 56%;
}
.instructor-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, var(--suite-mast) 42%, #152b2dcc 64%, #152b2d52);
}
.instructor-card h2 { margin-top: 0; }
.instructor-card p { color: #d7e5dc; }
.instructor-open { flex: none; padding: .65rem 1rem; border: 1px solid #c0d9cc; border-radius: 6px; background: #142a2de8; }
.instructor-card:hover .instructor-open, .instructor-card:focus-visible .instructor-open { background: var(--suite-mint); color: var(--suite-ink); }

/* Start screens use their own full-window backgrounds; the exercise retains its calibrated coordinates. */
body:has(#cover.suite-cover:not([hidden])) { overflow: hidden; }
#cover.suite-cover {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: stretch;
  width: 100%; height: 100%; min-height: 0; padding: 0;
  overflow: auto; overscroll-behavior: contain;
  color: #f5faf7; background: #172c30;
  font: 1rem/1.45 var(--suite-font); text-align: left;
}
#cover.suite-cover::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(90deg, #0c2229f7, #0d242bea 23%, #0c2029bd 43%, #0c202948 69%, #0c202915),
    linear-gradient(0deg, #0a20294d, transparent 40%), var(--cover-image);
  background-position: center; background-size: cover;
}
.suite-height { --cover-image: url("../Visual_Prototype_Instructor/assets/roof.webp"); }
.suite-fiber { --cover-image: url("../Visual_Prototype_Instructor/assets/surface.webp"); }
.suite-pc { --cover-image: url("../Visual_Prototype_Instructor/assets/bench.webp"); }
#cover.suite-cover[hidden], #cover.suite-cover [hidden] { display: none !important; }
#cover .suite-mast {
  flex: none; min-height: clamp(3.5rem, 7vh, 5rem); padding: 0 clamp(1.5rem, 5vw, 6rem);
  border-bottom: 1px solid #d4e8e32b; background: #102629ad;
}
#cover .launch-area {
  width: min(100%, 105rem); margin: auto 0;
  padding: clamp(1.1rem, 4vh, 3.8rem) clamp(1.5rem, 6.3vw, 7.5rem);
}
#cover .module-label { color: #b9ead4; margin-bottom: .75rem; }
#cover .launch-title {
  margin: 0; color: #f7fbf9;
  font: 520 clamp(3rem, min(5.8vw, 9vh), 7rem)/1.03 var(--suite-font);
  letter-spacing: -.05em; text-wrap: balance;
}
#cover .launch-subtitle {
  margin: .7rem 0 0; color: #e2ebe8;
  font: 400 clamp(1.15rem, 1.7vw, 1.9rem)/1.28 var(--suite-font);
}
#cover .launch-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-block: clamp(1.2rem, 3.6vh, 2.8rem); }
#cover .launch-actions button, .suite-confirm button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 2.8rem; margin: 0; padding: .7rem 1.6rem;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer;
  font: 620 1rem/1.35 var(--suite-font);
}
#cover #start, .suite-confirm .accept { background: var(--suite-mint); border-color: var(--suite-mint); color: #142e28; }
#cover #start:hover, .suite-confirm .accept:hover { background: #e2ffef; }
#cover #resume, .suite-confirm .cancel { background: #183038b0; border-color: #93aba6; color: #edf8f3; }
#cover #resume:hover, .suite-confirm .cancel:hover { background: #36534f; }
#cover .launch-stages { width: fit-content; max-width: 100%; border-top: 1px solid #b0d0c549; padding-top: clamp(.7rem, 1.9vh, 1.4rem); }
#cover .launch-stages h2 {
  margin: 0 0 .45rem; color: #c1d1cd;
  font: 600 .86rem/1.3 var(--suite-font); letter-spacing: .035em;
}
#cover .launch-stages ol {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--stage-rows), auto);
  grid-auto-columns: max-content; column-gap: clamp(1.2rem, 3.2vw, 4rem);
  margin: 0; padding: 0; list-style: none; counter-reset: stage;
}
#cover .launch-stages li { counter-increment: stage; }
#cover .launch-stages button {
  display: flex; width: 100%; align-items: baseline; gap: .7rem;
  min-width: 0; min-height: 0; margin: 0; padding: .33rem .4rem .33rem 0;
  border: 0; border-radius: 3px; background: transparent; color: #edf6f2;
  font: 450 clamp(.92rem, 1.08vw, 1.1rem)/1.35 var(--suite-font); text-align: left;
}
#cover .launch-stages button::before {
  content: counter(stage, decimal-leading-zero); color: #a3c9ba;
  font: 400 .77rem/1 Consolas, monospace; letter-spacing: .04em;
}
#cover .launch-stages button:hover { color: white; text-decoration: underline; text-underline-offset: .22em; background: #16362e90; }
#cover button:focus-visible, .suite-confirm button:focus-visible, .device-gate button:focus-visible {
  outline: 3px solid #a7f2ce; outline-offset: 2px;
}
.instructor-home { color: inherit; text-decoration: none; border-radius: 3px; }
.instructor-home .product { text-underline-offset: .2em; }

/* Device notice and saved-session confirmation */
dialog.device-gate, dialog.suite-confirm {
  box-sizing: border-box; color-scheme: dark; color: #f2f8f5; font: 1rem/1.5 var(--suite-font);
}
dialog.device-gate[open] {
  position: fixed; inset: 0; display: grid; place-items: center; width: 100%; height: 100%;
  max-width: none; max-height: none; padding: 1.7rem; margin: 0; border: 0; border-radius: 0;
  background: var(--suite-mast); text-align: left;
}
.device-inner { width: min(100%, 31rem); margin: auto; }
.device-gate .suite-wordmark { margin-bottom: 2.8rem; }
.device-gate h2, dialog.suite-confirm h2 {
  margin: 0 0 .85rem; color: white;
  font: 550 clamp(1.7rem, 6vw, 2.6rem)/1.12 var(--suite-font); letter-spacing: -.035em;
}
.device-gate p, dialog.suite-confirm p { margin: 0; color: #d2e2db; font: 1rem/1.5 var(--suite-font); }
.device-gate h2:focus { outline: none; }
.device-gate #device-rotate { margin-top: 1rem; color: #b2c3bd; font-size: .93rem; }
dialog.device-gate .device-continue {
  display: inline-block; width: auto; max-width: 100%; min-width: 0; min-height: 44px; margin: .65rem 0 0; padding: .5rem 0;
  appearance: none; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #b2c3bd; cursor: pointer;
  font: 400 .92rem/1.45 var(--suite-font); text-align: left; text-decoration: underline;
  text-decoration-color: #738e84; text-underline-offset: .2em;
}
.suite-mobile dialog.device-gate[open] {
  height: 100dvh; overflow: auto; overscroll-behavior: contain;
  padding: max(1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}
.suite-mobile:has(.device-gate[open]), .suite-mobile body:has(.device-gate[open]) { overflow: hidden; }
.suite-mobile dialog.device-gate:not([open]), .suite-mobile .device-gate [hidden],
.suite-mobile button.device-full[hidden], .suite-mobile .tools :is(#full,#fullscreen)[hidden] { display: none !important; }
.suite-mobile button.device-full {
  flex: none; margin-inline-start: auto; min-height: 44px; padding: .45rem .75rem;
  border: 1px solid #91b2a6; border-radius: 6px; background: #173531; color: #effaf4;
  font: 550 .9rem/1.2 var(--suite-font); touch-action: manipulation;
}
.device-screen-status {
  position: fixed; z-index: 200; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: max-content; max-width: 85vw; padding: .55rem .9rem; border-radius: 6px; background: #142e28;
  color: #fff; font: 500 .9rem/1.4 var(--suite-font); pointer-events: none;
}
@media (orientation: landscape) and (max-height: 540px) {
  .suite-mobile .device-gate .suite-wordmark { margin-bottom: .85rem; }
  .suite-mobile .device-gate h2 { font-size: clamp(1.55rem, 5.5vh, 2rem); }
  .suite-mobile .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
  .suite-mobile .trainer-card img { height: clamp(4rem, 23vh, 7rem); object-fit: cover; }
  .suite-mobile .card-copy { padding: .7rem .8rem; }
  .suite-mobile .catalog-main { padding-block: 1rem; }
  .suite-mobile .catalog-main h1 { margin-bottom: .8rem; font-size: 2rem; }
  .suite-mobile #cover .suite-mast { min-height: 3rem; padding-inline: max(1rem, env(safe-area-inset-left)); }
  .suite-mobile #cover .launch-stages button { min-height: 44px; }
  .suite-mobile .suite-fiber .topbar { min-height: 44px; padding-block: .2rem; }
  .suite-mobile .suite-fiber #footer { min-height: 44px; padding-block: .2rem; }
  .suite-mobile .suite-fiber .progress span:not(.current) { display: none; }
  .suite-mobile .suite-fiber #footer .progress { flex: 0 1 auto; }
}
dialog.suite-confirm { width: min(28rem, 92vw); max-height: 90dvh; padding: 1.7rem; border: 1px solid #728a82; border-radius: 12px; background: var(--suite-mast); }
dialog.suite-confirm h2 { font-size: 1.65rem; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
dialog.suite-confirm::backdrop { background: #081b20c9; }

@media (min-width: 761px) and (max-height: 760px) {
  .catalog-main { padding-block: clamp(1rem, 3vh, 1.45rem) 1.2rem; }
  .catalog-main h1 { margin-bottom: 1.05rem; font-size: clamp(2.6rem, 4.4vw, 3.8rem); }
  .trainer-card img { height: clamp(8rem, 25vh, 13.4rem); aspect-ratio: auto; }
  .card-copy { padding: 1rem 1.25rem; }
  .instructor-card { min-height: 6rem; margin-top: 1rem; }
}
@media (max-height: 700px) {
  #cover .launch-area { padding-block: 1rem; }
  #cover .launch-actions { margin-block: 1.1rem; }
  #cover .launch-stages button { padding-block: .21rem; }
}
@media (max-width: 760px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-main h1 { font-size: 2.4rem; }
  .catalog-mast .mast-caption { font-size: .78rem; }
  .trainer-card img { max-height: 14rem; }
  .instructor-card { align-items: flex-start; flex-direction: column; gap: .8rem; }
  #cover .launch-area { padding: 1.35rem 6vw; }
  #cover .launch-stages ol { grid-auto-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  #cover.suite-cover::before { background-image: linear-gradient(90deg, #0c2229f1, #0d242bc9 65%, #0c20299e), var(--cover-image); }
  #cover .launch-title { font-size: clamp(2.45rem, 11vw, 3.3rem); }
  #cover .launch-stages ol { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; }
  #cover .launch-stages button { padding-block: .37rem; }
}
@media (max-height: 600px) and (min-width: 761px) {
  #cover .launch-title { font-size: 2.6rem; }
  #cover .launch-subtitle { font-size: 1.15rem; margin-top: .35rem; }
  #cover .module-label { margin-bottom: .3rem; }
}
@media (prefers-reduced-motion: reduce) { .trainer-card { transition: none; } }
