/* Inspector directory (/inspectors/). Kadence palette: 1 navy, 3 heading, 4 body, 5 muted, 6 sand, 7 cream, 9 warm white, 15 gold. */
.jmi { --jmi-line: var(--global-palette6, #e8dfd0); --jmi-card: var(--global-palette9, #fefdfb); --jmi-accent: var(--global-palette1, #0e1c38);
	--jmi-muted: var(--global-palette5, #948e83); --jmi-warn: #b0362b; font-size: 15px; line-height: 1.5; margin: 8px 0 40px; }
.jmi-updated { font-size: 13px; color: var(--jmi-muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.jmi-bar { position: sticky; top: var(--jmi-top, 0px); z-index: 5; background: var(--global-palette9, #fefdfb); padding: 12px 0 10px; border-bottom: 1px solid var(--jmi-line); }
.jmi-bar[hidden] { display: none; }
.jmi-row { display: flex; gap: 8px; flex-wrap: wrap; }
.jmi-row input, .jmi-row select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--jmi-line); background: var(--jmi-card); color: var(--global-palette3); min-width: 0; height: auto; }
.jmi-row input { flex: 1 1 200px; }
.jmi-row input::placeholder, .jmi-fix ::placeholder { color: var(--jmi-muted); opacity: 1; }
.jmi-row select { flex: 0 1 auto; max-width: 100%; }
.jmi-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.jmi-lbl { font-size: 13px; color: var(--jmi-muted); margin-right: 2px; }
.jmi .jmi-chip { font: inherit; font-size: 13px; line-height: 1.4; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--jmi-line); background: var(--jmi-card); color: var(--global-palette3); cursor: pointer; box-shadow: none; height: auto; }
.jmi .jmi-chip:hover { border-color: var(--jmi-accent); background: var(--jmi-card); color: var(--global-palette3); }
.jmi select.jmi-chip { max-width: 100%; field-sizing: content; padding-right: 26px; }
.jmi select.jmi-chip:has(option:checked:not([value=""])), .jmi .jmi-chip[aria-pressed="true"] { background: var(--jmi-accent); color: #fff; border-color: var(--jmi-accent); }
.jmi-only { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; margin-top: 8px; cursor: pointer; }
.jmi-only input { width: 16px; height: 16px; margin: 0; accent-color: var(--jmi-accent); }
.jmi-count { font-size: 13px; color: var(--jmi-muted); margin: 12px 0 8px; }
.jmi-how summary, .jmi-more summary { cursor: pointer; color: var(--jmi-accent); font-weight: 600; width: max-content; max-width: 100%; }
.jmi-how p { margin: 6px 0; max-width: 64ch; color: var(--global-palette4); }
.jmi-list { display: grid; gap: 14px; }
@media (min-width: 700px) { .jmi-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .jmi-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The list runs the full page width; the page copy, form and notes stay at a readable measure. */
.entry-content:has(> .jmi) > :not(.jmi), .jmi-fix, .jmi-foot { max-width: 760px; margin-inline: auto; }
.jmi-list > * { min-width: 0; overflow-wrap: anywhere; }
.jmi-firm { display: flex; flex-direction: column; background: var(--jmi-card); border: 1px solid var(--jmi-line); border-radius: 10px; padding: 16px 18px; scroll-margin-top: calc(var(--jmi-top, 0px) + var(--jmi-bar, 0px) + 12px); }
.jmi-firm[hidden] { display: none; }
.jmi-firm.jmi-target { outline: 2px solid var(--global-palette10, #c07a56); outline-offset: 2px; }
.jmi-firm h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.jmi-where { font-size: 13.5px; color: var(--jmi-muted); margin-top: 2px; }
.jmi-key { display: grid; gap: 6px; margin-top: 10px; }
.jmi-rating, .jmi-price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.jmi-stars { position: relative; display: inline-block; font-size: 15px; letter-spacing: 1px; color: var(--jmi-line); line-height: 1; }
.jmi-stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: var(--global-palette15, #bfa055); white-space: nowrap; }
.jmi-rating b, .jmi-price b { font-size: 16px; color: var(--global-palette3); }
.jmi-muted { color: var(--jmi-muted); font-size: 13.5px; }
.jmi-bad { font-size: 13.5px; color: var(--jmi-warn); font-weight: 600; margin-top: 2px; }
.jmi-offers { font-size: 13.5px; margin-top: 8px; color: var(--jmi-muted); }
.jmi-offers span { white-space: nowrap; }
.jmi-offers .jmi-hit { color: var(--global-palette3); font-weight: 700; }
.jmi-firm .jmi-actions { margin-top: auto; padding-top: 12px; }
.jmi-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.jmi .jmi-btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--jmi-line); background: var(--jmi-card); color: var(--global-palette3); text-decoration: none; box-shadow: none; }
.jmi .jmi-btn:hover { border-color: var(--jmi-accent); color: var(--global-palette3); background: var(--jmi-card); }
.jmi .jmi-btn.jmi-primary, .jmi .jmi-btn.jmi-primary:hover { background: var(--jmi-accent); color: #fff; border-color: var(--jmi-accent); }
.jmi-more { margin-top: 10px; font-size: 14px; }
/* With JS the whole card opens the details panel: it lifts on hover, and "More details" reads as a link with an arrow, not a disclosure. */
.jmi-js .jmi-firm { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.jmi-js .jmi-firm:hover, .jmi-js .jmi-firm:has(summary:focus-visible) { border-color: var(--global-palette5, #948e83); box-shadow: 0 6px 18px rgba(14, 28, 56, .12); transform: translateY(-2px); }
.jmi-js .jmi-more { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--jmi-line); }
.jmi-js .jmi-more summary { list-style: none; display: flex; justify-content: space-between; width: auto; }
.jmi-js .jmi-more summary::-webkit-details-marker { display: none; }
.jmi-js .jmi-more summary::after { content: "→"; content: "→" / ""; transition: transform .15s; }
.jmi-js .jmi-firm:hover .jmi-more summary::after { transform: translateX(3px); }
.jmi-js .jmi-firm:hover .jmi-more summary { text-decoration: underline; text-underline-offset: 3px; }
.jmi-more dl { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--jmi-line); }
.jmi-more dt { color: var(--jmi-muted); font-weight: 400; }
.jmi-more dd { margin: 0; }
.jmi-pl { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.jmi-pl td { padding: 2px 0; vertical-align: top; border: 0; }
.jmi-pl td:last-child { text-align: right; padding-left: 10px; width: 45%; }
.jmi-n { color: var(--jmi-muted); font-size: 12.5px; }
.jmi-empty { color: var(--jmi-muted); text-align: center; padding: 24px 0; }
.jmi-empty[hidden] { display: none; }
.jmi-fix { margin-top: 40px; padding: 20px; border: 1px solid var(--jmi-line); border-radius: 10px; background: var(--global-palette8, #f5f0e8); scroll-margin-top: calc(var(--jmi-top, 0px) + 12px); }
.jmi-fix h2 { margin: 0 0 6px; font-size: 22px; }
.jmi-fix p { margin: 0 0 12px; }
.jmi-fix label, .jmi-fix legend { display: block; font-size: 14px; font-weight: 600; color: var(--global-palette3); margin: 10px 0 4px; }
.jmi-fix fieldset { border: 0; padding: 0; margin: 0; }
.jmi-fix .wpcf7-list-item { display: block; margin: 2px 0; }
.jmi-fix .wpcf7-list-item label { display: inline-flex; gap: 6px; font-weight: 400; margin: 0; }
.jmi-fix input[type=text], .jmi-fix input[type=email], .jmi-fix textarea { width: 100%; font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--jmi-line); background: var(--jmi-card); }
.jmi-fix input[type=submit] { margin-top: 14px; background: var(--jmi-accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; }
.jmi-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--jmi-line); font-size: 13px; color: var(--global-palette4); }
.jmi-unavailable { padding: 20px; border: 1px solid var(--jmi-line); border-radius: 10px; background: var(--jmi-card); }
/* On phones a sticky bar would cover a third of the screen. */
@media (max-width: 600px) { .jmi-bar { position: static; } }
/* The details panel: centered on desktop, a bottom sheet on phones. The dialog has no padding so a
   click on it, rather than its body, is a click on the backdrop. */
.jmi-dlg { width: min(720px, calc(100vw - 32px)); max-width: none; max-height: min(85vh, 900px); max-height: min(85dvh, 900px); padding: 0; border: 0; border-radius: 12px; background: var(--jmi-card); color: var(--global-palette4); box-shadow: 0 20px 60px rgba(14, 28, 56, .35); overflow: hidden; }
.jmi-dlg::backdrop { background: rgba(14, 28, 56, .45); }
html:has(.jmi-dlg[open]) { overflow: hidden; }   /* the page behind the panel stays put */
.jmi-dlg-body { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 26px; box-sizing: border-box; }
.jmi-dlg h3 { margin: 0 40px 0 0; font-size: 22px; line-height: 1.3; }
.jmi .jmi-x { position: absolute; z-index: 1; top: 10px; right: 12px; width: 36px; height: 36px; padding: 0; font-size: 26px; line-height: 1; background: none; border: 0; box-shadow: none; color: var(--global-palette3); cursor: pointer; }
.jmi-dlg .jmi-actions { margin-top: 12px; padding-top: 0; }
.jmi-dlg dl { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--jmi-line); font-size: 14px; }
.jmi-dlg dt { color: var(--jmi-muted); font-weight: 400; }
.jmi-dlg dd { margin: 0; }
@media (max-width: 600px) {
	.jmi-dlg { width: 100vw; max-height: 88vh; max-height: 88dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
	.jmi-dlg-body { padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); }
	.jmi-dlg dl { grid-template-columns: 1fr; gap: 0; }
	.jmi-dlg dd { margin-bottom: 8px; }
}
@media (max-width: 520px) { .jmi-more dl { grid-template-columns: 1fr; gap: 0; } .jmi-more dd { margin-bottom: 8px; } .jmi-firm { padding: 14px; } }
