/* Demo-specific rules for needs UX4G has no component or utility for.
   Token values only; no raw colours, sizes or spacing. */

/* Bulleted/numbered lists inside model answers: the UX4G reset removes list
   markers and UX4G's List component is an interactive row list, not prose. */
.demo-answer-list {
  list-style: revert;
  padding-inline-start: var(--ux4g-padding-m);
  margin: 0;
}

/* Citation lists are semantic lists without markers. */
.demo-plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* One document in the role editor: title, effect, and the Deny / Inherit / Allow
   buttons, wrapping onto two lines on narrow screens. */
.demo-perm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ux4g-padding-xs) var(--ux4g-padding-s);
  padding-block: var(--ux4g-padding-s);
  border-block-end: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle);
}

.demo-perm-title {
  flex: 1 1 14rem;
  min-width: 0;
}

/* The in-table category editor needs room for a category name. */
.demo-category-input {
  min-width: 10rem;
}

/* Quoted policy excerpt under each citation: UX4G has no blockquote style. */
.demo-snippet {
  margin: 0;
  padding-inline-start: var(--ux4g-padding-s);
  border-inline-start: var(--ux4g-border-width-md) solid var(--ux4g-border-color-neutral-default);
}

/* Sign-in page: a Loktak Lake photograph fills the area behind the sign-in card, darkened on the
   card's side so the form and caption stay legible. */
.demo-login-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 9rem);
}

.demo-login-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

.demo-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--ux4g-bg-overlay) 0%, color-mix(in srgb, var(--ux4g-bg-overlay) 35%, transparent) 55%, transparent 100%);
}

/* The hero is a flex row; without this its container shrinks to its content and overflows phones. */
.demo-login-hero > .ux4g-container {
  width: 100%;
}

.demo-login-card {
  background-color: var(--ux4g-color-neutral-0);
  box-shadow: var(--ux4g-shadow-l3);
}

.demo-login-caption {
  position: absolute;
  inset-inline-end: var(--ux4g-padding-m);
  inset-block-end: var(--ux4g-padding-xs);
  max-width: calc(100% - 2 * var(--ux4g-padding-m));
  margin: 0;
  text-align: end;
  color: var(--ux4g-text-white);
  text-shadow: 0 0 var(--ux4g-padding-xs) var(--ux4g-color-neutral-900);
}

.demo-login-caption a {
  color: inherit;
  text-decoration: underline;
}

/* The first lines of a previewed web page: kept as lines, wrapped, never wider than the card. */
.demo-web-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 12rem;
  overflow-y: auto;
  padding: var(--ux4g-padding-s);
  border: var(--ux4g-border-width-sm) solid var(--ux4g-border-color-neutral-subtle);
}

/* Status tags in narrow table columns stay on one line. */
.demo-nowrap {
  white-space: nowrap;
}
