/* A quiet public welcome. The private application keeps its own navigation. */
:root .welcome-intro[hidden], :root #authPreparing[hidden] { display: none !important; }
:root .welcome-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 740px;
  min-height: max(640px, 100svh);
  width: 100%;
  overflow: hidden;
  color: #242D2A;
  background: #E7DCC8;
}
.welcome-scene, .welcome-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}
.welcome-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 243, 235, .22), rgba(247, 243, 235, .28) 45%, rgba(247, 243, 235, .30) 76%, rgba(247, 243, 235, .50));
}
:root .welcome-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  padding: 32px clamp(22px, 5vw, 88px);
}
.welcome-brand { display: block; min-width: 0; color: #242D2A; text-decoration: none; }
.welcome-brand img {
  display: block;
  width: 142.9px;
  height: 43px;
  max-width: 100%;
  object-fit: contain;
  object-position: 0% 50%;
  filter: none;
  mix-blend-mode: normal;
  background: transparent;
}
.welcome-signature {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1px;
  white-space: nowrap;
}
.welcome-top-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
:root .welcome-intro .language-control { color: #242D2A; }
:root .welcome-intro .language-select { color-scheme: light; }
:root .welcome-copy {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 100px;
  text-align: center;
}
.welcome-rule { width: 52px; height: 3px; background: #244B4A; margin: 0 0 32px; }
:root .welcome-copy h1 {
  max-width: 950px;
  margin: 0;
  color: #242D2A;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 5.8vw, 84px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: normal;
}
/* Replay keeps reading focus for screen readers. The shared focus-visible rule
   also paints a white box-shadow, so suppress both decorations on this heading. */
:root #welcomeTitle,
:root #welcomeTitle:focus,
:root #welcomeTitle:focus-visible {
  outline: none;
  box-shadow: none;
}
/* Keep the former two-line caption's space between the title and button. */
:root .welcome-space {
  flex: 0 0 auto;
  height: 3.5em;
  margin: 28px 0 32px;
  font-size: clamp(16px, 1.45vw, 19px);
}
:root .welcome-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 5px;
  border: 1px solid #244B4A;
  background: #244B4A;
  color: #F7F3EB;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.welcome-enter:hover { background: #193C3B; }
.welcome-enter svg { width: 18px; height: 18px; overflow: hidden; }
/* The entire welcome is static, including inherited control transitions. */
.welcome-intro *, .welcome-intro *::before, .welcome-intro *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.welcome-present #authGate { background: #F7F3EB; scroll-margin-top: 0; }
.welcome-present .auth-story .eyebrow { margin-top: 24px; }
:root #welcomeReplay { padding: 10px 0; min-height: 44px; font-size: 14px; }
:root #authPreparing { display: none; }
:root body.auth-checking #authGate { display: grid; place-items: center; position: relative; min-height: 100svh; background: #F7F3EB; }
:root body.auth-checking #authGate .auth-layout { visibility: hidden; position: absolute; }
:root body.auth-checking #authPreparing { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: calc(100% - 40px); text-align: center; }
#authPreparing img { width: 142.9px; height: 43px; object-fit: contain; object-position: 50% 50%; background: transparent; }
#authPreparing p { margin: 0; font-size: 14px; color: #242D2A; }
@media (max-width: 700px) {
  :root .welcome-intro { min-height: max(680px, 100svh); }
  :root .welcome-masthead { padding: 22px 22px 0; gap: 18px; }
  .welcome-brand img { width: 119.8px; height: 36.1px; }
  .welcome-signature { font-size: 13px; }
  .welcome-top-actions { margin-left: auto; }
  :root .welcome-copy { padding: 32px 22px 156px; }
  :root .welcome-copy h1 { max-width: 460px; }
  :root .welcome-space { margin-top: 24px; font-size: 16px; }
  /* Anchor the left shore so the torii survives a narrow portrait crop. */
  .welcome-scene { object-position: 0% 50%; }
}
@media (max-height: 550px) and (min-width: 701px) {
  :root .welcome-intro { min-height: 550px; }
  :root .welcome-masthead { padding-top: 20px; }
  :root .welcome-copy { padding-top: 32px; padding-bottom: 40px; }
}

/* An invitation to explore, matching the ivory and burgundy welcome. */
.welcome-actions{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:100%}
:root .welcome-demo{display:flex;align-items:center;justify-content:center;gap:18px;max-width:100%;min-height:82px;padding:18px 24px;border:1px solid #244B4A;border-radius:10px;background:#244B4A;color:#F7F3EB;font-size:15px;line-height:1.5;text-align:left;text-decoration:none;box-shadow:0 8px 28px #37201920}
.welcome-demo>span:not(.welcome-demo-icon):not(.demo-arrow){display:flex;flex-direction:column;gap:3px;min-width:0}.welcome-demo strong{font-size:17px;font-weight:500}.welcome-demo small{font-size:11px;color:#efdbd6}.welcome-demo-icon{width:42px;flex:none}.welcome-demo-icon svg{display:block;width:100%;height:32px}.welcome-demo .demo-arrow{margin-left:8px;font-size:24px}.welcome-demo-caption{font-size:11px;color:#454640}
:root .welcome-demo:hover{background:#64252d;box-shadow:0 10px 30px #37201930}
:root .welcome-actions .welcome-enter{background:transparent;color:#242D2A;border-color:transparent;font-size:14px;min-height:44px;padding:10px 16px}
:root .auth-demo-link{display:flex;flex-direction:column;align-items:stretch;gap:12px;position:relative;max-width:460px;min-height:44px;padding:24px;border:1px solid #cdbdb1;border-radius:12px;background:linear-gradient(135deg,#F0E8DA,#F7F3EB);color:#242D2A;text-align:left;text-decoration:none;box-shadow:0 8px 24px #33261a08}
:root .auth-demo-link:hover{border-color:#244B4A;box-shadow:0 8px 24px #33261a14}.auth-demo-kicker{font-size:9px;letter-spacing:.12em;color:#244B4A}.auth-demo-link>strong{font:400 29px/1.15 Georgia,serif;letter-spacing:-.035em}.auth-demo-description{font-size:13px;line-height:1.6;color:#62615c}.auth-demo-tags{display:flex;flex-wrap:wrap;gap:8px}.auth-demo-tags>span{border:1px solid #d7cec3;border-radius:20px;padding:4px 9px;font-size:10px;color:#66615a}.auth-demo-action{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #d7cec3;margin-top:2px;padding-top:14px;font-size:13px;color:#244B4A;font-weight:600}.auth-demo-action>span{font-size:20px;line-height:1}
@media(max-width:700px){:root .welcome-space{height:1.5em;margin:16px 0 24px}:root .welcome-demo{padding:16px 18px;gap:12px}.welcome-demo-icon{width:32px}.welcome-demo strong{font-size:16px}.welcome-demo small{font-size:10px}:root .auth-demo-link{max-width:100%;padding:22px}.welcome-demo .demo-arrow{margin-left:0}}
