/* The AFS Pro site bar: one bar on every page, taken from the Combined Assurance Framework page,
   which set the pattern. The same four destinations in the same order everywhere; the page you
   are on is a black pill; the Combined Assurance Framework is an outlined button, so it stands
   out at rest, and fills black on hover. On a phone the bar keeps the mark and that one button;
   every other destination is in the footer. */
.afs-site {
  position: sticky; top: 0; z-index: 30;
  background: #faf8f4; border-bottom: 1px solid #e3ded4;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.afs-site-bar {
  max-width: 1420px; margin: 0 auto; padding: 0 32px; min-height: 66px;
  display: flex; align-items: center; gap: 10px 22px;
}
/* pages whose content sits on the 1180px shell keep the bar's edges on the content's edges */
.afs-site--narrow .afs-site-bar { max-width: 1180px; padding: 0 clamp(24px, 6vw, 76px); }
.afs-site-brand { display: flex; align-items: center; gap: 10px; flex: none; color: #1a232b; text-decoration: none; }
.afs-site-brand:hover { color: #1a232b; }
.afs-site-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none;
  border-radius: 1px; background: #1a232b; color: #f4f2ee;
  font-family: 'IBM Plex Serif', Georgia, serif; font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
}
.afs-site-word { font-family: 'IBM Plex Serif', Georgia, serif; font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.afs-site-word sup { font-size: 9px; vertical-align: super; }
.afs-site-sp { flex: 1; }
.afs-site-extra { display: flex; align-items: center; gap: 8px; }
.afs-site-link {
  font-size: 13px; line-height: 1.4; color: #5c6873; letter-spacing: .01em; text-decoration: none;
  white-space: nowrap; border: 1px solid transparent; border-radius: 8px; padding: 6px 0;
  transition: color .15s ease-out, background-color .15s ease-out, border-color .15s ease-out,
              box-shadow .15s ease-out, transform .2s cubic-bezier(.23, 1, .32, 1);
}
.afs-site-link:hover { color: #1a232b; }
.afs-site-caf { padding: 6px 13px; border-color: #1a232b; color: #1a232b; font-weight: 500; }
.afs-site-caf:hover, .afs-site-caf:focus-visible { background: #000; border-color: #000; color: #fff; outline: none; box-shadow: 0 0 0 2px #faf8f4, 0 0 0 3px #1D4ED8; }
/* the page you are on: black, with the thin blue ring the Combined Assurance Framework set */
.afs-site-link[aria-current="page"] { padding: 6px 13px; background: #000; border-color: #000; color: #fff; box-shadow: 0 0 0 2px #faf8f4, 0 0 0 3px #1D4ED8; }
.afs-site-link:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .afs-site-link { transition: none; }
  .afs-site-link:active { transform: none; }
}
@media (max-width: 980px) { .afs-site-link:not(.afs-site-caf) { display: none; } }
@media (max-width: 860px) {
  .afs-site-bar, .afs-site--narrow .afs-site-bar { padding: 0 16px; }
}
@media (max-width: 560px) {
  .afs-site-bar, .afs-site--narrow .afs-site-bar { min-height: 56px; gap: 10px; }
  .afs-site-word { font-size: 16px; }
  .afs-site-caf { font-size: 11.5px; padding: 5px 10px; }
  .afs-site-extra.hide-phone { display: none; }
}
/* the smallest phones (320 wide): the mark and the framework button together are wider than the
   screen, so the word beside the mark gives way and the AF mark alone leads home */
@media (max-width: 360px) {
  .afs-site-word { display: none; }
  .afs-site-bar, .afs-site--narrow .afs-site-bar { padding: 0 12px; }
}
@media print { .afs-site { display: none !important; } }

/* The legal footer of the application pages (the workspace, the finished set): a quiet row on
   the page ground, in line with the frame above it rather than a full-width strip of its own.
   The mark and the owner on the left, the policies on the right; a link takes the site's blue
   underline on hover. */
.afs-legal-strip { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 2px 32px 30px; }
.afs-legal-in { max-width: 1356px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 12px; line-height: 20px; color: #5c6873; }
.afs-legal-brand { display: inline-flex; align-items: center; gap: 7px; color: #1a232b;
  font-family: 'IBM Plex Serif', Georgia, serif; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.afs-legal-brand sup { font-size: 7px; vertical-align: super; }
.afs-legal-mark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 1px;
  background: #1a232b; color: #f4f2ee; font-size: 8.5px; letter-spacing: .04em; }
.afs-legal-sp { flex: 1; }
.afs-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.afs-legal-links a { color: #436c8c; font-weight: 500; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s ease-out, text-decoration-color .15s ease-out; }
.afs-legal-links a:hover, .afs-legal-links a:focus-visible { color: #385b75; text-decoration-color: #1D4ED8; outline: none; }
/* on a page whose content sits on the 1180px column, the footer sits on it too */
.afs-legal--narrow { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) 30px; }
.afs-legal--narrow .afs-legal-in { max-width: none; border-top: 1px solid #e3ded4; padding-top: 16px; }
@media (max-width: 860px) {
  .afs-legal-strip { padding: 4px 16px 24px; }
  .afs-legal-sp { display: none; }
  .afs-legal-links { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .afs-legal-links a { transition: none; } }
@media print { .afs-legal-strip { display: none !important; } }
