/* Layout: full-width header and footer bands, page templates. */

/* Header and footer are full-width bands; their content and <main> stay within the wide width.
   The padding formula centres a 1180px column while keeping the gutter on small screens. */
.site-alert, .site-header, .site-footer {
  --band-padding: max(var(--space-gutter), calc((100% - var(--wide-width)) / 2 + var(--space-gutter)));
}
main { max-width: var(--wide-width); margin: 0 auto; }

/* Fraud alert (alert.njk): a light band above the header, a thin red rule, small text, a close button on the right */
.site-alert {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px var(--band-padding);
  border-top: 3px solid var(--color-accent);
  background: var(--color-background-page);
  font-size: var(--size-small);
  line-height: 1.5;
}
.site-alert p { flex: 1; margin: 0; }
.site-alert-label {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-weight: var(--weight-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* No display rule here: it would override the hidden attribute that keeps the button out when JavaScript is off */
.site-alert-close {
  flex: none;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.site-alert-close:hover { color: var(--color-accent); }

/* Header: logo on the left, menu on the right, on one line down to small phones */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px var(--band-padding);
  border-bottom: 1px solid var(--color-rule);
}
.logo { width: 170px; line-height: 0; color: inherit; }
.logo .lt1 { fill: var(--blue-1); }
.logo .lt2 { fill: var(--blue-2); }
.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a[aria-current="page"] { color: var(--color-accent); }

@media (max-width: 520px) {
  .logo { width: 128px; }
  .site-nav { gap: 12px; font-size: 0.6875rem; letter-spacing: 0.03em; }
}

/* Footer: a dark band; labels and links lightened for contrast on blue-1 */
.site-footer {
  padding: var(--space-section) var(--band-padding) 28px;
  background: var(--color-background-dark);
  color: var(--color-text-on-dark);
}
.site-footer .label { color: var(--blue-4); }
.site-footer a:hover { color: var(--white); }
.footer-mail a { color: var(--white); }
/* LinkedIn invitation: first line of the footer, above a rule */
.footer-follow {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--blue-4) 30%, transparent);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  font-size: 1.375rem;
  line-height: 1.3;
}
.footer-follow a { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.footer-follow .linkedin { flex: none; fill: var(--color-accent); }
.footer-follow .linkedin .letters { fill: var(--white); }
.footer-follow a:hover .linkedin { fill: var(--white); }
.footer-follow a:hover .linkedin .letters { fill: var(--blue-1); }
/* Contact: three compact columns (e-mail, offices) in body text size */
.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 40px;
  line-height: 1.5;
}
.footer-contact p { margin: 0; }
.footer-contact .label { margin-bottom: 6px; }
.footer-contact address p:last-child { color: inherit; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--blue-4) 30%, transparent);
  font-size: var(--size-small);
  color: var(--blue-3);
}
.footer-legal p { margin: 0; }

@media (max-width: 600px) {
  .footer-contact { grid-template-columns: 1fr 1fr; }
  .footer-contact > :first-child { grid-column: 1 / -1; }
}

/* Text pages: one narrow column */
.page {
  max-width: calc(var(--content-width) + 2 * var(--space-gutter));
  margin: 0 auto;
  padding: var(--space-section) var(--space-gutter);
}
.page h1 { margin-bottom: clamp(20px, 3vw, 32px); }
.page h2 {
  margin: 2em 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.page h1 + h2 { margin-top: 0; }

/* Wide pages: title and lede, then sections */
.wide { padding: 0 var(--space-gutter) var(--space-section); }
.wide .page-title { margin: 0; padding-top: clamp(28px, 4vw, 48px); max-width: 14em; }
.wide .lede { margin: 16px 0 clamp(24px, 3vw, 40px); }

/* Report pages: title, download button, the report itself */
.report { padding: var(--space-section) var(--space-gutter); }
.report h1 { font-size: var(--size-x-large); max-width: 24em; }
.report-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.report iframe { display: block; width: 100%; height: 85vh; border: 1px solid var(--color-rule); }
