/* BYU's latest CDN stylesheet owns all light/dark colors and component styles.
   Application CSS only composes the documented markup and semantic tokens. */
:root {
  --layout-max-inline-size: 90rem;
  --header-caption-size: var(--font-size-caption);
}

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  inset-inline-start: var(--layout-space-inline);
  inset-block-start: -8rem;
  z-index: 20;
  padding: var(--layout-space-inline);
  color: var(--color-text);
  background: var(--color-accent-subtle);
}
.skip-link:focus { inset-block-start: var(--layout-space-stack); }
.application-logo { block-size: auto; }
.application-main { box-sizing: border-box; min-inline-size: 0; padding-inline: var(--layout-space-inline); }
.application-main > * { min-inline-size: 0; }
.login { max-inline-size: 42rem; margin-inline: auto; }

/* The header link reveals the complete identity in the footer. Logout remains
   a native POST action alongside that link. */
.header-account-name { max-inline-size: 24ch; }
.application-title { overflow-wrap: anywhere; }
.footer-settings, .appearance-controls, .account-actions { min-inline-size: 0; }
.appearance-controls { margin: 0; padding: 0; }
.account-actions { max-inline-size: 32rem; scroll-margin-block-start: var(--layout-anchor-scroll-offset); }
/* Nested POST buttons use documented component tokens for the inverse header. */
.header-logout-form { margin: 0; flex-shrink: 0; padding-left: 10px;}
.header-sign-out {
  --button-color: var(--header-text-color);
  --button-color-text-inverse: var(--header-background);
  --button-color-subtle: color-mix(in srgb, var(--header-text-color) 10%, transparent);
  --button-color-strong: var(--header-text-color);
  --button-color-focus-ring: var(--header-text-color);
}
.footer-account-name, .hint { overflow-wrap: anywhere; }
.hint { color: var(--color-text-subtle); font-size: var(--font-size-caption); }
.section-heading { overflow-wrap: anywhere; }
.audit-filters { min-inline-size: 0; inline-size: 100%; max-inline-size: 100%; }
.audit-administrator { flex: 1 1 20rem; }
.results-table { max-inline-size: 100%; }
.user-results { min-inline-size: 60rem; }
.user-results td { vertical-align: top; overflow-wrap: anywhere; }
.account-id { gap: var(--layout-control-gap); }
.account-id + .account-id { margin-block-start: var(--layout-control-gap); }
.identifier, .audit-summary { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--font-size-caption); }
.audit-summary { white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-details { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--layout-control-gap) var(--layout-space-inline); }
.audit-details dt { font-weight: var(--font-weight-body-bold); }
.audit-details dd { margin: 0; overflow-wrap: anywhere; }
.audit-event { border-block-start: var(--layout-surface-border-width) solid var(--color-border-subtle); padding-block-start: var(--layout-space-stack); }
.university-wordmark { max-inline-size: 100%; }
.university-wordmark-image { inline-size: min(28rem, 100%); block-size: auto; }

@media (width < 40rem) {
  /* Public header variables keep space for identity and the native menu. The
     complete username is always available through the footer account link. */
  .application-header { --header-mark-size: 5rem; --header-mark-padding-inline: var(--layout-control-gap); --header-title-size: var(--font-size); }
  .header-account-actions { max-inline-size: 4.5rem; }
  .header-account-name { max-inline-size: 2.5rem; }
  .header-sign-out { --button-action-padding-inline: var(--layout-control-padding-block); }
  .header-sign-out-label { display: none; }
  .lookup-filter, .audit-filter, .connection-query { inline-size: 100%; }
  .audit-details { grid-template-columns: minmax(0, 1fr); }
  .audit-details dd { margin-block-end: var(--layout-control-gap); }
}
