/* Styles for pages built by tools/static-generator. Loaded after the site CSS (style.css, responsive.css).
   The pages use the live site classes (innerHeaderSec, cardStyle2, nav.toc, .main, .note, .cta, .faq-item,
   bgc-footer-final ...). This file only holds what the site CSS does not provide. */

/* Header: these two rules are inline in resources/views/layout.blade.php, not in a stylesheet. */
/* Deviation from the live inline style: the live bar is one line that clips with an ellipsis on a phone.
   Here it wraps, so the legal notice is readable in full (owner, 2026-11-28). The wording is unchanged. */
.bc-notice-bar { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; padding: 7px 24px; text-align: center; font-size: 13px; color: #475569; white-space: normal; }
.bc-notice-sep { margin: 0 10px; color: #cbd5e1; }
.bc-notice-bar strong { color: #1e293b; }
.bc-notice-bar a { color: #00b185; font-weight: 600; text-decoration: none; }
.bc-bbb { float: right; cursor: pointer; }
.bc-bbb img { width: auto; height: 40px; }
/* Share button (header.html.j2): a <details> block, no script. The round button is the live .shareDdBtn. */
.bc-share { position: relative; }
.bc-share > summary { list-style: none; cursor: pointer; }
.bc-share > summary::-webkit-details-marker { display: none; }
.bc-share__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1100; min-width: 168px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); }
.bc-share__menu a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: #0f172a; font-size: 0.9375rem; text-decoration: none; }
.bc-share__menu a:hover, .bc-share__menu a:focus { background: #f1f5f9; }
/* Menu (header.html.j2): a <details> block, no script. Same sections and links as the live drawer. */
.bc-menu { position: relative; }
.bc-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid #ccc; border-radius: 2rem; background: #fff; color: #0f172a; font-size: 0.875rem; font-weight: 600; }
.bc-menu > summary::-webkit-details-marker { display: none; }
.bc-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1100; width: min(300px, 85vw); max-height: calc(100vh - 120px); overflow-y: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); }
.bc-menu__panel ul { list-style: none; margin: 0; padding: 6px 0 10px; }
.bc-menu__panel a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: #0f172a; font-size: 0.9375rem; text-decoration: none; }
.bc-menu__panel a:hover, .bc-menu__panel a:focus { background: #f1f5f9; }
.bc-menu__label { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; padding: 12px 16px 4px; }
@media (max-width: 575.98px) {
  .bc-menu > summary { width: 40px; padding: 0; justify-content: center; }
  .bc-menu .bc-menu__text { display: none; }
}
/* Open state: the icon becomes an X and the label "Close". */
.bc-menu:not([open]) .bc-menu__when-open, .bc-menu[open] .bc-menu__when-closed { display: none; }
/* Tap outside to close, without script (menu and share). While open, the summary carries an invisible layer
   over the whole screen; a tap on it is a tap on the summary, which closes the block. The layer is sized in
   viewport units from the header because the site header has a backdrop-filter, which makes "fixed" children
   position against the header, not the screen. The open panel sits above the layer. */
.bc-menu[open] > summary, .bc-share[open] > summary { position: relative; z-index: 1100; }
.bc-menu[open] > summary::before, .bc-share[open] > summary::before {
  content: ""; position: fixed; top: -100vh; left: -100vw; width: 300vw; height: 300vh; z-index: -1; cursor: default;
}
.bc-menu[open] > .bc-menu__panel, .bc-share[open] > .bc-share__menu { z-index: 1101; }
a.nav-btn-login, a.nav-btn-signup {
  padding: 7px 20px !important; border-radius: 6px !important; font-size: .875rem !important; font-weight: 600 !important;
  text-decoration: none !important; height: auto !important; min-height: unset !important; box-shadow: none !important;
}
a.nav-btn-login { border: 1.5px solid #00b185 !important; color: #00b185 !important; background: transparent !important; transition: background .2s, color .2s !important; }
a.nav-btn-login:hover { background: #00b185 !important; color: #fff !important; }
a.nav-btn-signup { background: #00b185 !important; color: #fff !important; border: 1.5px solid #00b185 !important; transition: background .2s !important; }
a.nav-btn-signup:hover { background: #007c5d !important; border-color: #007c5d !important; color: #fff !important; }

/* Breadcrumbs: the live state pages have none; these rules exist only in public/css/sections.css (not loaded here) and in the record pages' inline CSS. */
.bc-breadcrumb { padding: 10px 0 8px; font-size: 0.78rem; letter-spacing: 0.01em; }
.bc-breadcrumb ol { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.bc-breadcrumb li + li::before { content: '\203a'; margin: 0 7px; color: #c0c7d0; font-size: 0.95rem; line-height: 1; }
.bc-breadcrumb li a { color: #64748b; }
.bc-breadcrumb li a:hover { color: #009688; }
.bc-breadcrumb li[aria-current="page"] { color: #334155; font-weight: 600; }

/* Body: section titles. The live pages use .main h3 for these (style.css:1315); the generator keeps real h2s and gives them the same look, one step larger. */
/* h2s are dark; only the leading section number (span added by build.py) is brand green. The h1 stays green. */
.main h2 { font-size: 1.5rem; font-weight: 600; margin: 1.5rem 0 12px; padding-top: 10px; color: #0f172a; line-height: 1.3; }
.main h2 .bc-h2-num { color: var(--success-hover); }
/* h3 sub-headings are dark too (style.css:1315 makes .main h3 green). */
.main h3 { color: #0f172a; }
/* The call-to-action box is dark (#0f172a), so its heading must NOT take the dark h3 colour above: that made
   it #0f172a on #0f172a, invisible. Heading #00c392 (about 7.8:1 on the box), text #e5f9f5 (about 16:1). */
.main .cta h3 { color: #00c392; }
.main .cta p { color: #e5f9f5; }
/* The site's button turns #0f172a on hover, which vanishes on this box; use white there. */
.main .cta .btn-success:hover, .main .cta .btn-success:focus-visible { background-color: #fff; border-color: #fff; color: #0f172a; }
.bc-body .container > h2:first-child { margin-top: 0; }

/* Anchor jumps: the site header is sticky, so every jump target must stop below it. One rule on the page,
   so no heading can be missed. --bc-header-h is the header's measured height (set by the table-of-contents
   script); 74px is the value style.css itself assumes. */
:root { --bc-header-h: 74px; }
html { scroll-padding-top: calc(var(--bc-header-h) + 12px); }

/* Body text: 17px, 1.8 line height, near-black, running the full width of the column (owner decision
   2026-11-28: no width cap). Tables keep the site's 14px and 1.6 so they still fit on a phone. */
.bc-body { font-size: 1.0625rem; line-height: 1.8; color: #0f172a; }
.bc-body table { font-size: 0.875rem; line-height: 1.6; }

/* Table of contents (pages.html.j2). Base: a closed block at the end of the introduction.
   Rows are 48px tall with 8px between them (tap-target guidance). */
.bc-toc-wrap { display: block; margin: 1.5rem 0; }
.bc-toc > summary { cursor: pointer; font-weight: 600; color: #0f172a; }
.bc-toc nav.toc ul { list-style: none; padding-left: 0; margin: 12px 0 0; gap: 8px; }
.bc-toc nav.toc ul li { margin: 0; }
/* Links are the site's dark green (--success-hover, #007c5d: about 5.2:1 on white). Every row is green, so
   the row in view is marked without colour: bold on a pale tint, plus a bar in the sidebar. */
.bc-toc nav.toc a { display: flex; align-items: center; min-height: 48px; color: #007c5d; }
.bc-toc nav.toc a.is-current { font-weight: 700; background: #f0f8f6; border-radius: 4px; padding-left: 8px; padding-right: 8px; }

/* 1200px and up: the same list as a sticky column to the right of the article. */
@media (min-width: 1200px) {
  .bc-has-toc { position: relative; padding-right: 324px; }
  .bc-has-toc > .bc-toc-wrap { position: absolute; top: 0; bottom: 0; right: 12px; width: 280px; margin: 0; }
  .bc-has-toc .bc-toc {
    position: sticky; top: calc(var(--bc-header-h) + 16px);
    max-height: calc(100vh - var(--bc-header-h) - 32px); overflow-y: auto;
    padding: 4px 8px 4px 20px; background: transparent; box-shadow: none;
    border: 0; border-left: 1px solid #e2e8f0; border-radius: 0;
    font-size: 0.875rem; line-height: 1.3;
  }
  .bc-has-toc .bc-toc nav.toc a.is-current { margin-left: -21px; padding-left: 18px; border-left: 3px solid #007c5d; border-radius: 0 4px 4px 0; }
  /* No toggle once the script has opened it. Without script it stays a tap-to-open block. */
  .bc-toc--side > summary { pointer-events: none; list-style: none; cursor: default; }
  .bc-toc--side > summary::-webkit-details-marker { display: none; }
}
/* Mouse-driven wide screens only: tighter rows in the sidebar. Touch screens keep the 48px rows. */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  .bc-has-toc .bc-toc nav.toc ul { gap: 2px; }
  .bc-has-toc .bc-toc nav.toc a { min-height: 0; padding: 4px 0; }
}

/* Body: ordered lists (style.css resets ol to list-style none; .main ul in style.css covers bullets only) */
.main ol { list-style-type: decimal; margin-bottom: 18px; }
.main ol li:not(:last-child) { margin-bottom: 8px; }

/* Quick Answer box (front matter quick_answer). Same rules as the inline CSS of the live record pages
   (pages/criminal-records-search.blade.php:231-234); they are not in style.css. */
.quick-answer { background: linear-gradient(135deg,#f0fdf9,#e6f9f4); border: 1px solid #a7f3d0; border-left: 4px solid #00b185; padding: 1.25rem 1.5rem; border-radius: 8px; margin: 1.5rem 0; }
.quick-answer .qa-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: #00796b; margin-bottom: 0.5rem; }
.quick-answer .qa-question { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.quick-answer .qa-answer { color: #374151; line-height: 1.6; margin-bottom: 0.75rem; }
.quick-answer .qa-answer:last-child { margin-bottom: 0; }
