/* Bulma draws the controls and the type scale; this file holds only what Bulma cannot do. */
:root {
  --bulma-primary-h: 162deg;
  --bulma-primary-s: 84%;
  --bulma-primary-l: 26%;
  --bulma-primary-invert-l: 100%;
  --bulma-body-background-color: #f5f7fa;
  --bulma-control-radius: 0.65rem;
  --bulma-box-radius: 0.9rem;
  --bulma-box-shadow: 0 0.25rem 1.5rem rgb(24 44 67 / 6%);
}

html {
  background: var(--bulma-body-background-color);
}

/* Bulma's display on buttons beats the hidden attribute; hidden must win. */
[hidden] {
  display: none !important;
}

/* In Chrome the content of <details> does not inherit Bulma's border-box. */
details * {
  box-sizing: border-box;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 40;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Navbar: one centered column, with the menu open on wide screens and folded on phones. */
.navbar {
  padding-inline: 1rem;
  border-bottom: 1px solid #e3e8ee;
}

.navbar > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.25rem;
}

.navbar .brand {
  margin-inline-start: -0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.navigation-menu {
  position: relative;
}

.navigation-menu > summary {
  list-style: none;
}

.navigation-menu > summary::-webkit-details-marker {
  display: none;
}

.navigation-links {
  display: flex;
  align-items: center;
}

.navigation-menu.is-folding .navigation-links {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 30;
  flex-direction: column;
  align-items: stretch;
  min-width: 12rem;
  padding-block: 0.5rem;
  border-radius: var(--bulma-box-radius);
  background: var(--bulma-scheme-main);
  box-shadow: var(--bulma-box-shadow), 0 0 0 1px #e3e8ee;
}

.section {
  --bulma-section-padding: 1.5rem 1rem 4rem;
}

/* Long words, emails and serials wrap instead of widening the column. */
main {
  overflow-wrap: anywhere;
}

.flash-message {
  margin-bottom: 1.5rem;
}

.button.is-fullwidth {
  white-space: normal;
  text-wrap: balance;
}

.eyebrow {
  margin-bottom: 0.25rem;
  color: var(--bulma-text-weak);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.secondary-action {
  margin-top: 1.25rem;
  text-align: center;
}

.resend-action {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3e8ee;
}

/* Larger, spaced digits make one-time codes easier to read and enter. */
.code-input {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
}

/* Landing */
.landing {
  padding-block: 1.5rem 2.5rem;
}

.brand-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.landing .title {
  text-wrap: balance;
}

.landing-actions {
  max-width: 25rem;
  margin-inline: auto;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.5rem;
}

.steps-list li::marker {
  color: var(--bulma-primary);
  font-weight: 700;
}

/* Devices */
.device-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-list > .box {
  margin-bottom: 0;
}

.device-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.device-card-header .title {
  margin-bottom: 0;
}

.device-card .device-card-header {
  margin-bottom: 0.75rem;
}

.details-list {
  margin-bottom: 1rem;
}

.details-list > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid #eef1f5;
}

.details-list dt {
  font-weight: 600;
  overflow-wrap: normal;
  hyphens: auto;
}

.pagination {
  margin-top: 1.5rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 769px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photo-grid figure {
  min-width: 0;
}

.photo-grid figcaption {
  margin-top: 0.5rem;
  text-align: center;
}

.device-photo {
  display: block;
  max-width: 100%;
  max-height: 24rem;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--bulma-radius);
}

.waiting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* The current page in the breadcrumb is plain text, not a link. */
.breadcrumb li.is-active span {
  padding-inline: 0.75em;
  color: var(--bulma-text-strong);
}

.breadcrumb li:first-child.is-active span {
  padding-inline-start: 0;
}

/* The ValoraCheck ID is read aloud or typed: tabular digits keep it legible. */
.valoracheck-id {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.device-card .valoracheck-id {
  margin: -0.5rem 0 0.75rem;
  color: var(--bulma-text-weak);
}

.dian-articles {
  padding-left: 1.25rem;
  list-style: disc;
}

.document-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.document-checklist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.claim-description {
  white-space: pre-line;
}

/* Printable reports: the browser prints them, or saves them as PDF. */
.report-footer {
  margin-top: 2rem;
  color: var(--bulma-text-weak);
  font-size: 0.875rem;
}

@media print {
  html,
  .report-page {
    background: #fff;
  }

  .report-actions {
    display: none;
  }

  .report-page .section {
    padding: 0;
  }

  .report .tag {
    border: 1px solid currentColor;
  }
}
