/*
 * The About ONVV page (M1-ABOUT, design 06.1 Despre ONVV): the centred head with the section switch, the warm band of the
 * eight blocks beside the side card, the publication metadata line and the hub of icon cards.
 * Values come from tokens.css; this file holds no colour and no font size of its own.
 */

/* ---------- Head: eyebrow, H1, lead, section switch, centred ---------- */

.about-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: var(--spacing-24) var(--spacing-48);
  text-align: center;
}

.about-head h1 {
  max-width: 24ch;
  margin-bottom: var(--spacing-16);
}

.about-head .lead {
  max-width: var(--size-44rem);
  margin-bottom: var(--spacing-24);
}

/* ---------- The band: the blocks and the side card ---------- */

.about-band {
  padding-block: var(--spacing-56);
}

.about-band-grid {
  display: grid;
  gap: var(--spacing-32);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 1024px) {
  .about-band-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--size-30-25rem));
    gap: var(--spacing-64);
  }
}

.about-block + .about-block {
  margin-top: var(--spacing-40);
}

.about-block h2 {
  margin-bottom: var(--spacing-12);
  font-weight: var(--font-weight-medium);
}

.about-block p {
  margin: 0 0 var(--spacing-8);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}

.about-block .block-action {
  margin-top: var(--spacing-16);
}

/* A labelled field: its term, then its value, as the prototype's rows */
.field-list {
  margin: 0;
}

.field-row + .field-row {
  margin-top: var(--spacing-12);
}

.field-list dt {
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
  font-weight: var(--font-weight-medium);
}

.field-list dd {
  margin: 0;
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}

.field-paragraph {
  display: block;
}

.field-paragraph + .field-paragraph {
  margin-top: var(--spacing-8);
}

.placeholder-text {
  color: var(--color-text-secondary);
}

/* "Nu este cazul" and its reason: the place stays, never removed */
.not-applicable strong {
  font-weight: var(--font-weight-semibold);
}

.not-applicable-reason {
  color: var(--color-text-secondary);
}

/* ---------- The side card: public information, official services and resources ---------- */

.about-side {
  padding: var(--spacing-24);
  border-radius: var(--border-radius-16);
  overflow: visible;
}

.about-side h3,
.about-side h2 {
  margin-bottom: var(--spacing-12);
  font-size: var(--font-size-32);
  line-height: var(--line-height-40);
  letter-spacing: var(--letter-spacing-h2);
  font-weight: var(--font-weight-medium);
}

.about-side .about-side-subtitle {
  font-size: var(--font-size-20);
  line-height: var(--line-height-28);
  letter-spacing: var(--letter-spacing-h4);
}

.about-side p {
  margin: 0 0 var(--spacing-16);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}

.about-side-resources {
  margin-top: var(--spacing-24);
  padding-top: var(--spacing-24);
  border-top: var(--border-width-1) solid var(--color-border);
}

.about-side .about-side-note {
  margin: 0;
  color: var(--color-text-secondary);
}

/* The options of the contact page and the links of the requests page: one outlined button a line, full width */
.about-side-actions {
  display: grid;
  gap: var(--spacing-12);
  margin: 0 0 var(--spacing-16);
  padding: 0;
  list-style: none;
}

.about-side-actions .button {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* ---------- The contact page (M2-CONTACT): the data as a description list, the person's own list inside it ---------- */

.contact-data {
  overflow-wrap: anywhere;
}

.contact-person {
  margin: var(--spacing-4) 0 0;
  padding-left: var(--spacing-16);
  border-left: var(--border-width-1) solid var(--color-border);
}

.about-block .contact-note {
  margin-top: var(--spacing-24);
  color: var(--color-text-secondary);
}

/* ---------- The publication metadata line ---------- */

/* LT-11: at least 32 px between the line and the next band or card, at every width */
.about-meta {
  padding-block: var(--spacing-24) var(--spacing-32);
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4) var(--spacing-8);
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}

/* ---------- The hub: one icon card per item of the ONVV sub-headings ---------- */

.about-hub {
  padding-block: var(--spacing-48) var(--spacing-64);
}

.about-hub-head {
  margin-bottom: var(--spacing-24);
}

.about-hub-head h2 {
  margin-bottom: var(--spacing-8);
  font-weight: var(--font-weight-medium);
}

.about-hub-head .lead-small {
  margin: 0;
  font-size: var(--font-size-14);
  line-height: var(--line-height-20);
}

/* The hub's cards (.hub-grid, .hub-card, .hub-icon, .hub-more) are shared by every landing: components.css */
