:root {
  --primary: #142852;
  --accent: #60a5fa;
  --background: #f1f5f9;
  --surface: #fff;
  --border: #cbd5e1;
  --text: #475569;
  --hover: #254579;
  --active: #315b96;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.6; }
.wrap { width: min(100% - 2rem, 64rem); margin-inline: auto; }
.site-header { background: var(--primary); border-bottom: 3px solid var(--accent); }
main { padding-block: clamp(2rem, 6vw, 4rem); }
h1, h2 { color: var(--primary); line-height: 1.2; }
h1 { margin-block: 0 1.5rem; font-size: clamp(2rem, 5vw, 3rem); }
main > a + h1 { margin-top: 1rem; }
h2 { margin-top: 0; }
a { color: var(--primary); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: clamp(1.25rem, 4vw, 2rem); }
.card + .card { margin-top: 1rem; }
.services .card { display: flex; flex-direction: column; align-items: flex-start; margin-top: 0; }
.services .button { margin-top: auto; }
.button { display: inline-block; padding: .65rem 1rem; border-radius: .4rem; background: var(--primary); color: white; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--hover); }
.button:active { background: var(--active); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
li + li { margin-top: .5rem; }
code { overflow-wrap: anywhere; }

/* FileSender header layout */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding: 6px 25px;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 340px);
  max-height: 82px;
  object-fit: contain;
}
.header-back {
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .4rem;
  text-decoration: none;
}
.header-back:hover { background: var(--hover); }
@media (max-width: 991px) {
  .brand img { max-width: min(100%, 240px); max-height: 58px; }
}
@media (max-width: 575px) {
  .site-nav { padding-inline: 1rem; }
  .brand img { max-width: min(100%, 220px); max-height: 52px; }
}

/* Shared portal footer and welcome */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

.portal-welcome { margin-bottom: 2rem; }
.portal-welcome h1 { margin-bottom: .5rem; }
.portal-welcome p { margin: 0; font-size: 1.125rem; }

.site-footer {
  padding: 1.5rem 0 1rem;
  border-top: 3px solid var(--accent);
  background: var(--primary);
  color: #bfdbfe;
  text-align: center;
  font-size: .875rem;
}

.footer-brand { display: inline-block; }
.footer-brand img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-block: 1rem;
}

.footer-links a {
  color: #bfdbfe;
  text-underline-offset: .2em;
}

.footer-links a:hover { color: #fff; }

.footer-copyright {
  max-width: 35rem;
  margin: 0 auto;
  padding-top: .75rem;
  border-top: 1px solid #315b96;
  font-size: .75rem;
}

/* Shield above page headings */
.portal-welcome,
.page-intro {
  text-align: center;
}

.page-shield {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1.5rem;
}
