/* Business Lookup — site styles. Blue action palette; dark header lockup. */

:root {
  --bg: #f5f8f8;
  --ink: #15282b;
  --muted: #5b6b6e;
  /* Primary action/accent is blue (kept under the old --teal/--cta names so the
     whole site recolors at once). */
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #2563eb;
  --teal-dark: #1d4ed8;
  --accent: #2563eb;
  --cta: #2563eb;
  --cta-dark: #1d4ed8;
  --header-bg: #0b0d0e;
  --line: #dde6e6;
  --white: #ffffff;
  --ok: #047857;
  --no: #b42318;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(16, 40, 43, 0.08);
}

/* Make the hidden attribute authoritative (fixes spinner/result toggling). */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--teal); }
.bns-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header — black bar with the Capitol logo lockup */
.bns-header { background: var(--header-bg); position: sticky; top: 0; z-index: 20; }
.bns-header-inner { display: flex; align-items: center; justify-content: flex-start; min-height: 120px; padding: 14px 0; }
.bns-logo { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--white); }
.bns-logo-img { height: 92px; width: auto; display: block; }
.bns-logo-lockup { display: inline-flex; flex-direction: column; align-items: center; }
.bns-logo-text { font-size: 34px; font-weight: 700; letter-spacing: 0.005em; line-height: 1; }
.bns-logo-rule { display: block; width: 100%; height: 1px; background: rgba(255, 255, 255, 0.75); margin: 7px 0; }
.bns-logo-sub { font-size: 19px; font-weight: 600; letter-spacing: 0.04em; }

/* Hero — white band, centered heading, white widget card */
.bns-hero { background: var(--white); color: var(--ink); padding: 56px 0 56px; text-align: center; border-bottom: 1px solid var(--line); }
.bns-h1 { font-size: 54px; line-height: 1.08; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.01em; }
.bns-hero-sub { font-size: 18px; font-weight: 300; color: var(--muted); max-width: 720px; margin: 0 auto 28px; }

/* Widget */
.bns-nc-widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; color: var(--ink); text-align: left; }
.bns-nc-title { margin: 0 0 14px; font-size: 17px; font-weight: 700; }
/* One connected search bar: input | divider | state | blue button, single border. */
.bns-nc-row { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.bns-nc-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.bns-nc-actions { display: flex; gap: 0; align-items: stretch; flex: 0 0 auto; }
.bns-nc-input { flex: 1 1 auto; min-width: 0; padding: 15px 18px; font-size: 16px; border: none; border-radius: 0; background: transparent; color: var(--ink); }
.bns-nc-input:focus { outline: none; }
.bns-nc-state-wrap { display: flex; }
.bns-nc-state { height: 100%; padding: 14px 40px 14px 18px; font-size: 16px; border: none; border-left: 1px solid var(--line); border-radius: 0; background-color: transparent; min-width: 138px; color: var(--ink); cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b6b6e' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.bns-nc-state:focus { outline: none; }
.bns-nc-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 58px; flex: 0 0 58px; padding: 0; color: var(--white); background: var(--blue); border: none; border-radius: 0; cursor: pointer; }
.bns-nc-search-btn:hover { background: var(--blue-dark); }
.bns-nc-btn-label { display: inline-flex; align-items: center; justify-content: center; }
.bns-nc-search-btn:disabled { opacity: 0.85; cursor: default; }
.bns-nc-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: bns-spin 0.7s linear infinite; }
@keyframes bns-spin { to { transform: rotate(360deg); } }
.bns-nc-status { margin-top: 12px; color: var(--teal-dark); font-size: 14px; font-weight: 600; }
.bns-nc-validation { margin-top: 10px; color: var(--no); font-size: 14px; }
.bns-nc-counter { margin-top: 8px; color: var(--muted); font-size: 13px; }

.bns-nc-results { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.bns-nc-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bns-nc-result-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; }
.bns-nc-ok .bns-nc-result-icon { background: var(--ok); }
.bns-nc-no .bns-nc-result-icon { background: var(--no); }
.bns-nc-result-title { font-size: 20px; font-weight: 700; }
.bns-nc-ok .bns-nc-result-title { color: var(--ok); }
.bns-nc-no .bns-nc-result-title { color: var(--no); }
.bns-nc-available-text { font-size: 16px; margin: 0 0 14px; }
.bns-nc-cta { background: #f0fdf9; border: 1px solid #bbf0e3; border-radius: 10px; padding: 18px; }
.bns-nc-cta-heading { margin: 0 0 12px; font-weight: 600; }
/* Entity options stacked as full-width boxes (match the mockup). */
.bns-nc-entity-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bns-nc-radio { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; }
.bns-nc-radio:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.bns-nc-radio span { font-weight: 400; }
.bns-nc-radio:has(input:checked) span { font-weight: 700; }
.bns-nc-radio input { accent-color: var(--blue); width: 17px; height: 17px; }
/* Start Filing on the left, Northwest partner logo aligned right. */
.bns-nc-cta-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bns-nc-cta-btn { display: inline-block; padding: 16px 48px; font-size: 17px; background: var(--cta); color: #fff; text-decoration: none; font-weight: 600; border-radius: 10px; }
.bns-nc-cta-btn:hover { background: var(--cta-dark); }
.bns-nc-partner-logo { margin-left: auto; }
.bns-nc-partner-logo img { height: 34px; width: auto; display: block; }
.bns-nc-cta-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.bns-nc-details { background: #fbfdfd; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.bns-nc-details-heading { margin: 0 0 8px; font-size: 16px; }
.bns-nc-details-list { margin: 0; }
.bns-nc-detail { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bns-nc-detail:last-child { border-bottom: none; }
.bns-nc-detail dt { color: var(--muted); margin: 0; }
.bns-nc-detail dd { margin: 0; font-weight: 600; text-align: right; }
.bns-nc-inactive-head { margin: 14px 0 8px; }
.bns-nc-filing { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bns-nc-filing-status { color: var(--muted); font-size: 14px; }
.bns-nc-try { color: var(--muted); margin: 14px 0 10px; }
/* Taken-result actions: Search Again (outline) on the left, Renew (filled) on
   the right, both the same size — mirrors SoS. */
.bns-nc-result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.bns-nc-again, .bns-nc-renew-btn, .bns-nc-full-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 11px 22px; font-size: 15px; font-weight: 600;
    border-radius: 8px; text-decoration: none; cursor: pointer; box-sizing: border-box;
    border: 1px solid var(--blue); line-height: 1.2;
}
.bns-nc-again { background: #fff; color: var(--blue); }
.bns-nc-again:hover { background: #f1f5ff; }
.bns-nc-full-btn { background: #fff; color: var(--blue); }
.bns-nc-full-btn:hover { background: #f1f5ff; }
.bns-nc-renew-btn { background: var(--blue); color: #fff; }
.bns-nc-renew-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.bns-nc-error-msg { color: var(--no); font-weight: 500; margin: 0; }

/* Hero stats — one connected bar split into cells by thin dividers */
.bns-hero-stats { display: flex; margin-top: 26px; text-align: center; background: #f8f9fb; border: 1px solid #e8ecf2; border-radius: 12px; overflow: hidden; }
.bns-hero-stat { flex: 1 1 0; min-width: 0; padding: 20px 14px; }
.bns-hero-stat + .bns-hero-stat { border-left: 1px solid #e8ecf2; }
.bns-hero-stat-num { font-size: 28px; font-weight: 800; color: var(--blue); }
.bns-hero-stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #6b7b85; margin-top: 6px; }
.bns-hero-stat-src { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; color: #9aa7ad; margin-top: 8px; }

/* Sections */
.bns-section { padding: 60px 0; }
.bns-section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bns-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 6px; }
.bns-h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
.bns-lead { color: var(--muted); max-width: 720px; margin: 0 0 26px; font-size: 17px; }

/* Directory table */
.bns-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.bns-dir { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.bns-dir th, table.bns-dir td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.bns-dir thead th { background: #f0f5f5; font-weight: 700; color: var(--ink); position: sticky; top: 0; }
table.bns-dir th.sortable { cursor: pointer; user-select: none; }
table.bns-dir th.sortable.asc::after { content: " \25B2"; font-size: 10px; }
table.bns-dir th.sortable.desc::after { content: " \25BC"; font-size: 10px; }
.bns-td-name { font-weight: 600; }
.bns-td-abbr { color: var(--muted); font-size: 12px; }
table.bns-dir tbody tr:hover { background: #f7fafa; }
.bns-tbl-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* Facts */
.bns-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bns-fact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bns-fact-hl { border-color: #bbf0e3; box-shadow: var(--shadow); }
.bns-fact-big { font-size: 30px; font-weight: 800; color: var(--teal); margin-bottom: 6px; }
.bns-fact-card h3 { font-size: 16px; margin: 0 0 8px; }
.bns-fact-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.bns-fact-src { font-size: 12px; color: var(--muted); }

/* Trends */
.bns-trend-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.bns-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bns-bar-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.bns-bar-year { font-size: 13px; color: var(--muted); }
.bns-bar-track { background: #eef3f3; border-radius: 6px; height: 30px; overflow: hidden; }
.bns-bar-fill { height: 100%; display: flex; align-items: center; padding-left: 10px; border-radius: 6px; }
.bns-bar-val { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.bns-bar-pre { background: #94a3a3; }
.bns-bar-surge { background: var(--accent); }
.bns-bar-peak { background: var(--teal-dark); }
.bns-bar-mid { background: #5eb5ab; }
.bns-bar-latest { background: var(--cta); }
.bns-bar-tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bns-trend-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bns-trend-box h3 { margin: 0 0 16px; font-size: 18px; }
.bns-trend-stat { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bns-trend-stat:last-child { border-bottom: none; }
.bns-trend-num { font-size: 24px; font-weight: 800; color: var(--teal); }
.bns-trend-desc { font-size: 14px; color: var(--muted); }

/* Roles */
.bns-roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bns-role-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bns-role-num { font-size: 13px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.bns-role-card h4 { margin: 0 0 6px; font-size: 16px; }
.bns-role-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* How-to */
.bns-howto-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.bns-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.bns-step { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
.bns-step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; background: var(--teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bns-step h4 { margin: 4px 0 4px; }
.bns-step p { margin: 0; color: var(--muted); font-size: 14px; }
.bns-info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.bns-info-box h3 { margin: 0 0 6px; font-size: 18px; }
.bns-info-box p { color: var(--muted); margin: 0 0 12px; }
.bns-info-box ul { margin: 0; padding-left: 18px; color: var(--ink); }
.bns-info-box li { margin: 6px 0; font-size: 14px; }

/* Formation cards */
.bns-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.bns-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.bns-card h3 { margin: 0 0 8px; font-size: 20px; }
.bns-card p { color: var(--muted); margin: 0 0 18px; flex: 1 1 auto; }
.bns-card-btn { display: inline-block; align-self: flex-start; margin-top: auto; padding: 11px 20px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; border-radius: 10px; }
.bns-card-btn:hover { background: var(--teal-dark); }

/* Resources */
.bns-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bns-res-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bns-res-card h4 { margin: 0 0 8px; font-size: 15px; }
.bns-res-card p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.bns-res-link { font-weight: 600; font-size: 14px; text-decoration: none; }

/* Footer */
.bns-footer { background: #0b1f22; color: #c6d3d4; padding: 40px 0; font-size: 14px; }
.bns-footer-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.bns-footer-brand { font-weight: 700; color: #fff; margin: 0 0 8px; }
.bns-footer p { margin: 0 auto 10px; max-width: 820px; }
.bns-footer-meta { color: #9fb0b2; font-size: 13px; }
.bns-footer a { color: #5eb5ab; }
.bns-optout { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #c6d3d4; }
.bns-toggle { width: 46px; height: 26px; border-radius: 13px; background: #46585b; border: none; position: relative; cursor: pointer; padding: 0; flex: 0 0 auto; transition: background .15s; }
.bns-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.bns-toggle.on { background: var(--cta); }
.bns-toggle.on::after { left: 23px; }
.bns-toggle:disabled { opacity: 0.65; cursor: default; }
.bns-optout-note { color: #7f9296; font-size: 12px; }

/* Legal pages */
.bns-legal { max-width: 760px; }
.bns-legal-updated { color: var(--muted); margin: 0 0 24px; }
.bns-legal h2 { margin-top: 28px; }
.bns-legal p { color: var(--ink); }
.bns-legal ul { color: var(--ink); padding-left: 20px; }
.bns-legal li { margin: 8px 0; }

@media (max-width: 900px) {
  .bns-facts-grid, .bns-roles-grid, .bns-res-grid { grid-template-columns: repeat(2, 1fr); }
  .bns-trend-grid, .bns-howto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bns-h1 { font-size: 30px; }
  .bns-cards, .bns-facts-grid, .bns-roles-grid, .bns-res-grid { grid-template-columns: 1fr; }
  .bns-nav { display: none; }
  /* Smaller header lockup so it fits narrow phones */
  .bns-header-inner { min-height: 0; }
  .bns-logo-img { height: 62px; }
  .bns-logo-text { font-size: 23px; }
  .bns-logo-sub { font-size: 14px; }
  /* Search stacks vertically (like SoS): input, state, button each full-width */
  .bns-nc-row { flex-direction: column; align-items: stretch; gap: 10px; background: transparent; border: none; border-radius: 0; overflow: visible; }
  .bns-nc-row:focus-within { box-shadow: none; }
  .bns-nc-input { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 14px 16px; }
  .bns-nc-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
  .bns-nc-actions { flex-direction: column; width: 100%; gap: 10px; }
  .bns-nc-state { border: 1px solid var(--line); border-radius: 10px; width: 100%; background-color: var(--white); padding: 14px 40px 14px 16px; }
  .bns-nc-search-btn { width: 100%; flex: 0 0 auto; height: 50px; border-radius: 10px; }
  /* Start Filing goes full-width; partner logo drops below, centered */
  .bns-nc-cta-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .bns-nc-cta-btn { width: 100%; text-align: center; }
  .bns-nc-partner-logo { margin-left: 0; align-self: center; }
  /* Connected stat bar wraps to 2x2 on phones */
  .bns-hero-stats { flex-wrap: wrap; }
  .bns-hero-stat { flex: 1 1 50%; }
  .bns-hero-stat:nth-child(odd) { border-left: none; }
  .bns-hero-stat:nth-child(n+3) { border-top: 1px solid #e8ecf2; }
}
