/* V4 motion restored. The V6 UX layer is deliberately independent of the motion preference. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #c5a76644;
  box-shadow: 0 5px 30px #0001;
  transition:
    box-shadow 0.35s,
    background 0.35s;
  isolation: isolate;
}
.header:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -20%;
  width: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e5c47b, transparent);
  animation: header-light 9s linear infinite;
  pointer-events: none;
}
.header .brand {
  position: relative;
  overflow: hidden;
}
.header .brand:after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    110deg,
    transparent 40%,
    #d9b96930 50%,
    transparent 60%
  );
  animation: brand-light 10s ease-in-out infinite;
  pointer-events: none;
}
.header-compact .header {
  box-shadow: 0 8px 28px #0003;
}
.header .brand img {
  transition: transform 0.4s;
  transform-origin: left center;
}
.header-compact .brand img {
  transform: scale(0.91);
}
.theme-toggle {
  border: 1px solid #c3a66966;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  width: 36px;
  height: 36px;
  font-size: 19px;
  cursor: pointer;
}
.page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-heading:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  right: 7%;
  top: 5%;
  border: 1px solid #bd9d5b55;
  border-radius: 50%;
  box-shadow:
    0 0 0 35px #bfa15e12,
    0 0 0 70px #bfa15e0a;
  animation: ambient-page 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.page-heading:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 70% 40%, #bc994819, transparent 60%);
  animation: ambient-page 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.auth-shell {
  position: relative;
  overflow: hidden;
  border-top: 2px solid #b89954;
}
.auth-shell:after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 200px;
  height: 200px;
  pointer-events: none;
  border: 1px solid #bda26655;
  border-radius: 50%;
  animation: ambient-page 7s ease-in-out infinite alternate;
}
.journey-start {
  max-width: 710px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid #c9ad6d66;
  border-radius: 16px;
  background: #101811d9;
}
.journey-start > .eyebrow {
  font-size: 11px;
  color: #e4c785;
  letter-spacing: 0.1em;
}
.quick-situations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0 18px;
}
.quick-situations button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  border: 1px solid #d4be8638;
  border-radius: 8px;
  background: #e8d9b30a;
  color: #f4ead7;
  padding: 12px;
  font-size: 13px;
  cursor: pointer;
}
.quick-situations button > .icon:last-child {
  margin-left: auto;
}
.journey-start > .text-link {
  margin-left: 15px;
  color: #ead8ac;
  font-size: 12px;
}
.cinema-hero {
  min-height: 940px;
}
.cinema-hero h1 {
  font-size: clamp(56px, 5.5vw, 83px);
}
.cinema-image img {
  transition: filter 8s;
}
[data-daypart="night"] .cinema-image img {
  filter: saturate(0.45) brightness(0.65);
}
[data-daypart="dawn"] .cinema-image img {
  filter: sepia(0.27) saturate(0.65) brightness(0.9);
}
[data-daypart="day"] .cinema-image img {
  filter: saturate(0.7) brightness(1.08);
}
[data-daypart="dusk"] .cinema-image img {
  filter: sepia(0.45) saturate(0.7) brightness(0.85);
}
.specialty-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.specialty-tile h3 {
  font-size: 19px;
}
.specialty-tile .tile-caption {
  font-size: 12px;
  line-height: 1.6;
}
.section-more {
  text-align: center;
  margin-top: 28px;
}
.specialty-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.specialty-choice {
  border: 1px solid #bc9d5b44;
  border-radius: 14px;
  padding: 26px;
  background: #fffaf3;
}
.specialty-choice h2 {
  font-size: 24px;
}
.specialty-choice span {
  color: #977431;
  font-size: 13px;
}
.specialty-choice[hidden] {
  display: none;
}
.journey h2 {
  font-size: 32px;
  line-height: 1.2;
}
.step-track {
  display: flex;
  gap: 7px;
  margin: 12px 0 25px;
}
.step-track span {
  height: 4px;
  flex: 1;
  background: #b6b0a333;
  border-radius: 5px;
}
.step-track .done {
  background: #c7a655;
}
.journey-options {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}
.journey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  border: 1px solid #b99e6044;
  background: #fbf7ef;
  color: inherit;
  border-radius: 9px;
  text-align: left;
  cursor: pointer;
  min-height: 55px;
}
.journey-option > span {
  flex: 1;
}
.journey-option:hover,
.journey-option:focus-visible {
  border-color: #b69a51;
  background: #ecdfc6;
}
.slot-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.slot-preview span {
  border: 1px solid #b99e6055;
  padding: 12px;
  border-radius: 8px;
}
.conversation {
  max-height: 340px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  margin: 15px 0;
}
.conversation article {
  padding: 12px 16px;
  border-radius: 10px;
  background: #b6ad9418;
  white-space: normal;
  overflow-wrap: anywhere;
}
.conversation article.mine {
  border-left: 3px solid #c9a453;
  background: #c9a45314;
}
.conversation p {
  margin: 6px 0;
}
.schedule-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 32px;
  gap: 8px;
  margin: 10px 0;
}
.schedule-row input,
.schedule-row select {
  min-width: 0;
}
.activity-chart {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  overflow: auto;
}
.activity-chart > div {
  display: grid;
  gap: 6px;
  min-width: 18px;
  flex: 1;
}
.activity-chart meter {
  width: 100%;
  height: 24px;
}
.activity-chart small {
  font-size: 9px;
}
[data-theme="dark"] {
  --ivory: #141a17;
  --white: #1d2520;
  --ink: #efece3;
  --muted: #b6b9b0;
  --line: #445044;
  color-scheme: dark;
}
[data-theme="dark"] body {
  background: #141a17;
  color: #eee9df;
}
[data-theme="dark"] :is(.header, .cinematic-home .header) {
  background: #17201dec;
  backdrop-filter: blur(12px);
}
[data-theme="dark"]
  :is(
    .panel,
    .filters,
    .contact-card,
    .professional-card,
    .post,
    .auth-shell,
    .plan,
    .specialty-choice,
    .journal-copy,
    dialog,
    .empty,
    .account-nav,
    .profile-block,
    .guide-card
  ) {
  background: #1c2721;
  color: #eee9df;
  border-color: #46513f;
}
[data-theme="dark"] :is(input, select, textarea, .journey-option) {
  background: #152019;
  color: #eee9df;
  border-color: #53604d;
}
[data-theme="dark"] .specialty-tile {
  background: linear-gradient(135deg, #28362b, #18231d);
  color: #ede8d8;
}
[data-theme="dark"] .specialty-tile:hover {
  background: #354231;
}
[data-theme="dark"] .people-section {
  background: #101a14;
}
[data-theme="dark"] .principles-band {
  background: #263228;
  color: #e2d6b8;
}
[data-theme="dark"]
  :is(
    h1,
    h2,
    h3,
    .card-description,
    .card-kind,
    .location,
    .lead,
    .filters label,
    .field > span
  ) {
  color: inherit;
}
[data-theme="dark"]
  :is(.notice, .stats .stat, .check-group, .review, .journal-card) {
  background: #28352b;
  color: #e7e1d5;
  border-color: #53604d;
}
[data-theme="dark"] .muted,
[data-theme="dark"] .small.muted {
  color: #b9beb3;
}
[data-theme="dark"] .btn.outline {
  color: #e6ca8c;
  border-color: #b79958;
}
[data-theme="dark"] .journey-option:hover {
  background: #33412f;
}
[data-theme="dark"] .section-title h2 em {
  color: #d1b46d;
}
@keyframes header-light {
  to {
    transform: translateX(650%);
  }
}
@keyframes brand-light {
  0%,
  60% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes ambient-page {
  from {
    transform: translate3d(-16px, 0, 0) scale(0.92);
    opacity: 0.5;
  }
  to {
    transform: translate3d(18px, 10px, 0) scale(1.08);
    opacity: 1;
  }
}
html.effects-hidden *,
html.effects-hidden *:before,
html.effects-hidden *:after {
  animation-play-state: paused !important;
}
@media (max-width: 1100px) {
  .specialty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .specialty-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header nav {
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .cinema-hero {
    min-height: 930px;
  }
  .cinema-hero h1 {
    font-size: clamp(46px, 11vw, 65px);
  }
  .journey-start {
    padding: 16px;
  }
  .quick-situations {
    grid-template-columns: 1fr;
  }
  .journey-start > .text-link {
    display: block;
    margin: 16px 0 0;
  }
  .specialty-grid,
  .specialty-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specialty-tile h3 {
    font-size: 17px;
  }
  .specialty-tile {
    min-height: 260px;
  }
  .schedule-row {
    grid-template-columns: 1fr 1fr;
  }
  .specialty-choice {
    padding: 16px;
  }
  .specialty-choice h2 {
    font-size: 20px;
  }
  .journey h2 {
    font-size: 27px;
  }
  .header:after {
    max-width: 20%;
  }
  .quick-situations button {
    min-height: 45px;
  }
}
@media (max-width: 420px) {
  .specialty-catalog {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header:after,
  .brand:after,
  .page-heading:before,
  .page-heading:after,
  .auth-shell:after {
    animation: none !important;
  }
}

[data-theme="dark"] .btn:not(.outline) {
  color: #121a14;
  background: #d2b260;
}
.audience-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .audience-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 12px;
  }
}
/* Avoid repeatedly blurring the animated scene underneath navigation and dialogs. */
[data-theme="dark"] :is(.header, .cinematic-home .header) {
  backdrop-filter: none;
  background: #17201df7;
}
dialog::backdrop {
  backdrop-filter: none;
  background: #07100dcc;
}
body:has(dialog[open]) .cinema-hero *,
body:has(dialog[open]) .cinema-hero:before,
body:has(dialog[open]) .cinema-hero:after {
  animation-play-state: paused !important;
}
[data-theme="dark"]
  :is(.eyebrow, .text-button, .specialty, .specialty-choice span, .text-link) {
  color: #dcc07c;
}
[data-theme="dark"] .favorite {
  color: #26372a;
  background: #faf4e7;
}
.journey .small {
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0;
}
.journey .field {
  margin-bottom: 12px;
  gap: 5px;
}
.journey .field > span {
  font-size: 14px;
}
.journey form > .btn {
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.journey-options {
  margin: 16px 0;
}
@media (max-width: 760px) {
  .journey h2 {
    font-size: 25px;
    margin: 14px 0;
  }
  .journey > .eyebrow {
    font-size: 9px;
  }
  .journey > p {
    font-size: 15px;
  }
  .journey .step-track {
    margin-bottom: 15px;
  }
  .jurisdiction-filter {
    margin-bottom: 12px;
  }
}
