/* =========================================================================
   SDM-REPORTS-V2 STEP 3 / 4. THE CALM NAVIGATION AND THE ONE COMPLETION-PAGE DESIGN.
   Loaded on every web page by sdm_look.sdm_css_links (never in a PDF). Colours are the design tokens only
   (static/css/sdm_tokens.css): cyan is a BACKGROUND with black text, never text on white.
     nv-header / nv-nav / nv-search / nv-more / nv-back   the short menu and the back link
     nv-next / nv-row / nv-btn                            Home ("Your next step") and lists
     nv-group / nv-tool / nv-state                        My tools
     nv-done-* / nv-part / nv-fix                         the completion pages (business plan, market, funding)
     the HoneyGuide button, Hive Pulse                    never over a button, a field or an open menu
   ========================================================================= */

.nv-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
         clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- the header: search, the five, More --------------------------------------------------------------- */
[data-nav-v2] .nv-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nv-main { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
[data-nav-v2] .nv-main a, [data-nav-v2] .nv-main a:link, [data-nav-v2] .nv-main a:visited, .nv-more summary { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  color: var(--c-white); font-weight: var(--fw-medium); text-decoration: none; border-radius: 10px; cursor: pointer; }
[data-nav-v2] .nv-main a[aria-current="page"] { background: var(--c-brand); color: var(--c-black); }
[data-nav-v2] .nv-main a:hover, .nv-more summary:hover { background: var(--c-line-on-black); }
[data-nav-v2] .nv-main a[aria-current="page"]:hover { background: var(--c-brand-hover); }
.nv-more { position: relative; }
.nv-more summary { list-style: none; }
.nv-more summary::-webkit-details-marker { display: none; }
.nv-more summary::after { content: " \25BE"; font-size: 13px; margin-left: 4px; }
.nv-more[open] summary::after { content: " \25B4"; }
.nv-more__list { margin: 0; padding: 6px 0; list-style: none; }
.nv-search { display: flex; gap: 6px; align-items: center; }
.nv-search__input { min-height: 44px; min-width: 0; width: 190px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-black); font: inherit; font-size: 16px; }
.nv-search__go { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--c-brand);
  color: var(--c-black); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.nv-hg { display: none; }

@media (min-width: 900px) {
  [data-nav-v2] .sdm-header__inner { flex-wrap: nowrap; }
  [data-nav-v2] .nv-nav { flex: 1 1 auto; justify-content: flex-end; }
  [data-nav-v2] .nv-search { order: 3; margin-left: 8px; }
  .nv-more__list { position: absolute; right: 0; top: 100%; z-index: 55; min-width: 240px; background: var(--c-white);
    border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 12px 30px var(--c-shadow); }
  [data-nav-v2] .nv-more__list a, [data-nav-v2] .nv-more__list a:link, [data-nav-v2] .nv-more__list a:visited { display: block; padding: 12px 16px; min-height: 44px; color: var(--c-black); text-decoration: none; }
  [data-nav-v2] .nv-more__list a:hover, [data-nav-v2] .nv-more__list a:focus-visible { background: var(--c-brand-tint); }
}

@media (max-width: 899px) {
  [data-nav-v2] .sdm-header__inner { gap: 8px; }
  .nv-hg { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; margin-left: auto;
    border-radius: 12px; background: var(--rmk-honey); color: var(--c-black); font-size: 15px;
    font-weight: var(--fw-bold); text-decoration: none; white-space: nowrap; }
  [data-nav-v2] [data-rmk-drawer].is-open { padding-top: 12px; }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-search { padding: 0 16px 12px; }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-search__input { flex: 1 1 auto; width: auto; }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-main { flex-direction: column; }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-main a { font-size: 19px; min-height: 56px; }
  /* in the drawer the current page is the rmk_ui style: cyan text and a cyan bar on black (12.87:1), no cyan block */
  [data-nav-v2] [data-rmk-drawer].is-open .nv-main a[aria-current="page"] { background: var(--c-line-on-black-2); }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-more summary { width: 100%; min-height: 52px; padding: 12px 20px;
    border-top: 1px solid var(--c-line-on-black); border-radius: 0; color: var(--c-muted-on-black); }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-more__list a { font-size: 16px; font-weight: var(--fw-regular); min-height: 48px; }
  /* the HoneyGuide button is in the bar on a phone, so the floating one never covers a button or a field */
  .rmk-hg-fab { display: none !important; }
}

/* ---- the back link ------------------------------------------------------------------------------------ */
.nv-back { background: var(--c-grey); border-bottom: 1px solid var(--c-border); }
.nv-back__inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.nv-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--c-black);
  font-weight: var(--fw-medium); text-decoration: underline; }

/* ---- the floating pieces: never over content ---------------------------------------------------------- */
@media (min-width: 900px) { body.rmk-page { padding-bottom: 88px; } }
#pulse-root .rmk-pulse { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px;
  margin: 12px 0; position: static !important; box-shadow: none !important; border-width: 1px; }
#pulse-root .rmk-pulse .rmk-small { display: none; }
#pulse-root .rmk-pulse .rmk-card__title { margin: 0 !important; font-size: 16px; flex: 1 1 160px; }
#pulse-root .rmk-pulse .rmk-cluster { gap: 8px; }
#pulse-root .rmk-pulse .rmk-btn { min-height: 44px; padding: 6px 14px; }
body.rmk-drawer-open #pulse-root { visibility: hidden; }

/* ---- shared page pieces ------------------------------------------------------------------------------- */
.nv-page { max-width: 640px; margin: 0 auto; padding: 16px; }
.nv-h1 { font-size: 28px; line-height: 1.2; margin: 4px 0 12px; color: var(--c-black); }
.nv-h2 { font-size: 20px; margin: 20px 0 8px; color: var(--c-black); }
.nv-lead { font-size: 17px; color: var(--c-muted); margin: 0 0 16px; }
.nv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 2px solid var(--c-black); background: var(--c-white); color: var(--c-black);
  font: inherit; font-weight: var(--fw-bold); text-decoration: none; cursor: pointer; }
.nv-btn--main { width: 100%; min-height: 56px; border-color: var(--c-brand); background: var(--c-brand); font-size: 18px; }
.nv-btn--main:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); }
.nv-btn--sm { min-height: 44px; padding: 6px 14px; }
.nv-quiet { margin: 16px 0; }
.nv-quiet a { color: var(--c-black); font-weight: var(--fw-medium); }
.nv-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-border); border-radius: 14px;
  background: var(--c-white); overflow: hidden; }
.nv-rows li + li { border-top: 1px solid var(--c-border); }
.nv-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding: 12px 16px;
  min-height: 56px; color: var(--c-black); text-decoration: none; }
.nv-row:hover, .nv-row:focus-visible { background: var(--c-brand-tint); }
.nv-row__title { font-weight: var(--fw-bold); }
.nv-row__text { grid-column: 1; color: var(--c-muted); font-size: 15px; }
.nv-row__go { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; }
.nv-fold { margin: 16px 0; border-top: 1px solid var(--c-border); padding-top: 8px; }
.nv-fold > summary { min-height: 48px; display: flex; align-items: center; font-weight: var(--fw-bold); cursor: pointer; }

/* ---- Home: "Your next step" --------------------------------------------------------------------------- */
.nv-hello { color: var(--c-muted); margin: 4px 0 0; }
.nv-hello__biz { color: var(--c-black); font-weight: var(--fw-medium); }
.nv-next { border: 2px solid var(--c-black); border-radius: 18px; padding: 18px; background: var(--c-white); }
.nv-next__title { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.nv-next__why { margin: 0 0 6px; font-size: 17px; }
.nv-next__time { margin: 0 0 14px; color: var(--c-muted); }

/* ---- My tools ----------------------------------------------------------------------------------------- */
.nv-start { border: 2px solid var(--c-black); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; background: var(--c-white); }
.nv-start ol { margin: 8px 0 0; padding-left: 22px; }
.nv-start li { margin: 6px 0; }
.nv-start li.is-next a { font-weight: var(--fw-bold); }
.nv-group { margin: 22px 0 0; }
.nv-group__line { color: var(--c-muted); margin: 0 0 10px; }
.nv-tool { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-white); padding: 14px 16px;
  margin: 0 0 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.nv-tool__name { font-size: 18px; font-weight: var(--fw-bold); margin: 0; grid-column: 1; }
.nv-tool__line { margin: 0; grid-column: 1; }
.nv-tool__meta { margin: 0; grid-column: 1; color: var(--c-muted); font-size: 15px; }
.nv-tool .nv-btn { grid-column: 2; grid-row: 1 / span 3; }
.nv-state { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: var(--fw-bold);
  border: 1px solid var(--c-border); background: var(--c-grey); color: var(--c-black); }
.nv-state--doing { background: var(--c-warn-tint); border-color: var(--c-warn-tint); }
.nv-state--done { background: var(--c-ok-tint); border-color: var(--c-ok-tint); }
@media (max-width: 420px) {
  .nv-tool { grid-template-columns: 1fr; }
  .nv-tool .nv-btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 6px; }
}

/* ---- the find page ------------------------------------------------------------------------------------ */
.nv-findform { display: flex; gap: 8px; margin: 0 0 16px; }
.nv-findform input { flex: 1 1 auto; min-height: 48px; padding: 8px 12px; border: 1px solid var(--c-border);
  border-radius: 12px; font: inherit; font-size: 17px; }
.nv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; padding: 0; list-style: none; }
.nv-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--c-black); color: var(--c-black); text-decoration: none; }

/* ---- the completion pages (business plan, market readiness, funding readiness) ------------------------- */
.nv-done-top { border-radius: 18px; padding: 16px 18px; background: var(--c-black); color: var(--c-white); margin: 0 0 14px; }
.nv-done-top__name { margin: 0; font-size: 15px; color: var(--c-muted-on-black); font-weight: var(--fw-medium); }
.nv-done-top__status { margin: 4px 0 8px; font-size: 24px; font-weight: var(--fw-heavy); line-height: 1.2; }
.nv-done-top__bar { height: 10px; border-radius: 999px; background: var(--c-line-on-black); overflow: hidden; }
.nv-done-top__bar span { display: block; height: 100%; background: var(--c-brand); }
.nv-chip { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 15px; font-weight: var(--fw-bold);
  color: var(--c-black); background: var(--c-grey); vertical-align: middle; }
.nv-chip--ready { background: var(--c-ok-tint); }
.nv-chip--almost { background: var(--c-warn-tint); }
.nv-chip--notyet { background: var(--c-bad-tint); }
.nv-done-main { margin: 0 0 6px; }
.nv-done-main form { margin: 0; }
.nv-done-note { color: var(--c-muted); font-size: 15px; margin: 6px 0 0; }
.nv-parts .nv-row__title { font-weight: var(--fw-medium); }
.nv-mark { display: inline-block; min-width: 72px; padding: 2px 8px; border-radius: 999px; font-size: 14px;
  font-weight: var(--fw-bold); text-align: center; }
.nv-mark--done { background: var(--c-ok-tint); color: var(--c-black); }
.nv-mark--almost { background: var(--c-warn-tint); color: var(--c-black); }
.nv-mark--todo { background: var(--c-grey); color: var(--c-black); border: 1px solid var(--c-border); }
.nv-part { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px;
  min-height: 52px; color: var(--c-black); text-decoration: none; }
.nv-part:hover, .nv-part:focus-visible { background: var(--c-brand-tint); }
.nv-parts-group > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; font-weight: var(--fw-bold); cursor: pointer; }
.nv-parts-group + .nv-parts-group { border-top: 1px solid var(--c-border); }
.nv-parts-box { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-white); overflow: hidden; }
.nv-calm { padding: 12px 14px; border-radius: 12px; background: var(--c-grey); margin: 0; }
.nv-rowform { margin: 0; }
.nv-row--button { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.nv-done-top__note { margin-top: 8px; }

/* ---- the older public header (RMK Connect shell off): brand, Menu and the main button on one row on a phone, the
   menu folded until "Menu" is tapped, so a page's content starts near the top (it started ~570 px down) ---------- */
@media (max-width: 900px) {
  .sdm-header:not([data-nav-v2]) .sdm-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sdm-header:not([data-nav-v2]) .sdm-menu-toggle { margin-left: auto; width: auto; flex: 0 0 auto; }
  .sdm-header:not([data-nav-v2]) .sdm-header__actions { width: auto; flex: 0 0 auto; }
  .sdm-header:not([data-nav-v2]) .sdm-nav.is-open { order: 5; flex-basis: 100%; }
}

/* the calm pages keep the house H1 band (black, cyan words) but their section headings are plain ink words: five
   cyan bands on one phone screen competed with the one main button */
body:not(.sdm-plain) .nv-page h2.nv-h2 { background-color: transparent !important; color: var(--c-black) !important;
  text-align: left !important; text-transform: none !important; letter-spacing: 0 !important; padding: 0 !important;
  font-size: var(--fs-3) !important; margin: 20px 0 8px !important; }
/* the drawer: the search box and More use the drawer's full width */
@media (max-width: 899px) {
  [data-nav-v2] [data-rmk-drawer].is-open .nv-search { width: 100%; box-sizing: border-box; }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-more { width: 100%; }
  [data-nav-v2] [data-rmk-drawer].is-open .nv-more__list a { padding-left: 28px; }
}
.nv-mark--notyet { background: var(--c-bad-tint); color: var(--c-black); }
