/*
 * SaaS Law site chrome: announce bar, top nav, mobile tabs and footer.
 *
 * Loaded on every page, including the homepage (which does not load
 * site.css). The markup between the SL-CHROME-* markers is byte-identical on
 * every page; nav.js marks the active tab at runtime.
 *
 * Everything is namespaced .sl-* and sets its own fonts, colours, margins and
 * list styles, so the Kadence CSS still loaded on the legacy pages cannot
 * reach in and restyle it.
 */

:root {
  --slc-navy: #0F2A5E;
  --slc-navy-deep: #0A1F47;
  --slc-blue: #1A459D;
  --slc-blue-soft: #EDF1FA;
  --slc-gold: #E8B824;
  --slc-gold-deep: #B8860B;
  --slc-ink: #15202E;
  --slc-txt-muted: #55616F;
  --slc-canvas: #FAF8F3;
  --slc-band: #F3EFE6;
  --slc-line: #E4E0D4;
  --slc-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --slc-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --slc-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --slc-maxw: 1120px;
}

.sl-announce, .sl-topnav, .sl-mtabs, .sl-foot { font-family: var(--slc-body); -webkit-font-smoothing: antialiased; line-height: 1.6; }
.sl-announce *, .sl-topnav *, .sl-mtabs *, .sl-foot * { box-sizing: border-box; }
.sl-announce a, .sl-topnav a, .sl-mtabs a, .sl-foot a { text-decoration: none; }
.sl-topnav :focus-visible, .sl-mtabs :focus-visible, .sl-foot :focus-visible { outline: 2px solid var(--slc-blue); outline-offset: 2px; }
.sl-foot :focus-visible { outline-color: var(--slc-gold); }

.sl-cwrap { max-width: var(--slc-maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---- announce ---- */
.sl-announce { background: var(--slc-navy-deep); color: #C9D5EA; font-size: 13px; text-align: center; }
.sl-announce .sl-cwrap { padding-block: 9px; }
.sl-announce p { margin: 0; }
.sl-announce b { color: #fff; font-weight: 600; }

/* ---- top nav ---- */
.sl-topnav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--slc-canvas) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--slc-line); }
.sl-topnav .sl-cwrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.sl-brand { display: flex; align-items: center; gap: 11px; }
.sl-brand__mk { width: 36px; height: 36px; border-radius: 9px; background: var(--slc-navy); display: grid; place-items: center; flex-shrink: 0; }
.sl-brand__mk span { font-family: var(--slc-mono); color: var(--slc-gold); font-weight: 600; font-size: 17px; letter-spacing: -1.5px; line-height: 1; }
.sl-brand__name { font-family: var(--slc-display); font-weight: 600; font-size: 21px; letter-spacing: -.4px; color: var(--slc-navy); line-height: 1; }
.sl-brand__name span { color: var(--slc-gold-deep); }
.sl-tabs { display: flex; gap: 4px; margin-left: 8px; }
.sl-tab { font-size: 14.5px; font-weight: 500; color: var(--slc-txt-muted); padding: 7px 13px; border-radius: 8px; white-space: nowrap; transition: background .12s, color .12s; }
.sl-tab:hover { color: var(--slc-ink); background: var(--slc-band); }
.sl-tab[aria-current="page"] { color: var(--slc-navy); background: var(--slc-blue-soft); font-weight: 600; }
.sl-topnav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sl-login { font-size: 14.5px; font-weight: 500; color: var(--slc-txt-muted); padding: 7px 10px; border-radius: 8px; }
.sl-login:hover { color: var(--slc-ink); background: var(--slc-band); }
.sl-cbtn { display: inline-flex; align-items: center; border-radius: 10px; padding: 10px 18px; font-size: 14.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; background: var(--slc-navy); color: #fff; box-shadow: 0 2px 10px color-mix(in srgb, var(--slc-navy) 30%, transparent); transition: transform .1s, box-shadow .15s; }
.sl-cbtn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--slc-navy) 36%, transparent); }

.sl-mtabs { display: none; background: var(--slc-canvas); }

/* ---- footer ---- */
.sl-foot { background: var(--slc-navy-deep); color: #B9C6DE; padding-block: 52px 30px; font-size: 14px; }
.sl-foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 32px; border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent); }
.sl-foot__brand { display: flex; align-items: center; gap: 11px; font-family: var(--slc-display); font-weight: 600; font-size: 20px; color: #fff; margin-bottom: 14px; line-height: 1.2; }
.sl-foot__mk { width: 32px; height: 32px; border-radius: 8px; background: var(--slc-blue); display: grid; place-items: center; }
.sl-foot__mk span { font-family: var(--slc-mono); color: var(--slc-gold); font-size: 15px; letter-spacing: -1.5px; line-height: 1; }
.sl-foot__about { color: #93A3C0; line-height: 1.6; font-size: 13.5px; max-width: 30em; margin: 0; }
.sl-foot__col h2 { font-family: var(--slc-body); font-size: 11.5px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: #7488AC; margin: 0 0 15px; font-weight: 600; }
.sl-foot__col ul { list-style: none; margin: 0; padding: 0; }
.sl-foot__col li { margin: 0; }
.sl-foot__col a { display: block; color: #C3CDDE; padding: 5px 0; font-size: 13.5px; transition: color .12s; }
.sl-foot__col a:hover { color: #fff; }
.sl-foot__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 12.5px; color: #7488AC; flex-wrap: wrap; gap: 12px; }
.sl-foot__bottom a { color: inherit; }
.sl-foot__bottom a:hover { color: #fff; }
.sl-foot__disclaimer { font-size: 11.5px; color: #6A7B9C; line-height: 1.6; margin: 18px 0 0; max-width: 72em; }

@media (prefers-reduced-motion: reduce) {
  .sl-topnav *, .sl-foot * { transition: none; }
}

/* Below ~1000px the five tabs no longer fit beside the brand and CTA, and the
   bar grew taller; move them to the scrolling row underneath instead. Log in
   stays up here beside the CTA. */
@media (max-width: 1024px) {
  .sl-tabs { display: none; }
  .sl-mtabs { display: block; border-bottom: 1px solid var(--slc-line); }
  .sl-mtabs .sl-cwrap { display: flex; gap: 4px; overflow-x: auto; padding-block: 10px; }
}

@media (max-width: 860px) {
  .sl-foot__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sl-topnav .sl-cwrap { gap: 12px; }
  .sl-brand__name { font-size: 19px; }
  .sl-cbtn { padding: 9px 13px; font-size: 13.5px; }
  /* Shrink the tab row to fit a phone's width instead of scrolling. */
  .sl-mtabs .sl-cwrap { justify-content: space-between; gap: 0; padding-inline: 12px; }
  .sl-mtabs .sl-tab { font-size: clamp(12px, 3.9vw, 14px); padding: 6px clamp(2px, 1vw, 10px); }
}

/* Smallest phones: tighten the brand and CTA so the top bar doesn't overflow. */
@media (max-width: 400px) {
  .sl-topnav .sl-cwrap { gap: 8px; padding-inline: 12px; }
  .sl-brand { gap: 8px; }
  .sl-brand__mk { width: 32px; height: 32px; }
  .sl-brand__name { font-size: 17px; }
  .sl-cbtn { padding: 8px 11px; font-size: 12.5px; }
  .sl-topnav__right { gap: 4px; }
  .sl-login { padding: 6px 7px; font-size: 13px; }
}

@media (max-width: 340px) {
  .sl-brand__mk { width: 28px; height: 28px; }
  .sl-brand__mk span { font-size: 14px; }
  .sl-brand__name { font-size: 15px; }
  .sl-login { padding: 6px 4px; font-size: 12px; }
  .sl-cbtn { padding: 7px 8px; font-size: 11.5px; }
}
