/* The shell's own layout, on Pulse standards tokens only (docs/ui-build-standard.md).
   Components come from pulse.css; this file only places them. */

/* `hidden` must win over the layout classes below (they set display), or
   every view of the page shows at once. pulse.css doesn't restore it. */
[hidden] { display: none !important; }

.shell-env { border-radius: 0; }

/* Sign in: brand line beside the card from 1024px, stacked below that (PatternSignIn). */
.signin { display: grid; gap: var(--pulse-space-xl); padding-block: var(--pulse-space-2xl); align-items: start; }
@media (min-width: 1024px) {
  .signin { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); padding-block: var(--pulse-space-3xl); }
}
.signin .p-lede { margin-top: var(--pulse-space-md); }
.signin__brand { display: inline-flex; margin-bottom: var(--pulse-space-xl); }
.signin__card { padding: var(--pulse-space-xl); }
.signin__card form { display: grid; gap: var(--pulse-space-md); }
.signin__section { margin-top: var(--pulse-space-xl); }
.signin__section:first-of-type { margin-top: var(--pulse-space-lg); }

/* The portal's suite bar, as Pulse Canvas's portal has it (pulse-canvas PC-141, canvas.css
   .pc-suite-products): Pulse Portal, then every live product in the suite's order from 1024px,
   evenly spaced with a small dot before each; below 1024px the Products menu holds them. The
   dot is decoration only, never read aloud. */
.shell-suite-products { display: none; }
.shell-suite-products ul { display: flex; align-items: center; gap: var(--pulse-space-xs); margin: 0; padding: 0; list-style: none; }
.shell-suite-products li { display: flex; align-items: center; gap: var(--pulse-space-xs); }
.shell-suite-products li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.45; }
.p-suitebar__product[aria-current="page"] { text-decoration: none; }
@media (min-width: 1024px) {
  .shell-suite-products { display: block; }
  .shell-products-menu { display: none; }
}

/* The theme menu's button: the current mode's icon alone, the name for screen readers. */
.shell-theme-btn { justify-content: center; min-width: 36px; padding: var(--pulse-space-xs); }

/* Landing (PatternLanding). */
.landing { display: flex; flex-direction: column; gap: var(--pulse-space-xl); padding-block: var(--pulse-space-xl) var(--pulse-space-2xl); }

/* The band, as on Pulse Canvas's portal (pulse-canvas portal.css .pp-band): the page's own
   ground, a rule beneath, the headline in the display style at a size that keeps the phrase on
   two lines without filling the band (Jordan, 2026-10-20: "rendered huge"). */
.landing__band:where(.p-band) { background: transparent; }
.landing__head { padding-block: var(--pulse-space-lg) var(--pulse-space-xl); }
.landing__head .p-display { margin: 0; max-width: 20ch; font-size: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.landing__head .p-lede { margin-top: var(--pulse-space-sm); max-width: 40rem; }
.landing__search { max-width: 28rem; margin-top: var(--pulse-space-md); }
.landing__loading { display: flex; flex-direction: column; gap: var(--pulse-space-md); }
.landing__skel-card { height: 110px; }
.landing__skel-row { height: 48px; }
#client-cards { margin-top: var(--pulse-space-md); }

/* Admin (PatternAdminConsole, one client at a time). */
.admin { display: grid; gap: var(--pulse-space-xl); padding-block: var(--pulse-space-lg) var(--pulse-space-2xl); }
@media (min-width: 1024px) { .admin { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
.admin__main { display: flex; flex-direction: column; gap: var(--pulse-space-xl); min-width: 0; }
.admin__form { display: grid; gap: var(--pulse-space-md); max-width: 36rem; }
.admin__actions { display: flex; flex-wrap: wrap; gap: var(--pulse-space-sm); align-items: center; }
.admin__activity { display: grid; gap: var(--pulse-space-xs); padding: 0; list-style: none; }
.landing__label { padding-left: 0; margin-top: var(--pulse-space-md); }

/* Settings: a short side list beside panels, one per subject. */
.settings { padding-block: var(--pulse-space-lg) var(--pulse-space-2xl); }
.settings__grid { display: grid; gap: var(--pulse-space-xl); }
@media (min-width: 1024px) { .settings__grid { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: start; } }
.settings__main { display: flex; flex-direction: column; gap: var(--pulse-space-lg); min-width: 0; }
.settings__section { display: flex; flex-direction: column; gap: var(--pulse-space-md); scroll-margin-top: var(--pulse-space-2xl); }
.settings__facts { display: grid; gap: var(--pulse-space-sm); margin: 0; }
.settings__facts div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: var(--pulse-space-md); }
.settings__facts dt { font-weight: 700; }
.settings__facts dd { margin: 0; }
@media (max-width: 639px) { .settings__facts div { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* As on Pulse Canvas's portal (pulse-canvas portal.css): a teaser's badge at its own width,
   and the band's rule inside the page's width, under the words, not across the window. */
.p-products .p-product > .p-badge { align-self: flex-start; }

/* A per-client product's card holds two links, not one (the product itself, and the clients
   below filtered to it), so it is an article, styled as pulse.css's linked card: its ground,
   its arrows, its lift. pulse.css's div.p-product is the teaser and its a.p-product the
   one-link card; neither fits, and pulse.css is vendored, so the difference lives here. */
.shell-product .p-product__name { margin: 0; }
/* One link per line at every width, left edges and lines matching across the row (Jordan, 2026-11-20). */
.shell-product__actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--pulse-space-sm); }
.shell-product__actions .p-product__open { margin-top: 0; color: var(--pulse-text); text-decoration: none; }
.shell-product__actions .p-product__open:hover { text-decoration: underline; text-underline-offset: 3px; }
.shell-product__actions .p-product__open::after { content: "\2192"; transition: transform var(--pulse-duration-fast) var(--pulse-ease-standard); }
.shell-product__actions .p-product__open:hover::after { transform: translateX(3px); }
.shell-product__actions .p-product__open[aria-current]::after { content: none; }
[data-theme="dark"] .shell-product.p-lift { padding: calc(var(--pulse-space-lg) - 1px); }
.landing__band.p-band--rule { border-bottom: 0; }
.landing__head { border-bottom: 1px solid var(--pulse-border-subtle); }

/* Pulse Core's page: the band as on the landing, the sections spaced like it. */
.core { display: flex; flex-direction: column; gap: var(--pulse-space-xl); padding-block: var(--pulse-space-lg) var(--pulse-space-2xl); }
.core-crumbs { margin-bottom: calc(-1 * var(--pulse-space-md)); }
.core-band:where(.p-band) { background: transparent; padding-block: var(--pulse-space-lg) var(--pulse-space-xl); }
.core-band .p-display { margin: 0; max-width: 20ch; font-size: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.core-band .p-lede { margin-top: var(--pulse-space-sm); max-width: 40rem; }
.core-section > h2.p-eyebrow { margin-bottom: var(--pulse-space-sm); }

/* Pulse Core (ADR 0005; the same page as pulse-canvas PC-271): the landing's strip under the
   products, a card that links to /core, and that page's steps, points, and the way to Pulse Canvas. The strip is a card,
   not a product: Pulse Core is the data platform under every product, opened for no client. */
.core-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pulse-space-sm) var(--pulse-space-lg);
  align-items: center;
  justify-content: space-between;
  color: var(--pulse-text);
  text-decoration: none;
}

a.core-strip:hover {
  border-color: var(--pulse-border-strong);
  color: var(--pulse-text);
}

.core-strip__text {
  display: flex;
  flex-direction: column;
  gap: var(--pulse-space-xs);
  max-width: 44rem;
}

.core-strip__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.core-strip__open {
  display: inline-flex;
  gap: var(--pulse-space-xs);
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.core-strip__open::after {
  content: "\2192";
  transition: transform var(--pulse-duration-fast) var(--pulse-ease-standard);
}

a.core-strip:hover .core-strip__open::after {
  transform: translateX(3px);
}

/* The page's breadcrumbs and eyebrow, over canvas.css's page lists and paragraphs. */
.core .p-breadcrumbs ol {
  padding: 0;
}

.core .p-breadcrumbs li {
  max-width: none;
  margin: 0;
}

.core-eyebrow {
  margin: 0 0 var(--pulse-space-sm);
  color: var(--pulse-text-muted);
  font-weight: 700;
}

ol.core-steps {
  display: grid;
  gap: var(--pulse-space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-steps > li {
  max-width: none;
  margin: 0;
}

.core-step,
.core-why .p-card {
  display: flex;
  flex-direction: column;
  gap: var(--pulse-space-sm);
}

.core-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--pulse-text);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
}

.core h3.p-card__title {
  margin: 0;
  font-size: 1.25rem;
}

.core-step p,
.core-why p,
.core-cta p {
  margin: 0;
}

.core-why {
  display: grid;
  gap: var(--pulse-space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.core-cta {
  flex-wrap: wrap;
  gap: var(--pulse-space-md);
  align-items: center;
}

/* The view switch under the lede: two links, the current one filled like pulse.css's segmented
   control, so the page works with scripts blocked. */
.core-views {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: var(--pulse-space-lg);
  padding: 2px;
  border: 1px solid var(--pulse-border-control);
  border-radius: var(--pulse-radius-md);
}

.core-views__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--pulse-target-min);
  padding: 0 var(--pulse-space-md);
  border-radius: var(--pulse-radius-sm);
  color: var(--pulse-text);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.core-views__link:hover {
  background: var(--pulse-surface-2);
  color: var(--pulse-text);
}

.core-views__link[aria-current] {
  background: var(--pulse-primary);
  color: var(--pulse-text-on-primary);
}

/* The flow diagram: platforms, Pulse Core, and where it shows up, in a row from 1024px with
   arrows between, and stacked with downward arrows below that. HTML and CSS, so the words are
   text a screen reader and a search read. */
figure.core-flow {
  margin: 0;
}

.core-flow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pulse-space-md);
  justify-items: stretch;
}

@media (min-width: 1024px) {
  .core-flow__grid {
    grid-template-columns: minmax(0, 1.1fr) 3rem minmax(0, 1fr) 3rem minmax(0, 1fr);
    align-items: center;
  }
}

.core-flow__stage {
  display: flex;
  flex-direction: column;
  gap: var(--pulse-space-sm);
  padding: var(--pulse-space-lg);
  border: 1px solid var(--pulse-border-subtle);
  border-radius: var(--pulse-radius-lg);
  background: var(--pulse-surface-1);
}

.core-flow__core {
  border-color: var(--pulse-border-strong);
}

.core-flow__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

ul.core-flow__chips,
ol.core-flow__layers,
ul.core-flow__outs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pulse-space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-flow__chips > li,
.core-flow__layers > li,
.core-flow__outs > li {
  max-width: none;
  margin: 0;
}

.core-flow__more {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--pulse-text-muted);
  font-size: 0.8125rem;
}

ol.core-flow__layers,
ul.core-flow__outs {
  flex-direction: column;
}

.core-flow__layers > li {
  display: flex;
  gap: var(--pulse-space-sm);
  align-items: center;
  padding: var(--pulse-space-xs) var(--pulse-space-sm);
  border-radius: var(--pulse-radius-sm);
  background: var(--pulse-surface-2);
  font-weight: 700;
}

.core-flow__outs > li {
  padding: var(--pulse-space-xs) 0;
  border-bottom: 1px solid var(--pulse-border-subtle);
}

.core-flow__outs > li:last-child {
  border-bottom: 0;
}

/* An arrow: a line and its head in the strong border color, across from 1024px, down below. */
.core-flow__arrow {
  position: relative;
  justify-self: center;
  width: 2px;
  height: 2rem;
  background: var(--pulse-border-strong);
}

.core-flow__arrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  border-top: 8px solid var(--pulse-border-strong);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  transform: translateX(-50%);
}

@media (min-width: 1024px) {
  .core-flow__arrow {
    width: 100%;
    height: 2px;
  }

  .core-flow__arrow::after {
    top: 50%;
    right: -2px;
    bottom: auto;
    left: auto;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--pulse-border-strong);
    border-right: 0;
    transform: translateY(-50%);
  }
}

.core-flow__caption {
  margin-top: var(--pulse-space-sm);
}

/* A small accent dot, one per stage or layer: color in a small field only, never text. */
.core-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pulse-data-primary);
}

.core-dot--1 {
  background: var(--pulse-data-highlight-1);
}

.core-dot--2 {
  background: var(--pulse-data-highlight-2);
}

.core-dot--3 {
  background: var(--pulse-data-highlight-3);
}

.core-dot--4 {
  background: var(--pulse-data-highlight-4);
}

/* Inside the warehouse: the layers as a line of dots joined top to bottom, beside the facts. */
.core-inside {
  display: grid;
  gap: var(--pulse-space-lg);
  align-items: start;
}

@media (min-width: 1024px) {
  .core-inside {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

ol.core-layers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-layers__item {
  position: relative;
  display: flex;
  gap: var(--pulse-space-md);
  max-width: none;
  margin: 0;
  padding-bottom: var(--pulse-space-lg);
}

.core-layers__item > .core-dot {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  box-shadow: 0 0 0 2px var(--pulse-text);
}

.core-layers__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 4px;
  left: 6px;
  width: 2px;
  background: var(--pulse-border-strong);
}

.core-layers__body {
  display: flex;
  flex-direction: column;
  gap: var(--pulse-space-xs);
  min-width: 0;
}

.core-layers__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pulse-space-xs) var(--pulse-space-sm);
  align-items: center;
}

.core-layers__head code {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.core-layers__text {
  color: var(--pulse-text-muted);
}

.core-runs {
  display: flex;
  flex-direction: column;
  gap: var(--pulse-space-md);
}

.core-runs p {
  margin: 0;
}

dl.core-facts {
  display: grid;
  gap: var(--pulse-space-md);
  margin: 0;
}

.core-facts dt {
  font-weight: 700;
}

.core-facts dd {
  margin: 0;
  color: var(--pulse-text-muted);
}

/* The platforms by group, each group's names as chips. */
.core-platforms {
  display: grid;
  gap: var(--pulse-space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

h3.core-platforms__name {
  margin: 0 0 var(--pulse-space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
}

ul.core-platforms__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-platforms__list > li {
  max-width: none;
  margin: 0;
  padding-right: var(--pulse-space-sm);
}

/* Questions, as details so they open with no script. */
.core-faq {
  display: grid;
  gap: var(--pulse-space-sm);
  max-width: var(--pulse-prose-max);
}

.core-faq__item {
  padding: var(--pulse-space-md) var(--pulse-space-lg);
  border: 1px solid var(--pulse-border-subtle);
  border-radius: var(--pulse-radius-md);
  background: var(--pulse-surface-1);
}

.core-faq__item summary {
  cursor: pointer;
  font-weight: 700;
}

.core-faq__item p {
  margin: var(--pulse-space-sm) 0 0;
}

/* Design review 2026-11-20 (A1 to A8): the console's tab content keeps the page's rhythm.
   pulse.css zeroes heading margins and leaves spacing to the layout, so the layout must give it. */
.admin__main .p-tabs { margin-bottom: calc(-1 * var(--pulse-space-sm)); }
.admin__main .p-tabs a { gap: var(--pulse-space-xs); }
.admin__tab { display: flex; flex-direction: column; gap: var(--pulse-space-xl); min-width: 0; }
.admin__main section { display: flex; flex-direction: column; gap: var(--pulse-space-md); min-width: 0; }
.admin__main section > h2 { font-size: 1.25rem; line-height: 1.3; }
.admin__main section > h2 + .p-fine { margin-top: calc(-1 * var(--pulse-space-sm)); }
.admin__main section > div:empty { display: none; }
.admin__main .p-notice, .admin__main .p-error-summary { margin-bottom: 0; }
.admin__main .p-empty > :last-child { margin-bottom: 0; }
.admin__form { gap: var(--pulse-space-lg); }
.admin__form .p-field, .admin__form fieldset.p-fieldset { margin-bottom: 0; }
.admin__form > div:empty { display: none; }
.p-table .admin__actions { flex-wrap: nowrap; justify-content: flex-end; }
.admin__main .p-notice__actions { gap: var(--pulse-space-sm); }
