/* Shared research surfaces: directory, firm profiles, methodology and home. */
:root {
    color-scheme: dark;
    --ih-bg: #0b0e11;
    --ih-surface: #11161b;
    --ih-panel: #171e24;
    --ih-border: #29333d;
    --ih-text: #f2f5f7;
    --ih-muted: #a4b1bd;
    --ih-accent: #a8e3c3;
    --ih-blue: #a5c9ed;
    --ih-amber: #edce91;
    --bg: var(--ih-bg);
    --bg2: var(--ih-surface);
    --text: var(--ih-text);
    --text-primary: var(--ih-text);
    --text-secondary: var(--ih-muted);
    --bg-card: var(--ih-surface);
    --border-color: var(--ih-border);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body.ih-page { margin: 0; background: var(--ih-bg); color: var(--ih-text); font: 15px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ih-page a { color: var(--ih-accent); text-underline-offset: 4px; }
.ih-page button, .ih-page input, .ih-page select, .ih-page textarea { font: inherit; }
.ih-page button, .ih-page a, .ih-page input, .ih-page select, .ih-page textarea, .ih-page summary { -webkit-tap-highlight-color: transparent; }
.ih-page :focus-visible { outline: 2px solid var(--ih-accent); outline-offset: 4px; }
.ih-page .site-header { position: relative; top: auto; left: auto; transform: none; width: calc(100% - 56px); margin: 22px auto 0; max-width: 1192px; background: var(--ih-surface); border-color: var(--ih-border); box-shadow: none; }
.ih-page .site-nav a { color: var(--ih-muted); text-decoration: none; font-size: 13px; }
.ih-page .site-header .logo { color: var(--ih-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.ih-page .site-header .nav-cta { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 13px; border-radius: 6px; color: var(--ih-bg); background: var(--ih-accent); text-decoration: none; font-size: 12px; font-weight: 600; }
.ih-main { max-width: 1248px; margin: auto; padding: 36px 28px 76px; }
.ih-eyebrow { color: var(--ih-accent); font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 12px; }
.ih-muted, .ih-note { color: var(--ih-muted); }
.ih-note { font-size: 13px; }
.ih-page h1, .ih-page h2, .ih-page h3, .ih-page p { margin-top: 0; }
.ih-page h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.13; letter-spacing: -.045em; font-weight: 600; margin-bottom: 16px; overflow-wrap: anywhere; }
.ih-page h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; margin-bottom: 12px; }
.ih-page h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.ih-page p { margin-bottom: 14px; }
.ih-page p:last-child { margin-bottom: 0; }
.ih-breadcrumb { display: flex; gap: 9px; flex-wrap: wrap; font-size: 12px; color: var(--ih-muted); margin: 0 0 30px; }
.ih-breadcrumb a { color: var(--ih-muted); text-decoration: none; }
.ih-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; padding: 12px 0 36px; }
.ih-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ih-monogram { width: 56px; height: 56px; border: 1px solid #416353; background: #16271f; border-radius: 14px; display: grid; place-items: center; color: var(--ih-accent); font: 600 22px ui-monospace, monospace; flex-shrink: 0; }
.ih-identity .ih-eyebrow { margin: 0 0 3px; }
.firm-location { margin: 0; color: var(--ih-muted); font-size: 14px; }
.ih-subtitle { max-width: 660px; color: var(--ih-muted); font-size: 17px; }
.ih-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.ih-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--ih-border); border-radius: 8px; color: var(--ih-text) !important; background: var(--ih-panel); text-decoration: none; font-size: 13px !important; font-weight: 600; cursor: pointer; }
.ih-button:hover { background: #263039; border-color: #56656f; }
.ih-button.primary { background: var(--ih-accent); border-color: var(--ih-accent); color: #10251a !important; }
.ih-button.primary:hover { background: #c5f1d8; }
.ih-button:disabled { opacity: .5; cursor: default; }
.ih-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 9px; border: 1px solid var(--ih-border); border-radius: 5px; font-size: 11px; line-height: 1.5; color: var(--ih-muted); background: var(--ih-surface); }
.ih-page a.ih-badge { text-decoration: none; }
.ih-badge.accent { color: var(--ih-accent); border-color: #375245; background: #14231c; }
.ih-badge.warn { color: var(--ih-amber); border-color: #574b31; background: #211e16; }
.ih-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ih-panel { background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 12px; padding: 24px; min-width: 0; overflow-wrap: anywhere; }
.ih-readiness { position: relative; overflow: hidden; }
.ih-readiness::before { position: absolute; content: ""; top: 0; left: 0; right: 0; height: 2px; background: var(--ih-accent); }
.ih-readiness-value { color: var(--ih-accent); font-size: 52px; line-height: 1.2; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ih-readiness-value small { color: var(--ih-muted); font-size: 17px; letter-spacing: 0; }
.ih-meter { height: 5px; background: #2d373e; overflow: hidden; border-radius: 3px; margin: 13px 0; }
.ih-meter span { display: block; height: 100%; width: var(--score, 0%); background: var(--ih-accent); border-radius: inherit; }
.ih-local-nav { display: flex; gap: 24px; overflow-x: auto; border-top: 1px solid var(--ih-border); border-bottom: 1px solid var(--ih-border); margin-bottom: 34px; padding: 16px 0; scrollbar-width: thin; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.ih-local-nav a { scroll-snap-align: start; }
.ih-local-nav a { white-space: nowrap; color: var(--ih-muted); font-size: 13px; text-decoration: none; }
.ih-local-nav a:hover { color: var(--ih-text); }
.ih-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.ih-section { margin-bottom: 42px; min-width: 0; }
.ih-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.ih-section-heading p { max-width: 620px; }
.ih-section-number { font: 12px ui-monospace, monospace; color: #789082; padding-top: 7px; }
.ih-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ih-score-card { padding: 20px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 10px; }
.ih-score-card h3 { color: var(--ih-muted); font-size: 12px; font-weight: 500; }
.ih-score-value { font-size: 34px; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.ih-score-value small { font-size: 13px; color: var(--ih-muted); letter-spacing: 0; }
.ih-score-card .ih-note { margin-top: 10px; font-size: 12px; }
/* A signal the record does not carry stays on the page in full, but at the
   weight of a gap. It used to render "Not assessed" larger than any real
   score on the page. */
.ih-score-card[data-assessed="no"] { background: transparent; border-style: dashed; }
.ih-score-card[data-assessed="no"] h3 { margin-bottom: 10px; }
.ih-detail { padding: 18px 0; border-bottom: 1px solid var(--ih-border); }
.ih-detail summary { cursor: pointer; color: var(--ih-text); font-size: 14px; }
.ih-detail[open] summary { margin-bottom: 14px; }
.ih-detail ul { padding-left: 20px; margin: 12px 0; color: var(--ih-muted); }
.ih-evidence-list { list-style: none; padding: 0; margin: 0; }
.ih-evidence-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 20px; padding: 14px 0; border-bottom: 1px solid var(--ih-border); }
.ih-evidence-row:first-child { padding-top: 0; }
.ih-evidence-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ih-evidence-label { font-size: 13px; font-weight: 600; }
.ih-evidence-value { grid-column: 1; color: var(--ih-text); font-size: 13px; overflow-wrap: anywhere; }
.ih-evidence-row[data-earned="no"] .ih-evidence-value { color: var(--ih-muted); }
/* Rare by design: the provenance rules that hold for a whole class are stated
   once in .ih-evidence-legend, so a note here means this field is unusual. */
.ih-evidence-note { display: block; margin-top: 5px; padding-left: 10px; border-left: 2px solid var(--ih-amber); color: var(--ih-muted); font-size: 12px; }
.ih-evidence-points { grid-column: 2; grid-row: 1 / span 2; color: var(--ih-accent); font: 12px ui-monospace, monospace; align-self: center; white-space: nowrap; }
.ih-evidence-row[data-earned="no"] .ih-evidence-points { color: var(--ih-muted); }
.ih-evidence-legend { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ih-border); display: grid; gap: 7px; color: var(--ih-muted); font-size: 12px; }
.ih-evidence-legend li { position: relative; padding-left: 14px; }
.ih-evidence-legend li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--ih-border); }
.ih-expectation { padding: 21px 0; border-bottom: 1px solid var(--ih-border); }
.ih-expectation:first-child { padding-top: 0; }
.ih-expectation:last-child { border-bottom: 0; padding-bottom: 0; }
.ih-expectation .ih-badge { margin-bottom: 11px; }
.ih-question-list { counter-reset: question; list-style: none; padding: 0; margin: 0; }
.ih-question-list li { counter-increment: question; position: relative; padding: 15px 0 15px 36px; color: var(--ih-muted); border-bottom: 1px solid var(--ih-border); }
.ih-question-list li::before { content: counter(question, decimal-leading-zero); position: absolute; left: 0; top: 17px; font: 11px ui-monospace, monospace; color: var(--ih-accent); }
.ih-facts { margin: 0; }
.ih-facts dt { color: var(--ih-muted); text-transform: uppercase; font: 10px/1.6 ui-monospace, monospace; letter-spacing: .09em; margin-top: 18px; }
.ih-facts dt:first-child { margin-top: 0; }
.ih-facts dd { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.ih-aside { display: grid; gap: 18px; }
.ih-aside h2 { font-size: 17px; }
.ih-aside .ih-button { width: 100%; }
.ih-callout { padding: 14px 17px; border-left: 2px solid var(--ih-amber); background: #1a1a16; color: #d4c8ad; font-size: 13px; border-radius: 0 6px 6px 0; }
.ih-prompt { width: 100%; min-height: 300px; resize: vertical; border: 1px solid var(--ih-border); border-radius: 8px; background: #0b1014; color: #c1cfda; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace !important; padding: 20px; }
.ih-field { display: block; color: var(--ih-muted); font-size: 12px; margin: 0 0 7px; }
.ih-input { width: 100%; min-height: 44px; border: 1px solid var(--ih-border); border-radius: 7px; background: #0b1014; color: var(--ih-text); padding: 10px 12px; margin-bottom: 16px; }
.ih-copy-status { color: var(--ih-accent); font-size: 12px; min-height: 20px; }
.ih-footer { border-top: 1px solid var(--ih-border); padding: 25px 0 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--ih-muted); font-size: 12px; margin-top: 50px; }
.ih-footer div { display: flex; gap: 12px 20px; flex-wrap: wrap; min-width: 0; }
.ih-footer a { color: var(--ih-muted); }
.ih-page .peer-reviews { margin-top: 0 !important; background: var(--ih-surface) !important; }
.ih-page .claim-line { color: var(--ih-muted); font-size: 13px; }
.ih-page .scores-label { color: var(--ih-text); font-size: 18px; font-weight: 600; }
.ih-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ih-method-table { width: 100%; border-collapse: collapse; text-align: left; }
.ih-method-table caption { text-align: left; color: var(--ih-muted); font-size: 12px; margin-bottom: 16px; }
.ih-method-table th, .ih-method-table td { padding: 10px 0; border-bottom: 1px solid var(--ih-border); font-size: 13px; }
.ih-method-table td:last-child, .ih-method-table th:last-child { text-align: right; }
.ih-home-hero { padding: 58px 0 40px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 66px; align-items: center; }
.ih-home-hero h1 { font-size: clamp(40px, 5vw, 68px); }
.ih-home-hero h1 em { font-style: normal; color: var(--ih-accent); }
.ih-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 0; margin: 10px 0 45px; border-top: 1px solid var(--ih-border); border-bottom: 1px solid var(--ih-border); gap: 20px; }
.ih-stat-strip strong { display: block; font-size: 27px; font-variant-numeric: tabular-nums; font-weight: 500; }
.ih-stat-strip span { font-size: 12px; color: var(--ih-muted); }
.ih-home-search { display: flex; gap: 8px; margin-top: 24px; }
.ih-home-search input { margin: 0; flex: 1; min-width: 0; }
.ih-preview-list { list-style: none; padding: 0; margin: 16px 0 0; }
.ih-preview-list li { padding: 15px 0; border-top: 1px solid var(--ih-border); }
.ih-preview-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; color: var(--ih-text); }
.ih-preview-list small { display: block; color: var(--ih-muted); font-size: 12px; }
.ih-page .ih-preview-list p { margin: 0; }
@media (max-width: 1000px) {
    .ih-profile-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
    .ih-score-grid { gap: 8px; }
    .ih-score-card { padding: 16px; }
    .ih-home-hero { gap: 30px; }
}
@media (max-width: 760px) {
    .ih-page .site-header { margin: 12px 16px 0; width: auto; }
    .ih-main { padding: 25px 20px 50px; }
    .ih-hero, .ih-home-hero { grid-template-columns: 1fr; gap: 24px; }
    .ih-hero { padding-bottom: 26px; }
    .ih-home-hero { padding-top: 25px; }
    .ih-readiness { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 22px; }
    .ih-readiness-value { grid-row: 1 / span 2; grid-column: 2; font-size: 40px; }
    .ih-readiness .ih-meter, .ih-readiness .ih-note { grid-column: 1 / -1; }
    .ih-profile-grid { display: flex; flex-direction: column; }
    .ih-profile-grid > * { width: 100%; }
    .ih-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ih-columns { grid-template-columns: 1fr; }
    .ih-section { margin-bottom: 30px; }
    .ih-panel { padding: 20px; }
    /* Fade the right edge so a clipped item reads as "more this way". */
    .ih-local-nav { gap: 22px; margin-bottom: 26px; padding-right: 28px; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
    .ih-local-nav:not(:hover) { scrollbar-width: none; }
    .ih-stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 450px) {
    .ih-main { padding-left: 16px; padding-right: 16px; }
    .ih-score-grid { grid-template-columns: 1fr; }
    .ih-score-card { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: start; }
    .ih-score-card h3 { margin-bottom: 5px; }
    .ih-score-value { grid-column: 2; grid-row: 1 / span 2; font-size: 28px; }
    .ih-score-card .ih-meter, .ih-score-card .ih-note { grid-column: 1 / -1; }
    .ih-aside { grid-template-columns: 1fr; }
    .ih-home-search { flex-wrap: wrap; }
    .ih-home-search button { width: 100%; }
    .ih-actions .ih-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print {
    :root { color-scheme: light; }
    body.ih-page { background: #fff; color: #111; }
    .site-header, .ih-local-nav, .ih-actions, .ih-footer, .ih-prompt-controls { display: none !important; }
    .ih-main { max-width: none; padding: 0; }
    .ih-panel, .ih-score-card { background: #fff; color: #111; break-inside: avoid; }
    .ih-profile-grid { display: block; }
    .ih-muted, .ih-note, .ih-evidence-value, .ih-question-list li { color: #444; }
    .ih-page a { color: #174d31; }
}
