/* ===========================================================================
   Dronivo Defence — Customer Portal design system
   ---------------------------------------------------------------------------
   Built ON TOP of the site's compiled Webflow stylesheet (dronivo.css), which
   is loaded first and owns the reset, the fonts (NHGX/Archivo) and the design
   tokens. Everything here consumes those tokens, so the portal inherits the
   marketing site's palette and typography automatically.

   Namespace: .pf-*  ("portal frame") — never collides with Webflow classes.
   Breakpoints match the site: 991 / 767 / 479.
   =========================================================================== */

:root {
  --pf-ink: var(--_primitives---colors--dark-brand, #151515);
  --pf-ink-2: var(--_primitives---colors--neutral-darker, #222);
  --pf-bg: var(--_primitives---colors--neutral, #f2f2f2);
  --pf-surface: var(--_primitives---colors--white, #fff);
  --pf-line: var(--_primitives---opacity--neutral-darkest-15, #00000026);
  --pf-line-strong: var(--_primitives---opacity--neutral-darkest-30, #0000004d);
  --pf-muted: var(--_primitives---opacity--neutral-darkest-60, #0009);
  --pf-accent: var(--_primitives---colors--brand-yellow, #c4b798);
  --pf-danger: #a3261f;
  --pf-ok: #2f6b46;
  /* 2px, not 30rem. The portal inherited Webflow's pill from the old site;
     the design system built off harmattan.ai / anduril.com / terraindustries.co
     uses a 2px corner throughout, and a logged-in area that still rounds like
     a consumer app undoes the impression the public pages just made. One token,
     so every control in the portal follows. */
  --pf-pill: 2px;
  --pf-topbar-h: 4.5rem;
  --pf-ease: cubic-bezier(0.625, 0.05, 0, 1);
}

/* --------------------------------------------------------------- reset --- */

/* The portal's own markup, all of it namespaced .pf-*, sizes in border-box.
   The site's compiled Webflow sheet does not set this globally, and three
   separate bugs came out of that:
     — .pf-container was 90rem *plus* 8rem of padding, so every logged-in page
       was 128px wider than a 1440px window and scrolled sideways;
     — .pf-input's `width: 100%` resolved to the column plus its own padding,
       so every field underline overshot the button below it;
     — .pf-btn--block on an <a> ran 58px wider than the same class on a
       <button>, because only the button got border-box from the UA sheet.
   One rule, scoped to the portal, rather than three patches. */
.pf-shell,
.pf-auth,
.pf-shell *,
.pf-auth *,
.pf-shell *::before,
.pf-auth *::before,
.pf-shell *::after,
.pf-auth *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------- shell --- */

.pf-shell {
  background-color: var(--pf-bg);
  color: var(--pf-ink);
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

.pf-main {
  flex: 1;
}

.pf-container {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 4rem;
}

.pf-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.pf-section.is-tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* -------------------------------------------------------------- topbar --- */

.pf-topbar {
  background-color: var(--pf-ink);
  color: #fff;
  z-index: 1080;
  position: sticky;
  top: 0;
}

.pf-topbar__inner {
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 90rem;
  min-height: var(--pf-topbar-h);
  margin-left: auto;
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 4rem;
  display: flex;
}

.pf-topbar__logo {
  flex: none;
  align-items: center;
  display: flex;
}

.pf-topbar__logo img {
  width: auto;
  /* 38px, raised from 28px with the official mark. Same factor as the header
     and footer — see navbar.css for why the box has to grow. The sign-in bar
     below is sized by WIDTH, so it needs no change: a fixed width already gives
     the new lockup its taller box and the wordmark keeps its size. */
  height: 2.375rem;
  display: block;
}

.pf-topbar__tag {
  color: var(--pf-accent);
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  border-left: 1px solid var(--_primitives---opacity--white-20, #fff3);
  margin-left: 0.25rem;
  padding-left: 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.pf-topbar__nav {
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  display: flex;
}

.pf-topbar__right {
  align-items: center;
  gap: 1.25rem;
  display: flex;
}

/* Link with the site's sweeping underline (same easing/duration as .nav_link) */
.pf-navlink {
  color: #fff;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
}

.pf-navlink::before {
  content: "";
  transform-origin: 100%;
  background-color: #fff;
  width: 100%;
  height: 0.0625em;
  transition: transform 0.735s var(--pf-ease);
  position: absolute;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
}

.pf-navlink:hover::before,
.pf-navlink.is-active::before {
  transform-origin: 0;
  transform: scaleX(1);
}

.pf-navlink.is-active {
  color: var(--pf-accent);
}

.pf-navlink.is-active::before {
  background-color: var(--pf-accent);
}

.pf-user {
  color: var(--_primitives---opacity--white-60, #fff9);
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  display: flex;
}

.pf-avatar {
  color: var(--pf-ink);
  text-transform: uppercase;
  background-color: var(--pf-accent);
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
}

/* Mobile nav: a native <details> disclosure, no JS. */
.pf-burger {
  display: none;
}

/* -------------------------------------------------------------- buttons -- */

.pf-btn {
  color: #fff;
  cursor: pointer;
  background-color: var(--pf-ink);
  border: 1px solid var(--pf-ink);
  border-radius: var(--pf-pill);
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.3s var(--pf-ease), color 0.3s var(--pf-ease),
    border-color 0.3s var(--pf-ease);
  display: inline-flex;
}

.pf-btn:hover {
  background-color: var(--_primitives---opacity--transparent, transparent);
  color: var(--pf-ink);
}

.pf-btn--light {
  background-color: #fff;
  border-color: #fff;
  color: var(--pf-ink);
}

.pf-btn--light:hover {
  background-color: transparent;
  color: #fff;
}

.pf-btn--ghost {
  background-color: transparent;
  border-color: var(--pf-line-strong);
  color: var(--pf-ink);
}

.pf-btn--ghost:hover {
  background-color: var(--pf-ink);
  border-color: var(--pf-ink);
  color: #fff;
}

.pf-btn--danger {
  background-color: transparent;
  border-color: var(--pf-danger);
  color: var(--pf-danger);
}

.pf-btn--danger:hover {
  background-color: var(--pf-danger);
  color: #fff;
}

.pf-btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.pf-btn--block {
  width: 100%;
}

.pf-btn[disabled],
.pf-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Text link with the site's underline sweep, on light backgrounds. */
.pf-link {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.pf-link::before {
  content: "";
  transform-origin: 100%;
  background-color: currentColor;
  width: 100%;
  height: 0.0625em;
  transition: transform 0.735s var(--pf-ease);
  position: absolute;
  bottom: -0.125em;
  left: 0;
  transform: scaleX(0);
}

.pf-link:hover::before {
  transform-origin: 0;
  transform: scaleX(1);
}

/* ------------------------------------------------------------ typography - */

.pf-tagline {
  color: var(--pf-accent);
  letter-spacing: 0.375rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.pf-tagline.is-dark {
  color: var(--pf-ink);
}

.pf-h1 {
  font-size: 3.25rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.pf-h2 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.pf-h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.pf-lead {
  color: var(--pf-muted);
  max-width: 46rem;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
}

.pf-muted {
  color: var(--pf-muted);
}

.pf-small {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------- header -- */

.pf-pagehead {
  border-bottom: 1px solid var(--pf-line);
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.pf-pagehead__row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  display: flex;
}

.pf-pagehead .pf-h1 {
  margin-top: 0.75rem;
}

.pf-pagehead .pf-lead {
  margin-top: 1rem;
}

/* ---------------------------------------------------------------- cards -- */

.pf-grid {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.5rem;
  display: grid;
}

.pf-grid.is-2col {
  grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
}

.pf-card {
  background-color: var(--pf-surface);
  border: 1px solid var(--pf-line);
  color: inherit;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.4s var(--pf-ease), transform 0.4s var(--pf-ease);
  display: flex;
  position: relative;
  overflow: hidden;
}

a.pf-card:hover {
  border-color: var(--pf-ink);
  transform: translateY(-0.25rem);
}

.pf-card__media {
  aspect-ratio: 16 / 10;
  background-color: var(--_primitives---colors--neutral-lightest, #eee);
  overflow: hidden;
}

.pf-card__media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.735s var(--pf-ease);
  display: block;
}

a.pf-card:hover .pf-card__media img {
  transform: scale(1.04);
}

/* Fallback "media" when a record has no image: a token-derived gradient. */
.pf-card__media.is-blank {
  background-image: linear-gradient(135deg, var(--pf-ink) 0%, #2b2b2b 60%, var(--pf-accent) 220%);
}

.pf-card__body {
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: 1.5rem;
  display: flex;
}

.pf-card__title {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

.pf-card__text {
  color: var(--pf-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.pf-card__foot {
  border-top: 1px solid var(--pf-line);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
}

.pf-card__num {
  color: var(--pf-accent);
  font-weight: 500;
}

/* ---------------------------------------------------------------- meta --- */

.pf-meta {
  color: var(--pf-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  display: flex;
}

.pf-meta__dot {
  background-color: var(--pf-line-strong);
  border-radius: 50%;
  width: 3px;
  height: 3px;
}

.pf-badge {
  border: 1px solid var(--pf-line-strong);
  border-radius: var(--pf-pill);
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  padding: 0.1875rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-block;
}

.pf-badge.is-accent {
  background-color: var(--pf-accent);
  border-color: var(--pf-accent);
  color: var(--pf-ink);
}

.pf-badge.is-ok {
  border-color: var(--pf-ok);
  color: var(--pf-ok);
}

.pf-badge.is-danger {
  border-color: var(--pf-danger);
  color: var(--pf-danger);
}

.pf-badge.is-dark {
  background-color: var(--pf-ink);
  border-color: var(--pf-ink);
  color: #fff;
}

/* -------------------------------------------------------------- detail --- */

.pf-detail {
  grid-template-columns: minmax(0, 1fr) 22rem;
  align-items: start;
  gap: 4rem;
  display: grid;
}

.pf-prose {
  max-width: 46rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.pf-prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.25;
}

.pf-prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.pf-prose p {
  margin: 0 0 1.25rem;
}

.pf-prose ul,
.pf-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.pf-prose li {
  margin-bottom: 0.5rem;
}

.pf-prose > :first-child {
  margin-top: 0;
}

.pf-aside {
  background-color: var(--pf-surface);
  border: 1px solid var(--pf-line);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--pf-topbar-h) + 1.5rem);
}

.pf-aside + .pf-aside {
  margin-top: 1.5rem;
}

.pf-speclist {
  border-top: 1px solid var(--pf-line);
  margin: 1.25rem 0 0;
}

.pf-speclist div {
  border-bottom: 1px solid var(--pf-line);
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  display: flex;
}

.pf-speclist dt {
  color: var(--pf-muted);
}

.pf-speclist dd {
  text-align: right;
  margin: 0;
  font-weight: 500;
}

.pf-hero {
  aspect-ratio: 21 / 9;
  background-color: var(--_primitives---colors--neutral-lightest, #eee);
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.pf-hero img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* ------------------------------------------------------------ documents -- */

.pf-doclist {
  border-top: 1px solid var(--pf-line);
  flex-direction: column;
  display: flex;
}

.pf-doc {
  border-bottom: 1px solid var(--pf-line);
  color: inherit;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  text-decoration: none;
  display: flex;
}

.pf-doc:hover .pf-doc__name {
  text-decoration: underline;
}

.pf-doc__icon {
  color: var(--pf-muted);
  border: 1px solid var(--pf-line);
  flex: none;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
}

.pf-doc__name {
  flex: 1;
  font-size: 0.9375rem;
}

.pf-doc__size {
  color: var(--pf-muted);
  font-size: 0.8125rem;
}

/* ---------------------------------------------------------------- forms -- */

.pf-form {
  flex-direction: column;
  gap: 1.5rem;
  display: flex;
}

.pf-fieldrow {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  display: grid;
}

.pf-field {
  flex-direction: column;
  gap: 0.5rem;
  display: flex;
}

.pf-label {
  font-size: 0.9375rem;
  font-weight: 400;
}

.pf-label .pf-req {
  color: var(--pf-accent);
}

.pf-input,
.pf-select,
.pf-textarea {
  color: inherit;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.pf-textarea {
  min-height: 8rem;
  resize: vertical;
}

.pf-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1rem top 55%, right 0.6875rem top 55%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 2rem;
}

.pf-input:focus,
.pf-select:focus,
.pf-textarea:focus {
  outline: 2px solid var(--pf-accent);
  outline-offset: 2px;
}

.pf-input::placeholder,
.pf-textarea::placeholder {
  color: currentColor;
  opacity: 0.4;
}

.pf-check {
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: flex;
}

.pf-check input {
  accent-color: var(--pf-accent);
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
}

.pf-alert {
  border: 1px solid var(--pf-line-strong);
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pf-alert.is-error {
  border-color: var(--pf-danger);
  color: var(--pf-danger);
}

.pf-alert.is-ok {
  border-color: var(--pf-ok);
  color: var(--pf-ok);
}

/* Honeypot — visually gone, still fillable by naive bots. */
.pf-hp {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
  left: -9999px;
}

/* ------------------------------------------------------------ auth page -- */

/* The sign-in screen: one column on one ground, centred, with the site's own
   bar across the top. It was a split screen — brand panel left, form right —
   which the dark theme turned into two near-identical darks with a seam down
   the middle. The design system does not split; it stacks on one ground and
   separates with a hairline. */
.pf-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--pf-bg);
}

.pf-auth__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--pf-topbar-h);
  padding: 0 2rem;
  border-bottom: 1px solid var(--pf-line);
}

.pf-auth__bar img {
  /* Height-driven, like the marketing header, rather than the old fixed
     9.5rem width.
   *
   * With the official mark that width resolved to a 78px-tall box inside a
   * 72px bar: the swoosh's upper tip hung 3px above the bar and 6px below it.
   * Nothing clipped it — `overflow: visible` — so it simply sat crooked against
   * the rule underneath.
   *
   * 60px matches .navbar .navbar_logo exactly, so a customer arriving from the
   * public site sees the same mark at the same size. */
  height: 3.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.pf-auth__back {
  color: var(--pf-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.24s var(--pf-ease);
}

.pf-auth__back:hover {
  color: var(--pf-ink);
}

/* 83x16 measured, the last tap target on the site under Apple's 44px minimum.
   Fixed here rather than in mobile.css: the portal renders its own stylesheet
   stack (portal.css + portal-frontier.css) and never loads the site's touch
   layer, so the rule written there had no effect on any portal route — which is
   why the sweep kept reporting this one after it was "fixed". */
@media screen and (max-width: 991px) {
  a.pf-auth__back {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.pf-auth__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 5rem;
}

/* The measure for everything on the screen — panel, supporting copy and the
   secondary action all sit in this one column, so nothing can run wider than
   anything else. */
.pf-auth__col {
  width: 100%;
  max-width: 27rem;
}

.pf-auth__col.is-wide {
  max-width: 38rem;
}

.pf-auth__panel {
  padding: 2.5rem;
  background-color: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-pill);
}

.pf-auth__aside {
  margin-top: 2rem;
}

.pf-auth__claim {
  margin: 0;
  color: var(--pf-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pf-auth__points {
  color: var(--pf-muted);
  border-top: 1px solid var(--pf-line);
  margin: 1.5rem 0 0;
  padding: 0.5rem 0 0;
  font-size: 0.8125rem;
  list-style: none;
}

.pf-auth__points li {
  padding: 0.5rem 0;
}

.pf-auth__points li:before {
  content: "//";
  color: var(--pf-accent);
  margin-right: 0.625rem;
}

/* --------------------------------------------------------------- empty --- */

.pf-empty {
  border: 1px dashed var(--pf-line-strong);
  color: var(--pf-muted);
  text-align: center;
  padding: 4rem 2rem;
}

/* ------------------------------------------------------------- toolbar --- */

.pf-toolbar {
  border-bottom: 1px solid var(--pf-line);
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  display: flex;
}

.pf-chip {
  border: 1px solid var(--pf-line-strong);
  border-radius: var(--pf-pill);
  color: inherit;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.3s var(--pf-ease), color 0.3s var(--pf-ease);
}

.pf-chip:hover,
.pf-chip.is-active {
  background-color: var(--pf-ink);
  border-color: var(--pf-ink);
  color: #fff;
}

/* --------------------------------------------------------------- table --- */

.pf-tablewrap {
  border: 1px solid var(--pf-line);
  background-color: var(--pf-surface);
  overflow-x: auto;
}

.pf-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 44rem;
  font-size: 0.9375rem;
}

.pf-table th,
.pf-table td {
  text-align: left;
  border-bottom: 1px solid var(--pf-line);
  padding: 0.875rem 1.25rem;
  vertical-align: top;
}

.pf-table th {
  color: var(--pf-muted);
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 700;
}

.pf-table tr:last-child td {
  border-bottom: none;
}

.pf-actions {
  flex-wrap: wrap;
  gap: 0.5rem;
  display: flex;
}

/* -------------------------------------------------------------- footer --- */

.pf-footer {
  border-top: 1px solid var(--pf-line);
  color: var(--pf-muted);
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
}

.pf-footer__inner {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.pf-footer__links {
  flex-wrap: wrap;
  gap: 1.5rem;
  display: flex;
}

/* ----------------------------------------------------------- dashboard --- */

.pf-stats {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1px;
  background-color: var(--pf-line);
  border: 1px solid var(--pf-line);
  display: grid;
}

.pf-stat {
  background-color: var(--pf-surface);
  padding: 1.5rem;
}

.pf-stat__value {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}

.pf-stat__label {
  color: var(--pf-muted);
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.pf-rowhead {
  border-bottom: 1px solid var(--pf-line);
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  display: flex;
}

.pf-stack {
  flex-direction: column;
  gap: 3.5rem;
  display: flex;
}

/* ---------------------------------------------------------- responsive --- */

@media screen and (max-width: 991px) {
  .pf-container,
  .pf-topbar__inner {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .pf-detail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pf-aside {
    position: static;
  }

  /* One column already — nothing to collapse. The bar loses its side padding
     with the rest of the page furniture below. */
  .pf-auth__bar {
    padding: 0 1.5rem;
  }

  .pf-auth__main {
    padding: 3rem 1.5rem 4rem;
  }

  .pf-auth__panel {
    padding: 2rem 1.5rem;
  }

  .pf-h1 {
    font-size: 2.5rem;
  }

  /* Collapse the top nav into a <details> disclosure. */
  .pf-burger {
    margin-left: auto;
    display: block;
  }

  .pf-burger > summary {
    cursor: pointer;
    color: #fff;
    list-style: none;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    display: flex;
  }

  .pf-burger > summary::-webkit-details-marker {
    display: none;
  }

  .pf-topbar__nav,
  .pf-topbar__right {
    display: none;
  }

  .pf-burger[open] .pf-drawer {
    display: flex;
  }

  .pf-drawer {
    background-color: var(--pf-ink);
    border-top: 1px solid var(--_primitives---opacity--white-15, #ffffff26);
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 2.5rem 2rem;
    display: none;
    position: absolute;
    inset: var(--pf-topbar-h) 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .pf-container,
  .pf-topbar__inner,
  .pf-drawer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .pf-fieldrow {
    grid-template-columns: 1fr;
  }

  .pf-section {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .pf-h1 {
    font-size: 2.125rem;
  }

  .pf-h2 {
    font-size: 1.75rem;
  }

  .pf-lead {
    font-size: 1rem;
  }

  .pf-hero {
    aspect-ratio: 3 / 2;
  }
}

@media screen and (max-width: 479px) {
  .pf-container,
  .pf-topbar__inner,
  .pf-drawer,
  .pf-auth__main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .pf-grid,
  .pf-grid.is-2col {
    grid-template-columns: 1fr;
  }

  .pf-card__body {
    padding: 1.25rem;
  }

  .pf-h1 {
    font-size: 1.875rem;
  }
}

/* Divider between the two ways in. The label sits in the rule rather than above
   it, so the second action reads as an alternative rather than a leftover. */
.pf-auth-alt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.75rem 0 1rem;
}

.pf-auth-alt__rule {
  flex: 1;
  height: 1px;
  background-color: currentColor;
  opacity: 0.16;
}

/* The secondary action: same shape and weight as Sign in, drawn rather than
   filled, so the hierarchy is unmistakable without hiding it. */
.pf-btn--ghost {
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
  text-decoration: none;
}

.pf-btn--ghost:hover {
  background-color: currentColor;
  color: var(--pf-surface, #0b0b0b);
}
