/* =====================================================================
   App header for signed-in pages (controls/appHeader.ascx).
   Modern take on topheader.aspx: same items, one aligned row, line icons.
   Self-contained: works with or without dev.css/site.css.
   ===================================================================== */
.ah { --ah-ink:#2b2b38; --ah-muted:#7a8195; --ah-brand:#3639a4; --ah-blue:#3c9cf0; --ah-sky:#7ad1ff; --ah-line:#e9ecf2; --ah-soft:#f4f6fa;
      position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
      border-bottom: 1px solid var(--ah-line); font-family: 'poppins', system-ui, sans-serif; }
.ah *, .ah *::before, .ah *::after { box-sizing: border-box; }
.ah-bar { max-width: 1180px; margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; gap: 28px; }
.ah-logo { flex: 0 0 auto; display: flex; align-items: center; }
.ah-logo img { height: 34px; display: block; }

.ah-links { display: flex; align-items: center; gap: 4px; }
.ah-links a, .ah-mobile > a { position: relative; padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--ah-muted); text-decoration: none; transition: color .15s, background .15s; }
.ah-links a:hover { color: var(--ah-brand); background: var(--ah-soft); }
.ah-links a.on { color: var(--ah-brand); font-weight: 600; }
.ah-links a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -15px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ah-brand); }

.ah-search { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 42px; width: 300px; padding: 0 5px 0 14px; background: var(--ah-soft); border: 1.5px solid transparent; border-radius: 12px; transition: border-color .15s, background .15s, box-shadow .15s; }
.ah-search:focus-within { background: #fff; border-color: var(--ah-blue); box-shadow: 0 0 0 4px rgba(60,156,240,.12); }
.ah-search-ico { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--ah-muted); stroke-width: 2; stroke-linecap: round; }
.ah-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ah-ink); }
.ah-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ah-search button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--ah-brand); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ah-search:focus-within button { opacity: 1; pointer-events: auto; }

.ah-right { display: flex; align-items: center; gap: 6px; }
.ah-icon, .ah-avatar, .ah-burger { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ah-brand); background: none; border: 0; cursor: pointer; text-decoration: none; transition: background .15s; }
.ah-icon:hover, .ah-avatar:hover, .ah-acct.open .ah-avatar, .ah-burger:hover { background: var(--ah-soft); }
.ah-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ah-dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #fff; }

.ah-acct { position: relative; margin-left: 6px; }
.ah-avatar { width: auto; padding: 0 8px 0 4px; gap: 4px; display: flex; }
.ah-avatar > svg:first-child { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--ah-brand); fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.ah-caret { width: 10px; height: 10px; fill: none; stroke: var(--ah-muted); stroke-width: 1.6; transition: transform .15s; }
.ah-acct.open .ah-caret { transform: rotate(180deg); }
.ah-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; background: #fff; border: 1px solid var(--ah-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(30,32,70,.14); }
.ah-acct.open .ah-menu { display: block; }
.ah-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ah-ink); text-decoration: none; }
.ah-menu a:hover { background: var(--ah-soft); color: var(--ah-brand); }
.ah-menu hr { border: 0; border-top: 1px solid var(--ah-line); margin: 6px 4px; }
.ah-login { padding: 9px 18px; border-radius: 10px; background: var(--ah-brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }

.ah-burger { display: none; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.ah-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ah-brand); }
.ah-mobile { display: none; padding: 8px 20px 16px; border-top: 1px solid var(--ah-line); background: #fff; }
.ah-mobile > a { display: block; }
.ah-mobile > a.on { background: var(--ah-soft); color: var(--ah-brand); }
.ah-search-m { width: 100%; margin: 6px 0 8px; }

@media (max-width: 960px) {
  .ah-bar { gap: 16px; padding: 0 20px; height: 64px; }
  .ah-links, .ah-bar > .ah-search { display: none; }
  .ah-right { margin-left: auto; }
  .ah-burger { display: flex; }
  .ah.mob-open .ah-mobile { display: block; }
  .ah-menu { position: fixed; right: 12px; top: 60px; }
}
@media (max-width: 480px) {
  .ah-bar { padding: 0 12px; gap: 8px; }
  .ah-logo img { height: 28px; }
  .ah-right { gap: 2px; }
  .ah-icon, .ah-burger { width: 38px; height: 38px; }
  .ah-acct { margin-left: 2px; }
  .ah-caret { display: none; }
  .ah-avatar { padding: 0 2px; }
}

/* Inline version inside the landing-page header (controls/lpHeader.ascx), signed in only.
   .lp a { color: inherit } in landing.css is more specific than single classes, hence the .ah.ah-inline prefix. */
.ah.ah-inline { position: static; z-index: auto; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
                margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ah.ah-inline .ah-search { margin: 0 8px 0 0; width: 270px; }
.ah.ah-inline .ah-icon { color: var(--ah-brand); }
.ah.ah-inline .ah-menu a { color: var(--ah-ink); font-weight: 400; }
.ah.ah-inline .ah-menu a:hover { color: var(--ah-brand); }
.ah.ah-inline .ah-menu { z-index: 60; }
@media (max-width: 1100px) { .ah.ah-inline .ah-search { display: none; } }
@media (max-width: 480px) { .ah.ah-inline { gap: 0; } .ah.ah-inline .ah-icon { width: 38px; height: 38px; } .ah.ah-inline .ah-caret { display: none; } }

/* Inner pages (topheader.aspx include): spacing below, and guard against dev.css/site.css element styles */
.ah.ah-site { margin-bottom: 28px; }
.ah-site ul, .ah-site li { list-style: none; margin: 0; padding: 0; }
.ah-site a { font-family: 'poppins', system-ui, sans-serif; }
.ah-site .ah-search input { width: auto; height: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; font-size: 13.5px; }
.ah-site .ah-search button, .ah-site .ah-avatar, .ah-site .ah-burger { width: auto; min-width: 0; margin: 0; line-height: normal; text-transform: none; letter-spacing: 0; box-shadow: none; }
.ah-site .ah-avatar { width: auto; height: 42px; }
.ah-site .ah-burger { width: 42px; height: 42px; }
.ah-site .ah-icon { color: var(--ah-brand); }
.ah-site .ah-loginslot a { color: #fff; }
/* setPageHeaderLoggedIn writes an icon link into liLogin; it's hidden by script when logged in */
/* dev.css styles every <header> with 20-37px padding; the app header sets its own height */
header.ah { padding: 0; }

/* ---- Site footer for inner pages (leftnav.aspx include): lined up with the header (.ah-bar) ---- */
.siteFooter.sf { background: #fff; border-top: 1px solid #e9ecf2; margin-top: 48px; font-family: 'poppins', system-ui, sans-serif; }
.sf-in { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sf-top { display: flex; justify-content: space-between; gap: 40px; padding: 36px 0 28px; }
.sf-brand { max-width: 340px; }
.sf-logo img { height: 30px; width: auto; display: block; }
.sf-brand p { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #7a8195; }
.sf-cols { display: flex; gap: 56px; }
.sf-cols h4 { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b2b38; }
.sf-cols a { display: block; padding: 4px 0; font-size: 13.5px; color: #7a8195; text-decoration: none; }
.sf-cols a:hover { color: #3639a4; }
.sf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0 22px; border-top: 1px solid #eef1f5; }
.sf-copy { font-size: 12.5px; color: #9aa1b0; }
.sf-app { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #dbe3ee; border-radius: 999px; color: #3639a4; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sf-app:hover { border-color: #3c9cf0; background: #f5f9ff; }
.sf-app svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .sf-top { flex-direction: column; gap: 24px; }
  .sf-cols { gap: 32px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .sf-in { padding: 0 12px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
}

/* Logos carry width/height attributes so they never flash full size before CSS loads; CSS sets the height, width follows */
.ah-logo img, .lpLogo img, .lpFooter img { width: auto; }

/* ---- Products dropdown (same header on landing, classifier and inner pages) ---- */
.ah-prod { position: relative; }
.ah-prod-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ah-muted); cursor: pointer; transition: color .15s, background .15s; }
.ah-prod-btn:hover, .ah-prod.open .ah-prod-btn { color: var(--ah-brand); background: var(--ah-soft); }
.ah-prod-btn.on { color: var(--ah-brand); font-weight: 600; }
.ah-prod.open .ah-caret { transform: rotate(180deg); }
.ah-drop { display: none; position: absolute; left: 0; top: calc(100% + 12px); width: 560px; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--ah-line); border-radius: 16px; box-shadow: 0 18px 40px rgba(30,32,70,.14); z-index: 110; }
.ah-prod.open .ah-drop { display: grid; }
.ah .ah-drop a, .ah .ah-mcats a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ah-ink); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; background: none; }
.ah .ah-drop a:hover, .ah .ah-drop a.on, .ah .ah-mcats a:hover, .ah .ah-mcats a.on { background: #eef6fe; color: var(--ah-brand); }
.ah .ah-drop a::after { display: none; }
.ah-drop svg, .ah-mcats svg { flex: 0 0 36px; width: 36px; height: 36px; background: #eef6fe; border-radius: 10px; padding: 4px; }
.ah-drop small, .ah-mcats small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ah-muted); }
.ah-mlabel { display: block; padding: 10px 14px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ah-muted); }
.ah-mcats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--ah-line); }
@media (max-width: 1080px) { .ah-search { width: 220px; } .ah-bar { gap: 18px; } }
@media (max-width: 520px) { .ah-mcats { grid-template-columns: 1fr; } }

/* Landing pages: .lp a { color: inherit } (landing.css) must not recolor header items */
.lp .ah .ah-login { color: #fff; }
.lp .ah .ah-icon { color: var(--ah-brand); }
.lp .ah .ah-links > a { color: var(--ah-muted); }
.lp .ah .ah-links > a.on, .lp .ah .ah-links > a:hover { color: var(--ah-brand); }
.lp .ah .ah-mobile > a { color: var(--ah-muted); }
.lp .ah .ah-menu a { color: var(--ah-ink); }
.lp .ah .ah-menu a:hover { color: var(--ah-brand); }

/* ---- Footer: 4 columns + legal line; centered on phones ---- */
.sf-cols { gap: 48px; }
.sf-legal { margin: 0; padding: 14px 0; border-top: 1px solid #eef1f5; font-size: 12px; line-height: 1.6; color: #9aa1b0; }
.sf-bottom { border-top: 0; padding-top: 4px; }
.lp .sf a { color: #7a8195; }
.lp .sf a:hover { color: #3639a4; }
.lp .sf .sf-app { color: #3639a4; }
@media (max-width: 640px) {
  .sf-top { align-items: center; text-align: center; }
  .sf-brand { display: flex; flex-direction: column; align-items: center; }
  .sf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; width: 100%; text-align: center; }
  .sf-legal { text-align: center; }
  .sf-bottom { flex-direction: column; align-items: center; text-align: center; }
}
/* Same link weight on landing and inner pages (dev.css vs landing.css differ) */
.sf .sf-cols a { font-weight: 400; }
.sf .sf-app { font-weight: 600; }
.ah .ah-links > a, .ah .ah-prod-btn { font-weight: 500; }
.ah .ah-links > a.on, .ah .ah-prod-btn.on { font-weight: 600; }
/* Phone menu search: full width (the 1080px rule above narrowed it to 220px) */
.ah .ah-search.ah-search-m { width: 100%; }
