/* Public site header and footer for the free tools (ATD-140).
   The same look as index.html, free-tools.html and the retirement calculator, but every rule is
   namespaced (apc-) and sets its own box, font and colour, so a tool page's own CSS (bare
   header/footer/nav/a rules, a padded body, other fonts) can't leak in.
   Markup: see any page that links this file. js/public-chrome.js runs the phone menu.
   Signed-in members on data-nav-shell pages get the app menu instead: js/arowana-nav.js hides
   [data-nav-legacy] and turns [data-nav-topbar] into its white phone bar. */

.apc-skip{position:absolute;top:-80px;left:15px;background:#fff;color:#000;padding:10px;z-index:1000;font:600 15px/1.4 'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif}
.apc-skip:focus{top:10px}

header.apc-header{position:sticky;top:0;z-index:900;display:block;width:auto;margin:0;padding:0;border:0;border-bottom:1px solid #ffffff16;border-radius:0;box-shadow:none;
  background:#071a2ff5;color:#fff;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  font:16px/1.65 'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;text-align:left}
.apc-header *,.apc-footer *{box-sizing:border-box}
.apc-header a,.apc-footer a{color:inherit;text-decoration:none;background:none;border:0;box-shadow:none}
.apc-header a:focus-visible,.apc-header button:focus-visible,.apc-footer a:focus-visible{outline:3px solid #3bc4dd;outline-offset:3px}
.apc-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.apc-inner{min-height:76px;display:flex;align-items:center;gap:24px}
.apc-brand{display:flex;align-items:center;gap:10px;margin:0;padding:0;font-size:18px;font-weight:800;line-height:1.65;letter-spacing:-.01em;white-space:nowrap;color:#fff}
.apc-mark{width:40px;height:40px;border-radius:50%;display:block;flex:0 0 auto;object-fit:contain;background:#fff;padding:2px;margin:0;box-shadow:0 0 0 1px #ffffff2e}
.apc-brand small{display:block;margin-top:2px;font-size:10px;line-height:1.65;letter-spacing:.15em;color:#a3c4d5;font-weight:700;text-transform:uppercase}
body.anv-shell-on .apc-brand small{color:#4f6577!important}
.apc-nav{display:flex;align-items:center;gap:22px;margin:0 0 0 auto;padding:0;background:none;border:0;position:static}
.apc-nav a{font-size:14px;font-weight:700;line-height:1.4;color:#d8e6ef;padding:0}
.apc-nav a:hover{color:#7fe0ea}
.apc-cta{background:#fff!important;color:#071a2f!important;border-radius:10px;padding:11px 16px;font-size:14px;font-weight:800;line-height:1.4;white-space:nowrap}
.apc-toggle{display:none;margin-left:auto;padding:0;color:#fff;background:transparent;border:1px solid #ffffff55;border-radius:10px;width:46px;height:44px;cursor:pointer;place-items:center;font:inherit}
.apc-toggle svg{width:22px;height:22px;flex:none}

footer.apc-footer{display:block;width:auto;margin:0;padding:46px 0;border:0;border-radius:0;box-shadow:none;background:#061727;color:#b4cad7;
  font:16px/1.65 'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;text-align:left}
.apc-footer-grid{display:flex;justify-content:space-between;gap:22px;flex-wrap:wrap}
.apc-footer-brand strong{color:#fff}
.apc-footer-brand div{font-size:14px}
.apc-footer-links{display:flex;flex-wrap:wrap;gap:4px 18px}
.apc-footer-links a{font-size:14px;min-height:40px;display:inline-flex;align-items:center}
.apc-footer-links a:hover{text-decoration:underline}
.apc-footer small{display:block;margin-top:22px;max-width:1050px;font-size:13px;line-height:1.7;color:#b4cad7}

@media(max-width:990px){.apc-cta{display:none}.apc-nav{gap:14px}}
@media(max-width:860px){
  .apc-wrap{padding:0 20px}.apc-inner{min-height:67px}.apc-toggle{display:grid}
  .apc-nav{display:none;position:absolute;top:67px;left:0;right:0;background:#09263f;padding:12px 20px 22px;flex-direction:column;align-items:stretch;gap:2px;border-bottom:1px solid #ffffff33;box-shadow:0 20px 40px #0006}
  .apc-nav.open{display:flex}
  .apc-nav a{padding:13px 12px;font-size:16px;border-radius:10px}
  .apc-nav a:hover{background:#ffffff10}
}
@media(max-width:360px){.apc-wrap{padding:0 16px}.apc-inner{gap:8px}.apc-brand{font-size:15px;gap:8px}.apc-brand small{font-size:8px}.apc-mark{width:34px;height:34px}}
/* Pages whose body is a full-height flex column keep the footer at the bottom (ATD-146). */
body>footer.apc-footer{margin-top:auto}
@media print{.apc-header,.apc-footer,.apc-skip{display:none!important}}
