.detail-page {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0 30px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: #6b7787;
  font-size: 12px;
}

.detail-breadcrumb a:hover { color: var(--navy-800); text-decoration: underline; }
.detail-breadcrumb strong { color: var(--navy-900); }

.detail-shell {
  display: grid;
  grid-template-columns: 202px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.detail-related {
  position: sticky;
  top: 14px;
  min-width: 0;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--navy-900);
  font-size: 16px;
  line-height: 1.3;
}

.detail-panel h2 img { width: 22px; height: 22px; object-fit: contain; }
.detail-related-accordion { display: block; }
.detail-related-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.detail-related-summary::-webkit-details-marker { display: none; }
.detail-related-summary::marker { content: ""; }
.detail-related-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--navy-900); font-size: 16px; font-weight: 900; line-height: 1.3; }
.detail-related-title img { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.detail-related-chevron { display: inline-block; color: var(--navy-900); font-size: 22px; font-weight: 900; line-height: .8; transition: transform 150ms ease; }
.detail-related-accordion[open] .detail-related-chevron { transform: rotate(180deg); }
.detail-related-summary:focus-visible { outline: 2px solid #315f91; outline-offset: 3px; border-radius: 4px; }
.detail-related-count { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; color: #315f91; background: #edf4fb; border: 1px solid #c8d9ea; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.detail-related-accordion:not([open]) .detail-related-summary { min-height: 38px; }

.related-pest-list { display: grid; gap: 9px; margin-top: 11px; }

.related-pest {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: 7px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.related-pest:hover { border-color: var(--navy-800); box-shadow: 0 4px 12px rgba(20,50,83,.12); transform: translateY(-1px); }
.related-pest img { width: 100%; height: 82px; object-fit: cover; }
.related-pest strong { display: block; padding: 7px 8px 2px; color: #26364a; font-size: 13px; }
.related-risk { display: inline-block; margin: 0 8px 8px; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.related-risk--risk-low { color: #31712d; background: #e3f2de; }
.related-risk--risk-medium { color: #7c6b00; background: #fff1aa; }
.related-risk--risk-high { color: #c75f00; background: #ffe0c3; }
.related-risk--risk-critical { color: #c71924; background: #ffd9dd; }
.detail-prototype-note { margin: 12px 2px 2px; color: #7b8794; font-size: 10px; line-height: 1.45; }

.detail-content { min-width: 0; display: grid; gap: 12px; }
.detail-hero-card,
.detail-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(20,50,83,.045);
}

.detail-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) 188px 160px;
  gap: 12px 18px;
  align-items: center;
  padding: 18px 18px 14px;
}
.detail-hero-card--has-support { grid-template-columns: minmax(0, 1.2fr) minmax(210px, .72fr) 188px 160px; }

.detail-hero-main { min-width: 0; }
.detail-hero-support { min-width: 0; display: grid; align-content: center; gap: 5px; padding: 13px 15px; background: #f7fafc; border: 1px solid #c7d5e2; border-radius: 7px; }
.detail-hero-support > span { color: #58708a; font-size: 11px; font-weight: 900; }
.detail-hero-support strong { overflow: hidden; color: var(--navy-900); font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero-support small { color: #566a7e; font-size: 11px; line-height: 1.5; }
.detail-hero-support a { display: flex; align-items: center; justify-content: space-between; min-height: 34px; margin-top: 3px; padding: 6px 10px; color: #fff; background: #b5222b; border-radius: 4px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.detail-hero-support a span { font-size: 16px; line-height: .8; }
.detail-hero-support a:hover { background: #951a22; }
.detail-eyebrow { margin: 0 0 2px; color: var(--navy-800); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.detail-hero-main h1 { margin: 0; color: #0d1622; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(32px, 4vw, 48px); line-height: 1.13; letter-spacing: .04em; }
.detail-scientific { margin: 2px 0 5px; color: #566273; font-family: Georgia, serif; font-size: 16px; font-style: italic; }
.detail-type-label { margin: 0; color: #27374b; font-weight: 800; }
.detail-fact-strip { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 13px; color: #586678; font-size: 12px; }
.detail-fact-strip span { display: inline-flex; align-items: baseline; gap: 5px; }
.detail-fact-strip b { color: var(--navy-900); font-size: 11px; }

.detail-risk-panel { position: relative; display: grid; justify-items: center; align-content: center; min-height: 176px; padding: 11px 8px 10px; text-align: center; border-left: 1px solid #edf0f4; border-right: 1px solid #edf0f4; }
.detail-risk-panel > span { color: var(--risk-color, var(--navy-900)); font-size: 11px; font-weight: 900; }
.detail-risk-panel > span small { font-size: 9px; font-weight: 700; }
.detail-risk-meter { display: grid; justify-items: center; gap: 8px; margin-top: 8px; }
.detail-risk-value { display: inline-flex; align-items: baseline; justify-content: center; min-width: 104px; padding: 6px 12px 7px; color: var(--risk-color, var(--navy-900)); background: #fff; border: 2px solid currentColor; border-radius: 6px; box-shadow: 0 1px 2px rgba(20,50,83,.08); font-size: 38px; line-height: .95; }
.detail-risk-value small { margin-left: 4px; color: #1e2d40; font-size: 15px; }
.detail-risk-meter > i { display: block; width: 120px; height: 60px; margin: 0; border-radius: 120px 120px 0 0; background: conic-gradient(from 270deg at 50% 100%, var(--risk-color) 0 var(--risk-angle), #d7dde4 var(--risk-angle) 180deg, transparent 180deg); opacity: .96; }
.detail-risk-meter > i::after { content: ""; display: block; width: 84px; height: 42px; margin: 18px auto 0; border-radius: 84px 84px 0 0; background: #fff; }
.detail-risk-panel > b { margin-top: 8px; color: var(--risk-color, var(--navy-900)); font-size: 12px; }
.risk-low { --risk-color: var(--green); }
.risk-medium { --risk-color: #aa9100; }
.risk-high { --risk-color: var(--orange); }
.risk-critical { --risk-color: var(--red); }

.detail-status-badge { display: grid; justify-items: center; gap: 3px; padding: 13px 9px; color: var(--risk-color, var(--red)); border: 2px solid currentColor; border-radius: 8px; }
.detail-status-badge img { width: 28px; height: 28px; object-fit: contain; filter: saturate(1.15); }
.detail-status-badge strong { font-size: 19px; line-height: 1.1; }
.detail-status-badge small { font-size: 10px; font-weight: 800; }

.detail-hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 11px 0 1px; border-top: 1px solid #e2e7ed; color: #3b4c61; font-size: 12px; }
.detail-hero-meta span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.detail-hero-meta img { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.detail-hero-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-cta { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 17px; border-radius: 5px; font-weight: 900; white-space: nowrap; }
.detail-cta span { font-size: 22px; line-height: .7; }
.detail-cta--primary { color: #fff; background: #cf1821; }
.detail-cta--primary:hover { background: #ab1119; }
.detail-cta--secondary { color: var(--navy-900); background: #fff; border: 2px solid #7992ae; }
.detail-cta--secondary:hover { background: #f1f5f9; border-color: var(--navy-800); }

.detail-feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; }
.detail-feature-grid--middle { grid-template-columns: 1fr; }
.detail-feature-grid--three { grid-template-columns: minmax(0, 1.15fr) minmax(0, .92fr) minmax(0, 1.08fr); }
.detail-feature-grid--bottom { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, 1.1fr); }
.detail-feature-grid--bottom--no-articles .provider-detail-panel { grid-column: 2 / -1; }
.detail-panel { padding: 13px 14px; }
.detail-panel h2 { padding-bottom: 10px; border-bottom: 1px solid #e2e7ed; font-size: 15px; }

.point-panel-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(180px, 1.05fr); gap: 12px; align-items: center; padding-top: 11px; }
.point-panel-body ul, .prevention-panel ul, .method-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: #344457; font-size: 12px; }
.point-panel-body li, .prevention-panel li, .method-card li { position: relative; padding-left: 18px; }
.point-panel-body li::before, .prevention-panel li::before, .method-card li::before { content: "✓"; position: absolute; left: 0; color: var(--navy-800); font-weight: 900; }
.point-panel-body > img { width: 100%; height: 142px; object-fit: cover; border-radius: 6px; }
.point-panel-body > .entity-image-shell { width: 100%; height: 142px; border-radius: 6px; }

.month-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); overflow: hidden; margin-top: 11px; border: 1px solid var(--line-strong); border-radius: 5px; }
.month-cell { min-width: 0; min-height: 79px; padding: 6px 3px; text-align: center; border-right: 1px solid #dbe1e8; background: #fff; }
.month-cell:last-child { border-right: 0; }
.month-cell b { display: block; padding-bottom: 5px; color: #27384c; border-bottom: 1px solid #edf0f3; font-size: 11px; }
.month-cell span { display: block; margin-top: 7px; color: #596777; font-size: 9px; line-height: 1.35; }
.month-cell--normal { background: #fffaf0; }
.month-cell--peak { background: #d71925; }
.month-cell--peak b, .month-cell--peak span { color: #fff; }
.month-cell--peak b { border-color: rgba(255,255,255,.3); }
.detail-season-panel > p { margin: 10px 0 0; color: #405166; font-size: 12px; line-height: 1.65; }

.comparison-panel { overflow: hidden; }
.comparison-table { min-width: 650px; margin-top: 10px; overflow: hidden; border: 1px solid #d7dee6; border-radius: 6px; }
.comparison-row { display: grid; grid-template-columns: 78px repeat(3, minmax(0, 1fr)); min-height: 36px; border-bottom: 1px solid #e2e7ed; }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row > * { min-width: 0; padding: 7px 9px; border-right: 1px solid #e2e7ed; font-size: 11px; line-height: 1.45; }
.comparison-row > *:last-child { border-right: 0; }
.comparison-row > b { color: #31435a; background: #eef2f6; font-weight: 900; }
.comparison-row--head > strong { color: #b5232b; background: #fff1f1; text-align: center; font-size: 13px; }
.comparison-row--head > strong:nth-child(3) { color: #8a5729; background: #fff7ed; }
.comparison-row--head > strong:nth-child(4) { color: #447842; background: #eef8ec; }
.comparison-row--head small { display: block; margin-top: 2px; font-size: 9px; font-weight: 700; }
.comparison-row > img { width: 100%; height: 78px; object-fit: cover; background: #eef1f2; }
.comparison-row > span { color: #405166; }

.danger-panel { border-color: #e0afb3; }
.danger-panel h2 { color: #b51621; }
.danger-lead { margin: 10px 0 0; padding: 8px 10px; color: #fff; background: #d91b25; border-radius: 4px; font-size: 11px; font-weight: 800; }
.danger-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 11px; }
.danger-columns > div + div { padding-left: 11px; border-left: 1px solid #e4d2d4; }
.danger-columns b { color: #96303a; font-size: 11px; }
.danger-columns ul { display: grid; gap: 5px; margin: 6px 0 0; padding: 0 0 0 15px; color: #465466; font-size: 10px; }
.response-panel { border-color: #d7abb0; }
.response-panel h2 { color: #a8212b; }
.numbered-icon { width: 22px; height: 22px; display: inline-grid; place-items: center; color: #fff; background: #d31b25; border-radius: 4px; font-size: 13px; }
.response-panel ol { display: grid; gap: 8px; margin: 11px 0 0; padding: 0; list-style: none; counter-reset: response; }
.response-panel li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 7px; align-items: center; color: #465466; font-size: 11px; line-height: 1.4; }
.response-panel li b { width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: #ce1a25; border-radius: 4px; font-size: 12px; }
.methods-panel h2 { color: var(--navy-900); }
.method-card { margin-top: 9px; padding: 9px 10px; background: #f0f6fb; border: 1px solid #c7d9e8; border-radius: 5px; }
.method-card--provider { background: #fff2f2; border-color: #e4b9bd; }
.method-card h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 13px; }
.method-card--provider h3 { color: #ba1d28; }
.method-card h3 small { display: block; margin-top: 1px; color: #687687; font-size: 9px; font-weight: 500; }
.method-card ul { gap: 4px; font-size: 10px; }
.method-card li { padding-left: 15px; }

.prevention-panel { position: relative; min-height: 205px; border-color: #bdd8bd; }
.prevention-panel h2 { color: #34703d; }
.prevention-panel ul { width: 100%; margin-top: 11px; gap: 6px; font-size: 11px; }
.prevention-panel li::before { color: #4d963f; }
.provider-detail-panel h2 { color: var(--navy-900); }
.detail-provider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 10px; }
.provider-detail-panel > .detail-provider-grid { max-height: 318px; overflow-y: auto; overscroll-behavior: contain; padding-right: 7px; scrollbar-width: thin; scrollbar-color: #9eafc1 #edf1f5; }
.detail-provider { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 8px; min-width: 0; padding: 8px; background: #fff; border: 1px solid #d8e0e8; border-radius: 5px; }
.detail-provider > img { width: 43px; height: 48px; object-fit: contain; }
.detail-provider > div { min-width: 0; display: grid; align-content: start; gap: 2px; }
.detail-provider strong { color: #2c3e55; font-size: 11px; line-height: 1.3; }
.detail-provider small { overflow: hidden; color: #627082; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-provider-actions { grid-column: 1 / -1; display: grid !important; gap: 4px !important; }
.detail-provider-actions a { min-height: 32px; display: grid; place-items: center; padding: 5px 7px; color: #fff; background: var(--navy-900); border-radius: 3px; font-size: 11px; font-weight: 800; text-align: center; white-space: nowrap; }
.detail-provider-actions a:hover { background: var(--navy-800); }
.detail-provider-actions .detail-provider-cta { color: #fff; background: #ad3430; }
.detail-provider-actions .detail-provider-cta:hover { background: #c14540; }
.detail-article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; }
.detail-article-grid a { min-width: 0; overflow: hidden; padding-bottom: 6px; background: #fff; border: 1px solid #d8e0e8; border-radius: 5px; }
.detail-article-grid a:hover { border-color: var(--navy-800); }
.detail-article-grid img { width: 100%; height: 62px; object-fit: cover; }
.detail-article-grid strong { display: block; padding: 5px 6px 2px; color: #314257; font-size: 10px; line-height: 1.35; }
.detail-article-grid small { display: block; padding: 0 6px; color: #7a8592; font-size: 9px; }

@media (max-width: 1180px) {
  .detail-page { width: min(100% - 28px, 1040px); }
  .detail-shell { grid-template-columns: 180px minmax(0, 1fr); }
  .detail-hero-card { grid-template-columns: minmax(0, 1fr) 170px 142px; gap: 11px; }
  .detail-hero-card--has-support { grid-template-columns: minmax(0, 1fr) minmax(185px, .72fr) 170px 142px; }
  .detail-feature-grid--three, .detail-feature-grid--bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .methods-panel, .article-detail-panel { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .detail-page { width: min(100% - 24px, 720px); padding-top: 10px; }
  .detail-shell { grid-template-columns: 1fr; }
  .detail-related { position: static; }
  .related-pest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-pest img { height: 70px; }
  .detail-prototype-note { display: none; }
  .detail-hero-card { grid-template-columns: minmax(0, 1fr) 150px; }
  .detail-hero-card--has-support { grid-template-columns: minmax(0, 1fr) 150px; }
  .detail-hero-support { grid-column: 1 / -1; grid-row: 2; }
  .detail-status-badge { grid-column: 2; grid-row: 1; }
  .detail-risk-panel { grid-column: 2; grid-row: 1; margin-top: 158px; min-height: 0; padding: 8px; border: 0; }
  .detail-risk-panel > span { font-size: 10px; }
  .detail-risk-meter { gap: 4px; margin-top: 5px; }
  .detail-risk-meter > i { display: none; }
  .detail-risk-value { min-width: 78px; padding: 4px 8px 5px; border-width: 1px; font-size: 30px; }
  .detail-risk-value small { font-size: 12px; }
  .detail-risk-panel > b { font-size: 11px; }
  .detail-hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-feature-grid { grid-template-columns: 1fr; }
  .detail-feature-grid--bottom--no-articles .provider-detail-panel { grid-column: auto; }
  .detail-feature-grid--three, .detail-feature-grid--bottom { grid-template-columns: 1fr; }
  .methods-panel, .article-detail-panel { grid-column: auto; }
  .detail-provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .detail-page { width: calc(100% - 16px); }
  .detail-breadcrumb { overflow: hidden; gap: 6px; font-size: 10px; white-space: nowrap; }
  .detail-breadcrumb a, .detail-breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
  .related-pest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero-card { grid-template-columns: 1fr; padding: 15px 13px 13px; }
  .detail-hero-card--has-support { grid-template-columns: 1fr; }
  .detail-hero-support { grid-column: auto; grid-row: auto; }
  .detail-status-badge, .detail-risk-panel { grid-column: auto; grid-row: auto; }
  .detail-status-badge { width: min(100%, 210px); justify-self: start; }
  .detail-risk-panel { margin-top: 0; justify-self: start; justify-items: start; align-content: start; gap: 4px; padding: 0; border: 0; }
  .detail-risk-meter { margin-top: 0; }
  .detail-risk-panel > b { margin-top: 0; }
  .detail-hero-meta, .detail-hero-actions { grid-column: auto; }
  .detail-hero-meta { grid-template-columns: 1fr; gap: 7px; }
  .detail-hero-actions { grid-template-columns: 1fr; }
  .point-panel-body { grid-template-columns: 1fr; }
  .point-panel-body > img { height: 180px; }
  .point-panel-body > .entity-image-shell { height: 180px; }
  .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .month-cell:nth-child(4n) { border-right: 1px solid #d8e0e8; }
  .month-cell:nth-child(n+5) { border-top: 1px solid #dbe1e8; }
  .comparison-panel { overflow-x: auto; }
  .comparison-table { min-width: 610px; }
  .danger-columns, .detail-provider-grid { grid-template-columns: 1fr; }
  .provider-detail-panel > .detail-provider-grid { max-height: 410px; }
  .danger-columns > div + div { padding: 10px 0 0; border-top: 1px solid #e4d2d4; border-left: 0; }
  .detail-article-grid { grid-template-columns: repeat(3, minmax(130px, 1fr)); overflow-x: auto; }
  .detail-article-grid a { min-width: 130px; }
  .site-footer { margin-top: 0; }
}

/* Readability pass: generated raster icons and larger information modules. */
.detail-page { width: min(1840px, calc(100% - 32px)); }
.detail-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
.detail-content { gap: 14px; }

.detail-panel h2 > img,
.detail-related h2 > img,
.detail-hero-meta img,
.detail-status-badge > img { display: none; }

.detail-panel h2::before,
.detail-related h2::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-block;
  background-image: url("images/pest-icon-sheet.png");
  background-repeat: no-repeat;
  background-size: 48px 72px;
  background-position: 0 0;
}
.detail-panel h2:has(img[src*="search"])::before { background-position: 0 0; }
.detail-panel h2:has(img[src*="calendar"])::before { background-position: -24px 0; }
.detail-panel h2:has(img[src*="scale"])::before { background-position: 0 -24px; }
.detail-panel h2:has(img[src*="warning"])::before { background-position: -24px -24px; }
.detail-panel h2:has(img[src*="tools"])::before { background-position: 0 -48px; }
.detail-panel h2:has(img[src*="shield"])::before { background-position: -24px -48px; }
.detail-panel h2:has(img[src*="briefcase"])::before,
.detail-panel h2:has(img[src*="book"])::before { background-image: url("images/pest-detail-utility-sheet.png"); background-size: 120px 24px; }
.detail-panel h2:has(img[src*="briefcase"])::before { background-position: -72px 0; }
.detail-panel h2:has(img[src*="book"])::before { background-position: -96px 0; }
.detail-related h2::before { background-image: url("images/pest-detail-utility-sheet.png"); background-size: 120px 24px; background-position: 0 0; }
.detail-panel h2::before,
.detail-related h2::before { transform: scale(1.18); }
.response-panel h2::before { display: none; }

.detail-hero-meta span::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  background-image: url("images/pest-detail-utility-sheet.png");
  background-repeat: no-repeat;
  background-size: 110px 22px;
  background-position: 0 0;
}
.detail-hero-meta span:has(img[src*="ruler-triangle"])::before { background-position: -22px 0; }
.detail-hero-meta span:has(img[src*="map-marker"])::before { background-position: -44px 0; }
.detail-hero-meta span:has(img[src*="briefcase"])::before { background-position: -66px 0; }
.detail-hero-meta span:has(img[src*="book"])::before { background-position: -88px 0; }
.detail-hero-meta span:has(img[src*="bug"])::before { background-position: 0 0; }

.detail-status-badge::before {
  content: "";
  width: 32px;
  height: 32px;
  display: block;
  background-image: url("images/pest-icon-sheet.png");
  background-repeat: no-repeat;
  background-size: 64px 96px;
  background-position: -32px -32px;
}

.month-grid {
  grid-template-columns: repeat(12, minmax(104px, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 12px;
  padding-bottom: 8px;
  border: 0;
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: #9eafc1 #edf1f5;
}
.month-cell {
  min-height: 122px;
  padding: 10px 8px;
  border: 1px solid #d8e0e8;
  border-right: 0;
}
.month-cell:first-child { border-left: 1px solid #d8e0e8; border-radius: 6px 0 0 6px; }
.month-cell:last-child { border-right: 1px solid #d8e0e8; border-radius: 0 6px 6px 0; }
.month-cell b { padding-bottom: 8px; font-size: 14px; }
.month-cell span { min-height: 61px; margin-top: 10px; font-size: 11px; line-height: 1.5; }
.detail-season-panel > p { font-size: 13px; }

.comparison-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 12px;
  padding: 2px 2px 8px;
}
.comparison-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5dde6;
  border-radius: 8px;
}
.comparison-card:nth-child(1) { border-color: #e5b9bd; }
.comparison-card:nth-child(2) { border-color: #e3ceb1; }
.comparison-card:nth-child(3) { border-color: #bfd8bd; }
.comparison-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  background: #fff3f3;
}
.comparison-card:nth-child(2) header { background: #fff8ee; }
.comparison-card:nth-child(3) header { background: #f0f9ee; }
.comparison-card header span { display: block; color: #6d7885; font-size: 10px; font-weight: 800; }
.comparison-card header h3 { margin: 2px 0 0; color: #263a54; font-size: 20px; }
.comparison-card header > strong { color: #be252e; font-size: 14px; white-space: nowrap; }
.comparison-card:nth-child(2) header > strong { color: #a96d28; }
.comparison-card:nth-child(3) header > strong { color: #4b8148; }
.comparison-card header > strong small { font-size: 10px; }
.comparison-card-image { width: 100%; height: 155px; object-fit: cover; }
.comparison-card > .entity-image-shell { width: 100%; height: 155px; }
.comparison-card dl { margin: 0; }
.comparison-card dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 58px; border-top: 1px solid #e1e7ed; }
.comparison-card dt, .comparison-card dd { margin: 0; padding: 10px 11px; font-size: 13px; line-height: 1.45; }
.comparison-card dt { color: #30445d; background: #eef3f7; font-weight: 900; }
.comparison-card dd { color: #46576a; }
.comparison-card dl { flex: 1; }
.comparison-card-link { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin: 12px; padding: 8px 12px; color: #fff; background: var(--navy-900); border-radius: 5px; font-size: 14px; font-weight: 900; text-decoration: none; transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.comparison-card-link span { font-size: 22px; line-height: .75; }
.comparison-card-link:hover { background: var(--navy-800); box-shadow: 0 2px 5px rgba(20,50,83,.18); transform: translateY(-1px); }
.comparison-card-link:focus-visible { outline: 2px solid #315f91; outline-offset: 2px; }

.detail-feature-grid--three,
.detail-feature-grid--bottom { align-items: start; }
.danger-lead { font-size: 13px; line-height: 1.55; }
.danger-columns { gap: 16px; }
.danger-columns b, .danger-columns ul { font-size: 12px; line-height: 1.55; }
.response-panel ol { gap: 10px; }
.response-panel li { font-size: 13px; line-height: 1.5; }
.response-panel li b { width: 28px; height: 28px; font-size: 13px; }
.method-card h3 { font-size: 15px; }
.method-card ul { font-size: 12px; line-height: 1.55; }
.prevention-panel ul { font-size: 13px; line-height: 1.5; }
.detail-provider strong { font-size: 12px; }
.detail-provider small { font-size: 10px; }
.detail-article-grid strong { font-size: 12px; }

@media (max-width: 1180px) {
  .detail-page { width: calc(100% - 24px); max-width: none; }
}
@media (max-width: 980px) {
  .comparison-cards { grid-template-columns: 1fr; }
  .comparison-card { min-width: 0; }
}
@media (max-width: 860px) {
  .detail-shell { grid-template-columns: 1fr; }
  .detail-related { position: static; }
}
@media (max-width: 620px) {
  .detail-page { width: calc(100% - 16px); }
  .month-grid { grid-template-columns: repeat(12, minmax(104px, 1fr)); }
  .month-cell:nth-child(4n) { border-right: 1px solid #d8e0e8; }
  .month-cell:nth-child(n+5) { border-top: 1px solid #d8e0e8; }
  .month-cell:first-child { border-left: 1px solid #d8e0e8; }
  .month-cell:last-child { border-right: 1px solid #d8e0e8; }
  .comparison-card header h3 { font-size: 19px; }
  .comparison-card-image { height: 180px; }
}

/* Full-page typography pass: make explanatory copy the primary visual layer. */
.detail-page { font-size: 16px; }
.detail-breadcrumb { min-height: 36px; font-size: 14px; }
.detail-related h2 { font-size: 18px; }
.related-pest strong { padding: 9px 10px 3px; font-size: 16px; }
.related-risk { margin: 0 10px 10px; padding: 4px 8px; font-size: 13px; }
.detail-prototype-note { font-size: 12px; line-height: 1.6; }
.detail-related-count { font-size: 12px; }
.detail-eyebrow { font-size: 13px; }
.detail-scientific { font-size: 19px; }
.detail-type-label { font-size: 17px; }
.detail-fact-strip { gap: 8px 18px; font-size: 14px; line-height: 1.6; }
.detail-fact-strip b { font-size: 13px; }
.detail-risk-panel > span { font-size: 13px; }
.detail-risk-panel > span small { font-size: 11px; }
.detail-risk-value { min-width: 112px; padding: 7px 13px 8px; font-size: 44px; }
.detail-risk-value small { font-size: 17px; }
.detail-risk-panel > b { font-size: 14px; }
.detail-status-badge strong { font-size: 22px; }
.detail-status-badge small { font-size: 12px; }
.detail-hero-meta { gap: 10px; padding: 13px 0 3px; font-size: 14px; line-height: 1.55; }
.detail-cta { min-height: 52px; padding: 8px 19px; font-size: 17px; }
.detail-panel { padding: 16px 17px; }
.detail-panel h2 { padding-bottom: 13px; font-size: 18px; }
.point-panel-body { gap: 16px; padding-top: 14px; }
.point-panel-body ul, .prevention-panel ul, .method-card ul { gap: 10px; font-size: 15px; line-height: 1.7; }
.point-panel-body li, .prevention-panel li, .method-card li { padding-left: 21px; }
.point-panel-body > img { height: 168px; }
.point-panel-body > .entity-image-shell { height: 168px; }
.month-cell { min-height: 150px; padding: 14px 12px; }
.month-cell b { padding-bottom: 10px; font-size: 16px; }
.month-cell span { min-height: 78px; margin-top: 12px; font-size: 14px; line-height: 1.65; }
.detail-season-panel > p { margin-top: 13px; font-size: 15px; line-height: 1.8; }
.comparison-card header { padding: 14px 15px; }
.comparison-card header span { font-size: 12px; }
.comparison-card header h3 { font-size: 24px; }
.comparison-card header > strong { font-size: 17px; }
.comparison-card header > strong small { font-size: 12px; }
.comparison-card-image { height: 195px; }
.comparison-card > .entity-image-shell { height: 195px; }
.comparison-card dl > div { grid-template-columns: 102px minmax(0, 1fr); min-height: 70px; }
.comparison-card dt, .comparison-card dd { padding: 12px 13px; font-size: 15px; line-height: 1.6; }
.danger-lead { margin-top: 13px; padding: 11px 13px; font-size: 15px; line-height: 1.65; }
.danger-columns { gap: 19px; margin-top: 14px; }
.danger-columns b, .danger-columns ul { font-size: 14px; line-height: 1.7; }
.danger-columns ul { margin-top: 8px; }
.response-panel ol { gap: 12px; margin-top: 14px; }
.response-panel li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.65; }
.response-panel li b { width: 30px; height: 30px; font-size: 14px; }
.method-card { margin-top: 12px; padding: 12px 13px; }
.method-card h3 { margin-bottom: 8px; font-size: 18px; }
.method-card h3 small { font-size: 13px; }
.method-card ul { gap: 7px; font-size: 14px; }
.prevention-panel ul { width: 100%; margin-top: 14px; gap: 9px; font-size: 15px; }
.detail-provider-grid { gap: 12px; padding-top: 13px; }
.detail-provider { gap: 10px; padding: 11px; }
.detail-provider strong { font-size: 14px; line-height: 1.4; }
.provider-stars { font-size: 13px; }
.detail-provider small { font-size: 12px; line-height: 1.5; }
.detail-provider-actions a { min-height: 34px; font-size: 12px; }
.detail-article-grid { gap: 10px; padding-top: 13px; }
.detail-article-grid strong { padding: 7px 8px 3px; font-size: 14px; line-height: 1.5; }
.detail-article-grid small { padding: 0 8px; font-size: 12px; }
.detail-page + .site-footer .footer-brand strong { font-size: 21px; }
.detail-page + .site-footer .footer-brand small,
.detail-page + .site-footer .footer-brand p,
.detail-page + .site-footer .footer-links,
.detail-page + .site-footer .footer-links strong,
.detail-page + .site-footer .footer-links strong { font-size: 17px; }

@media (max-width: 860px) {
  .detail-breadcrumb { font-size: 13px; }
  .detail-hero-meta { font-size: 14px; }
  .detail-cta { font-size: 16px; }
}
@media (max-width: 620px) {
  .detail-page { font-size: 15px; }
  .detail-breadcrumb { font-size: 12px; }
  .detail-related h2 { font-size: 17px; }
  .related-pest strong { font-size: 15px; }
  .detail-scientific { font-size: 18px; }
  .detail-type-label { font-size: 16px; }
  .detail-fact-strip { font-size: 13px; }
  .detail-panel { padding: 14px 13px; }
  .detail-panel h2 { font-size: 17px; }
  .point-panel-body ul, .prevention-panel ul, .method-card ul { font-size: 14px; }
  .point-panel-body > img { height: 190px; }
  .point-panel-body > .entity-image-shell { height: 190px; }
  .month-cell { min-height: 154px; }
  .comparison-card header h3 { font-size: 22px; }
  .comparison-card-image { height: 205px; }
  .comparison-card > .entity-image-shell { height: 205px; }
  .comparison-card dt, .comparison-card dd { font-size: 14px; }
  .provider-detail-panel > .detail-provider-grid { max-height: 390px; }
  .danger-lead { font-size: 14px; }
  .danger-columns b, .danger-columns ul,
  .response-panel li, .method-card ul { font-size: 14px; }
  .prevention-panel ul { width: 100%; }
}

/* Generated raster icons: use individual transparent assets to preserve each icon's aspect ratio. */
.detail-panel h2::before,
.detail-related h2::before,
.detail-status-badge::before,
.detail-hero-meta span::before { display: none !important; content: none !important; }

.detail-panel h2 > img,
.detail-related h2 > img { display: block !important; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.detail-hero-meta img { display: block !important; width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; }
.detail-status-badge > img { display: block !important; width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }

.detail-panel h2 > img[src*="search"] { content: url("images/detail-icon-search.png"); }
.detail-panel h2 > img[src*="calendar"] { content: url("images/detail-icon-calendar.png"); }
.detail-panel h2 > img[src*="scale"] { content: url("images/detail-icon-scale.png"); }
.detail-panel h2 > img[src*="warning"] { content: url("images/detail-icon-warning.png"); }
.detail-panel h2 > img[src*="tools"] { content: url("images/detail-icon-tools.png"); }
.detail-panel h2 > img[src*="shield"] { content: url("images/detail-icon-shield.png"); }
.detail-panel h2 > img[src*="briefcase"] { content: url("images/detail-icon-briefcase.png"); }
.detail-panel h2 > img[src*="book"] { content: url("images/detail-icon-book.png"); }
.detail-related h2 > img[src*="bug"],
.detail-related h2 > img[src*="insect"] { content: url("images/detail-icon-insect.png"); }

.detail-hero-meta img[src*="ruler"] { content: url("images/detail-icon-ruler.png"); }
.detail-hero-meta img[src*="calendar"] { content: url("images/detail-icon-calendar.png"); }
.detail-hero-meta img[src*="map-marker"],
.detail-hero-meta img[src*="location"] { content: url("images/detail-icon-location.png"); }
.detail-hero-meta img[src*="bug"],
.detail-hero-meta img[src*="insect"] { content: url("images/detail-icon-insect.png"); }
.detail-hero-meta img[src*="book"] { content: url("images/detail-icon-book.png"); }
.detail-status-badge > img[src*="warning"] { content: url("images/detail-icon-warning.png"); }

/* Risk basis radar: the number stays explicit while the five scoring axes become visible. */
.detail-risk-breakdown { overflow: hidden; }
.detail-risk-breakdown h2 { color: var(--risk-color, var(--navy-900)); }
.detail-risk-breakdown-layout { display: grid; grid-template-columns: minmax(250px, 1.05fr) minmax(230px, .9fr) minmax(240px, .95fr); gap: 18px; align-items: center; margin-top: 14px; }
.risk-radar-wrap { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 220px; padding: 2px 0; }
.risk-radar { display: block; width: min(100%, 340px); height: auto; overflow: visible; }
.risk-radar-grid polygon { fill: none; stroke: #cfd9e3; stroke-width: 1; }
.risk-radar-grid line { stroke: #dbe3eb; stroke-width: 1; }
.risk-radar-area { fill: var(--risk-color, var(--navy-800)); fill-opacity: .25; stroke: var(--risk-color, var(--navy-800)); stroke-width: 3; stroke-linejoin: round; }
.risk-radar-point { fill: #fff; stroke: var(--risk-color, var(--navy-800)); stroke-width: 2.5; }
.risk-radar-label { fill: #30435a; font-size: 13px; font-weight: 800; }
.risk-breakdown-details { min-width: 0; }
.risk-breakdown-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 13px; background: #f3f7fa; border: 1px solid #d6e0e9; border-radius: 6px; }
.risk-breakdown-total span { color: #516277; font-size: 13px; font-weight: 800; white-space: nowrap; }
.risk-breakdown-total strong { color: var(--risk-color, var(--navy-900)); font-size: 16px; white-space: nowrap; }
.risk-breakdown-total--review { background: #fffaf0; border-color: #e3cf91; }
.risk-breakdown-total--review strong { color: #9a7200; }
.risk-breakdown-list { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid #dfe6ed; }
.risk-breakdown-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; padding: 7px 2px; color: #33465b; border-bottom: 1px solid #e7edf2; font-size: 14px; }
.risk-breakdown-list li > span { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; }
.risk-breakdown-list li > span small { color: #7b8795; font-size: 11px; white-space: nowrap; }
.risk-breakdown-list li > strong { min-width: 48px; color: var(--risk-color, var(--navy-900)); font-size: 18px; text-align: right; }
.risk-breakdown-list li > strong small { margin-left: 2px; color: #687789; font-size: 12px; font-weight: 700; }
.risk-breakdown-note { align-self: stretch; margin: 0; padding: 13px 14px; color: #4c5e72; background: #fbfcfd; border-left: 3px solid var(--risk-color, var(--navy-800)); font-size: 13px; line-height: 1.75; }

@media (max-width: 1180px) {
  .detail-risk-breakdown-layout { grid-template-columns: minmax(220px, 1fr) minmax(220px, .95fr) minmax(190px, .8fr); gap: 14px; }
  .risk-breakdown-total { display: grid; gap: 3px; }
}

@media (max-width: 860px) {
  .detail-risk-breakdown-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr); }
  .risk-breakdown-note { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .detail-risk-breakdown-layout { grid-template-columns: 1fr; gap: 12px; }
  .risk-radar-wrap { min-height: 236px; }
  .risk-breakdown-total { display: flex; }
  .risk-breakdown-note { grid-column: auto; font-size: 14px; }
}

/* Directory sidebar: search stays visible while the 39-item list scrolls independently. */
.detail-directory {
  position: sticky;
  top: 14px;
  min-width: 0;
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.detail-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #e2e7ed; }
.detail-directory-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--navy-900); }
.detail-directory-title img { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; }
.detail-directory-title strong { font-size: 17px; white-space: nowrap; }
.detail-directory-head > small { color: #667486; font-size: 11px; font-weight: 800; white-space: nowrap; }
.detail-directory-label { display: block; margin-top: 13px; color: #2c405b; font-size: 12px; font-weight: 900; }
.detail-directory-search { display: grid; grid-template-columns: 20px minmax(0, 1fr) 24px; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px; padding: 0 8px; background: #f7f9fb; border: 1px solid #b9c6d4; border-radius: 5px; }
.detail-directory-search:focus-within { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(44,113,188,.16); }
.detail-directory-search > img { width: 20px; height: 20px; object-fit: contain; opacity: .78; }
.detail-directory-search input { width: 100%; min-width: 0; padding: 7px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.detail-directory-search button { width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0; color: #536375; background: #fff; border: 1px solid #c5d0dc; border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer; }
.detail-directory-help { margin: 6px 0 0; color: #7a8592; font-size: 10px; line-height: 1.45; }
.detail-directory-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #9eafc1 #edf1f5; display: grid; gap: 6px; margin: 11px -5px 0 0; padding: 0 5px 2px 0; }
.detail-directory-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 5px; background: #f7fbff; border: 1px solid #d8e5f0; border-radius: 6px; transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease; }
.detail-directory-item--pest { background: #eaf4ff; border-color: #bdd4e8; }
.detail-directory-item--beast { background: #f5e8fb; border-color: #d6bade; }
.detail-directory-item:hover { background: #e2f0fc; border-color: var(--navy-800); transform: translateY(-1px); }
.detail-directory-item--beast:hover { background: #efdef7; border-color: #76558a; }
.detail-directory-item:focus-visible { outline: 3px solid rgba(44,113,188,.3); outline-offset: 2px; }
.detail-directory-item.is-current { background: #edf4fb; border-color: #6d91b6; box-shadow: inset 3px 0 0 var(--navy-800); }
.detail-directory-item > img { width: 42px; height: 38px; object-fit: cover; border-radius: 4px; background: #edf1f4; }
.detail-directory-item > .entity-image-shell { width: 42px; height: 38px; border-radius: 4px; }
.detail-directory-item > span:not(.entity-image-shell) { display: grid; gap: 1px; min-width: 0; }
.detail-directory-item strong { overflow: hidden; color: #263c58; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-directory-item small { overflow: hidden; color: #758293; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-directory-risk { min-width: 25px; padding: 3px 4px; border-radius: 3px; text-align: center; font-size: 11px; line-height: 1.2; }
.detail-directory-risk--risk-low { color: #31712d; background: #e3f2de; }
.detail-directory-risk--risk-medium { color: #806f00; background: #fff1aa; }
.detail-directory-risk--risk-high { color: #c75f00; background: #ffe0c3; }
.detail-directory-risk--risk-critical { color: #c71924; background: #ffd9dd; }
.detail-directory-empty { margin: 12px 0 0; padding: 14px 8px; color: #667486; background: #f6f8fa; border-radius: 5px; font-size: 12px; text-align: center; }

.detail-related-panel { overflow: hidden; }
.detail-related-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-related-panel-head h2 { padding-bottom: 0; border-bottom: 0; }
.detail-related-panel-head > span { color: #718092; font-size: 12px; white-space: nowrap; }
.detail-related-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 12px; overflow-x: auto; margin-top: 13px; padding: 2px 2px 10px; scrollbar-width: thin; scrollbar-color: #9eafc1 #edf1f5; scroll-snap-type: x proximity; }
.detail-related-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 8px; background: #fff; border: 1px solid #d5dde6; border-radius: 7px; scroll-snap-align: start; transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.detail-related-card:hover { border-color: var(--navy-800); box-shadow: 0 3px 8px rgba(20,50,83,.12); transform: translateY(-1px); }
.detail-related-card:focus-visible { outline: 3px solid rgba(44,113,188,.3); outline-offset: 2px; }
.detail-related-card > img { width: 82px; height: 76px; object-fit: cover; border-radius: 5px; background: #edf1f4; }
.detail-related-card-copy { display: grid; align-content: center; gap: 3px; min-width: 0; }
.detail-related-card-copy > small { color: #718092; font-size: 10px; font-weight: 800; }
.detail-related-card-copy > strong { overflow: hidden; color: #263a54; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.detail-related-card-risk { width: fit-content; margin: 0; padding: 3px 6px; border-radius: 3px; font-size: 11px; font-style: normal; font-weight: 800; }
.detail-related-card-risk--risk-low { color: #31712d; background: #e3f2de; }
.detail-related-card-risk--risk-medium { color: #806f00; background: #fff1aa; }
.detail-related-card-risk--risk-high { color: #c75f00; background: #ffe0c3; }
.detail-related-card-risk--risk-critical { color: #c71924; background: #ffd9dd; }
.detail-related-card-copy > b { display: flex; align-items: center; justify-content: space-between; color: var(--navy-800); font-size: 12px; }
.detail-related-card-copy > b span { font-size: 20px; line-height: .7; }

@media (max-width: 860px) {
  .detail-directory { position: static; height: auto; max-height: 390px; }
  .detail-directory-list { max-height: 300px; }
  .detail-related-strip { grid-auto-columns: minmax(270px, 72%); }
}
@media (max-width: 620px) {
  .detail-directory { max-height: 370px; padding: 12px; }
  .detail-directory-list { max-height: 276px; }
  .detail-related-panel-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .detail-related-strip { grid-auto-columns: 86%; }
  .detail-related-card-copy > strong { font-size: 17px; }
}

/* Detail pages reuse the main filter rail; the searchable directory belongs at the bottom. */
.detail-shell { grid-template-columns: 292px minmax(0, 1fr); }
.detail-filter-sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  min-height: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.detail-filter-sidebar .filter-head { margin-bottom: 13px; }
.detail-filter-sidebar .filter-head h2 { font-size: 18px; }
.detail-filter-sidebar .filter-submit { margin-top: 16px; }
.detail-filter-note { margin: 10px 0 0; color: #697688; font-size: 11px; line-height: 1.5; text-align: center; }
.detail-directory-panel { overflow: hidden; }
.detail-directory-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #e2e7ed; }
.detail-directory-panel-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--navy-900); font-size: 18px; }
.detail-directory-panel-head h2 img { width: 22px; height: 22px; object-fit: contain; }
.detail-directory-panel-head p { margin: 4px 0 0 30px; color: #718093; font-size: 12px; }
.detail-directory-panel-head > span { flex: 0 0 auto; color: #6d7c8e; font-size: 12px; font-weight: 800; }
.detail-directory-search--bottom { max-width: 560px; margin-top: 14px; }
.detail-directory-panel > .detail-directory-help { margin-top: 5px; }
.detail-directory-list--bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 356px; margin: 12px 0 0; padding-right: 7px; }
.detail-directory-list--bottom .detail-directory-item { min-height: 50px; }
.detail-floating-cta { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 330px; min-height: 58px; padding: 10px 16px 10px 18px; color: #fff; background: #082e60; border: 1px solid #082e60; border-radius: 10px; box-shadow: 0 10px 26px rgba(8,46,96,.28); text-decoration: none; }
.detail-floating-cta span { display: grid; gap: 2px; min-width: 0; }
.detail-floating-cta small { color: rgba(255,255,255,.78); font-size: 10px; font-weight: 800; }
.detail-floating-cta strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.detail-floating-cta b { display: inline-flex; align-items: center; gap: 7px; padding: 9px 10px; color: #082e60; background: #fff; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.detail-floating-cta:hover { background: #174a85; border-color: #174a85; }
.detail-floating-cta:hover b { color: #174a85; }

@media (max-width: 1180px) {
  .detail-shell { grid-template-columns: 258px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .detail-shell { grid-template-columns: 1fr; }
  .detail-filter-sidebar { position: relative; top: auto; height: auto; max-height: min(72vh, 640px); border-right: 1px solid var(--line); }
  .detail-directory-panel-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .detail-directory-panel-head p { margin-left: 30px; }
  .detail-directory-search--bottom { max-width: none; }
  .detail-directory-list--bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 360px; }
}

@media (max-width: 620px) {
  .detail-filter-sidebar { padding: 13px; }
  .detail-directory-list--bottom { max-height: 350px; }
  .detail-directory-list--bottom .detail-directory-item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 6px; }
  .detail-directory-list--bottom .detail-directory-item > img { width: 38px; height: 36px; }
  .detail-directory-list--bottom .detail-directory-item > .entity-image-shell { width: 38px; height: 36px; }
}

@media (max-width: 620px) {
  .detail-floating-cta { right: 10px; bottom: 10px; left: 10px; min-width: 0; border-radius: 8px; }
  .detail-floating-cta b { padding-inline: 8px; font-size: 11px; }
}
