/* ============================================================
   UNDER THE HOLO — estimate.css   (/estimate/ only)
   Session 13. The Value Estimator: typeahead, the four-question
   form, the reading and the strip. Chart chrome comes from
   market.css (mk-plot__*), loaded before this file.
   Tokens only — no colour literals.
   ============================================================ */

.uth-estimate { padding-bottom: var(--pc-section); }

/* ---------- search ---------- */
.est-search {
	position: relative; display: flex; align-items: center; gap: var(--pc-sp-3);
	padding: var(--pc-sp-3) var(--pc-sp-4); flex-wrap: wrap;
}
.est-search__label { display: inline-flex; color: var(--pc-ink-3); }
.est-search input {
	flex: 1 1 260px; min-width: 0; border: 0; background: transparent;
	font-family: var(--pc-font-display); font-size: 1.125rem; font-weight: 500;
	color: var(--pc-ink); padding: 10px 0; outline: none;
}
.est-search input::placeholder { color: var(--pc-ink-3); opacity: 1; }
/* Quiet focus: the card firms up, it does not glow amber. */
.est-search:focus-within { border-color: var(--pc-hairline-strong); box-shadow: var(--pc-shadow-2); }
.est-search__hint { flex-basis: 100%; font-size: var(--pc-t-sm); color: var(--pc-ink-3); }

.est-results {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
	list-style: none; margin: 0; padding: 6px; max-height: 420px; overflow-y: auto;
	background: var(--pc-surface); border: 1px solid var(--pc-hairline);
	border-radius: var(--pc-r); box-shadow: var(--pc-shadow-3);
}
.est-results__item {
	display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--pc-sp-3);
	align-items: center; padding: 9px 10px; border-radius: var(--pc-r-sm); cursor: pointer;
}
.est-results__item:hover, .est-results__item.is-active { background: var(--pc-tint-1); }
.est-results__id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.est-results__id b {
	font-family: var(--pc-font-display); font-weight: 600; color: var(--pc-ink);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.est-results__id span { font-size: var(--pc-t-sm); color: var(--pc-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-results__trend { font-family: var(--pc-font-display); font-weight: 600; color: var(--pc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-results__none { padding: 14px 12px; font-size: var(--pc-t-sm); color: var(--pc-ink-2); }

/* ---------- result blocks ---------- */
.est-result { display: flex; flex-direction: column; gap: var(--pc-sp-5); margin-top: var(--pc-sp-5); }
.est-block { margin: 0; }

.est-card__id { display: flex; align-items: flex-start; gap: var(--pc-sp-5); margin-bottom: var(--pc-sp-4); }
.est-card__thumb { width: 108px; height: 148px; flex: none; padding: 5px; }
@media (max-width: 480px) { .est-card__thumb { width: 76px; height: 104px; } }
.est-card__name { margin: 0; font-size: var(--pc-t-h3); line-height: 1.2; }
.est-card__meta { margin: 2px 0 0; font-size: var(--pc-t-sm); color: var(--pc-ink-2); }

.est-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pc-sp-5); }
@media (max-width: 860px) { .est-cols { grid-template-columns: 1fr; } }

/* ---------- the four questions ---------- */
.est-form__note { margin: var(--pc-sp-1) 0 var(--pc-sp-4); font-size: var(--pc-t-sm); color: var(--pc-ink-2); }
.est-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--pc-sp-4); }
.est-field span {
	font-size: var(--pc-t-micro); font-weight: 600; letter-spacing: var(--pc-track-micro);
	text-transform: uppercase; color: var(--pc-ink-3);
}
.est-field select {
	font-family: var(--pc-font-ui); font-size: .9375rem; color: var(--pc-ink);
	background: var(--pc-surface); border: 1px solid var(--pc-hairline);
	border-radius: var(--pc-r-sm); padding: 10px 12px; min-height: 44px;
}
.est-field select:focus-visible { outline: none; border-color: var(--pc-focus); box-shadow: 0 0 0 4px var(--pc-focus-halo); }
.est-form__scan { margin: var(--pc-sp-2) 0 0; font-size: var(--pc-t-sm); color: var(--pc-ink-2); }
.est-form__scan a { color: var(--pc-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the reading ---------- */
.est-verdict__wait { padding: var(--pc-sp-5) 0; color: var(--pc-ink-2); font-size: var(--pc-t-sm); }
.est-verdict__row { display: flex; flex-direction: column; gap: 3px; padding: var(--pc-sp-4) 0; }
.est-verdict__row + .est-verdict__row { border-top: 1px solid var(--pc-hairline); }
.est-verdict__label {
	font-size: var(--pc-t-micro); font-weight: 600; letter-spacing: var(--pc-track-micro);
	text-transform: uppercase; color: var(--pc-ink-3);
}
.est-verdict__band, .est-verdict__value {
	font-family: var(--pc-font-display); font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 700; color: var(--pc-ink); line-height: 1.15;
}
.est-verdict__value { font-variant-numeric: normal; }
.est-verdict__sub { font-size: var(--pc-t-sm); color: var(--pc-ink-2); max-width: 44ch; }

/* ---------- history + actions ---------- */
.est-chart { margin-top: var(--pc-sp-2); }
.est-actions { display: flex; flex-wrap: wrap; gap: var(--pc-sp-3); }

/* ---------- FAQ: pushed well below the tool, with air on both sides ---------- */
.est-faq { margin-top: clamp(56px, 8vw, 110px); margin-bottom: var(--pc-sp-7); }
.est-faq .uth-section__head { margin-bottom: var(--pc-sp-5); }
