/* Page layout owns no palette: paper colors come from the shared theme.
   Shared financial evidence retains fallback colors for the legacy sector page. */
.growth-discovery-page { margin: 0; background: var(--color-background); color: var(--color-text); font-family: var(--font-ui); font-size: .875rem; line-height: 1.5; }
.growth-discovery-page * { box-sizing: border-box; }
.growth-discovery-page :is(h1, h2, p, dl) { margin: 0; }
.growth-discovery-page :is(a, button, summary) { touch-action: manipulation; }
.growth-discovery-page a { color: var(--color-accent); text-decoration: none; }
.growth-discovery-page :is(a, button, summary):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: .25rem; }
.growth-discovery-page button { min-height: var(--touch-target); max-width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: .5rem .75rem; background: var(--color-surface); color: var(--color-accent); font: inherit; cursor: pointer; }
.growth-discovery-page button:disabled { opacity: .6; cursor: wait; }
.growth-discovery-page :is(a, summary):active { background: var(--color-accent-soft); }
.growth-discovery-shell { width: 100%; max-width: 48rem; min-width: 0; margin: auto; padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); }
.growth-discovery-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.growth-discovery-toolbar nav { flex: 0 0 2.75rem; margin: 0; }
.growth-discovery-toolbar nav a { display: flex; align-items: center; justify-content: center; min-height: var(--touch-target); border-radius: var(--radius-control); background: var(--color-surface); font-size: 1.25rem; }
.growth-discovery-toolbar h1 { flex: 1 0 auto; font-size: 1.5rem; line-height: 1.35; white-space: nowrap; overflow: visible; }
.growth-discovery-toolbar button { margin-left: auto; }
.growth-discovery-page #growthDiscoveryStatus { margin: .5rem 0 .75rem; color: var(--color-text-muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.growth-discovery-page #growthDiscoveryStatus.growth-discovery-warning { color: var(--color-attention); }
.growth-discovery-empty { margin: 0; padding: 1rem; border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-text-muted); font-size: .875rem; }
.growth-discovery-page [data-growth-retry] { margin-top: .75rem; }
.growth-discovery-list { list-style: none; padding: 0 .875rem; margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.growth-recommendation { position: relative; min-width: 0; padding: .375rem 0 .625rem; margin: 0; border-top: 1px solid var(--color-border); }
.growth-recommendation:first-child { border-top: 0; }
.growth-recommendation .growth-discovery-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0 .5rem; padding-right: max(3rem, 48px); }
.growth-recommendation .growth-discovery-card-head a { flex: 1; min-width: min(100%, 8em); min-height: var(--touch-target); display: inline-flex; align-items: center; gap: .375rem; font-size: 1rem; font-weight: 650; }
.growth-recommendation-rank { flex-shrink: 0; color: var(--color-text-muted); font-size: .75rem; font-weight: 400; }
.growth-recommendation-symbol { flex-shrink: 0; white-space: nowrap; }
.growth-recommendation-industry { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); font-size: .8125rem; font-weight: 400; }
.growth-recommendation-score { display: flex; align-items: center; min-height: var(--touch-target); flex-shrink: 0; margin-left: auto; color: var(--color-text); }
.growth-recommendation-score > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.growth-recommendation-score strong { font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.growth-recommendation-score small { margin-left: .125rem; color: var(--color-text-muted); font-size: .75rem; font-weight: 400; }
.growth-recommendation .growth-recommendation-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .375rem; padding: 0; }
.growth-recommendation .growth-recommendation-core-metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr)); }
.growth-recommendation-metrics dt { color: var(--color-text-muted); font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.growth-recommendation-metrics dd { margin: .125rem 0 0; font-size: 1rem; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.growth-recommendation-core-metrics dd { white-space: nowrap; }
.growth-recommendation .growth-recommendation-risk { display: flex; gap: .375rem; margin: 0; color: var(--color-attention); font-size: .8125rem; line-height: 1.5; }
.growth-recommendation-risk > span:first-child { flex-shrink: 0; font-weight: 600; }
.growth-recommendation-risk-text { min-width: 0; overflow-wrap: anywhere; }
.growth-recommendation .growth-recommendation-evidence { margin: 0; color: var(--color-text); font-size: .8125rem; line-height: 1.6; }
.growth-recommendation-evidence > summary { position: absolute; top: .375rem; right: 0; width: max(2.75rem, 3em); min-height: var(--touch-target); display: flex; align-items: center; justify-content: flex-end; gap: .25rem; padding: 0; color: var(--color-accent); font-size: .75rem; list-style: none; cursor: pointer; }
.growth-recommendation-evidence > summary::-webkit-details-marker { display: none; }
.growth-recommendation-evidence > summary::after { content: ''; width: .375rem; height: .375rem; margin-right: .125rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.growth-recommendation-evidence[open] > summary::after { transform: rotate(225deg); }
.growth-recommendation-evidence .growth-discovery-evidence { margin-top: .625rem; padding-top: .625rem; }
.growth-recommendation-evidence p { margin: .375rem 0; overflow-wrap: anywhere; }
.growth-recommendation-company { color: var(--color-text-muted); }
.growth-recommendation-reason { color: var(--color-text); }
.growth-recommendation-risk-full { color: var(--color-attention); }
.growth-recommendation-evidence dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; margin: .5rem 0; }
.growth-recommendation-evidence dt { color: var(--color-text-muted); }
.growth-recommendation-evidence dd { margin: .125rem 0 0; overflow-wrap: anywhere; }
/* Shared renderQuality consumer on the sector detail page. */
.growth-discovery-facts { font-size: .875rem; line-height: 1.5; }
.growth-discovery-facts p { margin: 5px 0; }
.growth-discovery-muted { color: var(--color-text-muted, #96acb6); }
.growth-discovery-warning { color: var(--color-attention, #e5bf78); }
.growth-discovery-positive { color: var(--color-positive, #9cdbbc); }
.growth-discovery-stage { padding: 5px 0; }
.growth-discovery-prior { border-left: 2px solid var(--color-attention, #ba9458); padding-left: 10px; margin: 10px 0; }
.growth-discovery-facts :is(p, dd) { overflow-wrap: anywhere; min-width: 0; }
.growth-discovery-facts summary { cursor: pointer; padding: 8px 0; min-height: 44px; color: var(--color-text-muted, #96acb6); }
.growth-discovery-evidence { border-top: 1px solid var(--color-border, #29424c); margin-top: 6px; padding-top: 6px; }
.growth-discovery-facts dl { margin: 8px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.growth-discovery-facts dt { color: var(--color-text-muted, #96acb6); }
.growth-discovery-facts dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .growth-discovery-facts dl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 22rem) { .growth-discovery-toolbar h1 { font-size: 1.125rem; } .growth-discovery-toolbar button { padding: .5rem; } }
@media (hover: hover) and (pointer: fine) { .growth-discovery-page :is(a, summary, button):hover { background: var(--color-accent-soft); } }
