/* The shared menu and footer. One stylesheet for every page.
   Every rule is scoped to a .fos- class, and the menu and footer are plain divs, so a
   page's own "nav", "footer" or "a" styles cannot reach in and the two look the same
   everywhere. Colors are the brand tokens: navy ink, terracotta accent, cream page. */

.fos-nav, .fos-nav *, .fos-mnav, .fos-mnav *, .fos-footer, .fos-footer * { box-sizing: border-box; }

/* ---------- the bar ---------- */
.fos-nav {
    position: sticky; top: 0; left: 0; right: 0; z-index: 1000; width: 100%;
    margin: 0; padding: 0;
    background: rgba(250, 248, 245, 0.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px; line-height: 1.4; text-align: left; letter-spacing: normal;
}
/* Pages built around a menu that floats over the page keep that layout.
   --sc-bar-h is the height of the home page banner, when a page has one. */
.fos-nav.fos-fixed { position: fixed; top: var(--sc-bar-h, 0px); }
.fos-nav .fos-nav-inner {
    max-width: 1160px; height: 64px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.fos-nav a.fos-logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; padding: 0; margin: 0; border: 0; background: none; text-decoration: none; }
.fos-nav a.fos-logo svg { height: 30px; width: auto; max-width: 100%; display: block; }

.fos-nav .fos-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.fos-nav a.fos-link, .fos-nav button.fos-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 0; padding: 8px 12px; border: 0; border-radius: 8px; background: none;
    font-family: inherit; font-size: 0.93rem; font-weight: 500; line-height: 1.4;
    color: #3A3A50; text-decoration: none; text-transform: none; letter-spacing: normal;
    cursor: pointer; white-space: nowrap; box-shadow: none; width: auto; min-height: 0;
}
.fos-nav a.fos-link:hover, .fos-nav button.fos-trigger:hover,
.fos-nav .fos-dd.fos-open button.fos-trigger { color: #12121E; background: rgba(26, 26, 46, 0.06); }
.fos-nav a.fos-link:focus-visible, .fos-nav button.fos-trigger:focus-visible,
.fos-nav a.fos-cta:focus-visible, .fos-nav button.fos-burger:focus-visible,
.fos-nav .fos-panel a:focus-visible, .fos-mnav a:focus-visible { outline: 2px solid #C44B2B; outline-offset: 2px; }

/* ---------- dropdowns ---------- */
.fos-nav .fos-dd { position: relative; margin: 0; padding: 0; }
.fos-nav .fos-panel {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    width: 360px; margin: 0; padding: 8px;
    background: #FFFDFB; border: 1px solid rgba(26, 26, 46, 0.10); border-radius: 14px;
    box-shadow: 0 14px 40px rgba(18, 18, 30, 0.14);
}
.fos-nav .fos-dd:hover .fos-panel, .fos-nav .fos-dd:focus-within .fos-panel, .fos-nav .fos-dd.fos-open .fos-panel { display: block; }
.fos-nav .fos-panel a {
    display: block; margin: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
    text-decoration: none; color: #1A1A2E; font-weight: 400; white-space: normal;
}
.fos-nav .fos-panel a:hover { background: rgba(26, 26, 46, 0.05); color: #1A1A2E; }
.fos-nav .fos-panel a.fos-all { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(26, 26, 46, 0.08); border-radius: 0 0 10px 10px; font-size: 0.88rem; font-weight: 600; color: #C44B2B; }
.fos-nav .fos-panel a.fos-all:hover { color: #A93E22; }
.fos-mnav a.fos-m-all { font-size: 0.92rem; font-weight: 600; color: #C44B2B; }
.fos-nav .fos-t { display: block; font-size: 0.95rem; font-weight: 600; color: #1A1A2E; line-height: 1.35; }
.fos-nav .fos-d { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 400; color: #6B6B80; line-height: 1.4; }

.fos-nav .fos-tag, .fos-mnav .fos-tag {
    display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle;
}
.fos-nav .fos-tag-best, .fos-mnav .fos-tag-best { background: #E6EDE3; color: #4A6741; }
.fos-nav .fos-tag-new, .fos-mnav .fos-tag-new { background: #F7E3DC; color: #C44B2B; }

/* ---------- the quiz button ---------- */
.fos-nav a.fos-cta, .fos-mnav a.fos-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 0 0 8px; padding: 10px 16px; border: 0; border-radius: 10px;
    background: #C44B2B; color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.2;
    text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(196, 75, 43, 0.22);
}
.fos-nav a.fos-cta:hover, .fos-mnav a.fos-cta:hover { background: #A93E22; color: #fff; }

/* ---------- phone ---------- */
.fos-nav .fos-mobile-right { display: none; align-items: center; gap: 10px; }
.fos-nav a.fos-cta-small { margin: 0; padding: 8px 12px; font-size: 0.85rem; }
.fos-nav button.fos-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; margin: 0; padding: 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; box-shadow: none;
}
.fos-nav button.fos-burger span { display: block; width: 24px; height: 2px; margin: 0; border-radius: 2px; background: #1A1A2E; transition: transform 0.2s ease, opacity 0.2s ease; }
.fos-nav button.fos-burger.fos-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fos-nav button.fos-burger.fos-open span:nth-child(2) { opacity: 0; }
.fos-nav button.fos-burger.fos-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.fos-mnav {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 999;
    margin: 0; padding: 12px 20px 48px; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #FAF8F5; text-align: left;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.4;
}
.fos-mnav.fos-open { display: block; }
.fos-mnav a {
    display: block; margin: 0; padding: 13px 4px; border: 0; border-bottom: 1px solid rgba(26, 26, 46, 0.07); background: none;
    font-size: 1rem; font-weight: 500; color: #1A1A2E; text-decoration: none;
}
.fos-mnav a.fos-m-top { font-size: 1.08rem; font-weight: 600; }
.fos-mnav .fos-m-label { margin: 22px 0 2px; padding: 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6B6B80; }
.fos-mnav a.fos-m-cta { display: flex; margin: 26px 0 0; padding: 15px 16px; border-bottom: 0; font-size: 1rem; color: #fff; }
html.fos-lock, html.fos-lock body { overflow: hidden; }

/* Six menu items and the button need about 1000px. Below that, the phone menu. */
@media (max-width: 1000px) {
    .fos-nav .fos-links { display: none; }
    .fos-nav .fos-mobile-right { display: flex; flex: 0 0 auto; }
    .fos-nav .fos-nav-inner { padding: 0 16px; gap: 10px; }
}
@media (max-width: 420px) {
    .fos-nav a.fos-logo svg { height: 25px; }
    .fos-nav .fos-mobile-right { gap: 6px; }
}
@media (max-width: 360px) {
    .fos-nav a.fos-logo svg { height: 22px; }
    .fos-nav a.fos-cta-small { padding: 8px 10px; font-size: 0.8rem; }
}

/* ---------- the footer ---------- */
.fos-footer {
    margin: 0; padding: 44px 20px 40px; background: #12121E; color: rgba(255, 255, 255, 0.62); text-align: center;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.6;
}
.fos-footer .fos-footer-inner { max-width: 880px; margin: 0 auto; padding: 0; }
.fos-footer .fos-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 12px; padding: 0; }
.fos-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 400; background: none; border: 0; padding: 0; margin: 0; }
.fos-footer a:hover { color: #fff; text-decoration: underline; }
.fos-footer .fos-footer-line { margin: 12px 0 0; padding: 0; font-size: 0.93rem; color: rgba(255, 255, 255, 0.62); }
.fos-footer .fos-footer-copy { margin: 18px 0 0; padding: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.42); }
