/* Home composition: search and discovery first; personal tools alongside on PC.
   Uses the incumbent brand tokens and scopes every override to this route. */
.um-home { padding-top: var(--space-8); padding-bottom: var(--space-10); }
.um-home .um-home__hero { padding: 0 64px var(--space-6) 0; display: flex; flex-direction: column; align-items: flex-start; }
.um-home .um-hero__title { order: 0; margin: 0; font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1.2; }
.um-home .um-hero__subtitle { order: 1; margin: var(--space-4) 0 0; font-size: var(--fs-md); line-height: 1.75; max-width: 58ch; }
.um-home .um-home__mark { width: 48px; height: 48px; top: 0; right: 0; border-radius: var(--radius-md); }
.um-home .um-hero__search { order: 2; width: 100%; max-width: none; margin: var(--space-6) 0 0; }
.um-home .um-search__input--lg { width: 100%; min-width: 0; height: 56px; font-size: 16px; padding-inline: var(--space-4); }
.um-home .um-home__search-submit { flex-basis: 56px; border-radius: var(--radius-sm); }
.um-home .um-hero__signals { order: 4; justify-content: flex-start; margin: var(--space-3) 0 0; }
.um-home .um-hero__signals .um-chip { font-size: var(--fs-xs); }
.um-home .um-hero__actions { order: 3; margin: var(--space-2) 0 0; gap: var(--space-6); }
.um-home .um-hero__actions .um-btn { background: transparent; border: 0; border-radius: 0; padding: 0; min-height: 44px; color: var(--color-primary-text); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 4px; box-shadow: none; }
.um-home .um-hero__actions .um-btn:hover { text-decoration-thickness: 2px; }
.um-home .um-section__head { text-align: start; justify-content: flex-start; max-width: none; margin: 0 0 var(--space-4); }
.um-home .um-section__head h2 { margin: 0; font-size: var(--fs-xl); line-height: 1.4; }
.um-home > .um-section { margin-block: var(--space-8) 0; }
.um-home .um-home__tools { column-gap: var(--space-6); }
.um-home .um-home__tool { min-height: 100px; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-1) var(--space-3); padding-block: var(--space-4); text-align: start; align-content: center; }
.um-home .um-home__tool .um-card__icon { font-size: 24px; line-height: 1; }
.um-home .um-home__tool .um-card__title { font-size: var(--fs-md); line-height: 1.5; font-weight: var(--fw-semibold); }
.um-home .um-home__tool .um-card__desc { grid-column: 2; margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
.um-home #um-favorite-tools:empty, .um-home #um-recent-tools:empty { display: none; }
.um-home #um-favorite-tools .um-section, .um-home #um-recent-tools .um-section { margin: 0; padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.um-home #um-favorite-tools, .um-home #um-recent-tools { margin-top: var(--space-6); min-width: 0; }
.um-home #um-favorite-tools .um-section__head h2, .um-home #um-recent-tools .um-section__head h2 { font-size: var(--fs-md); }
.um-home .um-favorite-shelf__empty { margin: 0; font-size: var(--fs-sm); color: var(--color-text-sub); line-height: 1.7; }
.um-home .um-favorite-shelf__row { gap: var(--space-2); font-size: var(--fs-sm); }
.um-home #um-recent-tools .um-grid { display: block; }
.um-home #um-recent-tools .um-card { display: block; margin: 0; padding: var(--space-3) 0; min-height: 44px; border: 0; border-radius: 0; background: transparent; box-shadow: none; border-bottom: 1px solid var(--color-border); }
.um-home #um-recent-tools .um-card:last-child { border-bottom: 0; padding-bottom: 0; }
.um-home #um-recent-tools .um-card:first-child { padding-top: 0; }
.um-home #um-recent-tools .um-card:hover { transform: none; }
.um-home #um-recent-tools .um-card__title { font-size: var(--fs-sm); font-weight: var(--fw-medium); line-height: 1.6; }
.um-home #um-recent-tools .um-card:hover .um-card__title { text-decoration: underline; text-underline-offset: 3px; }
.um-home .um-home__browse { padding-block: var(--space-6); border-block: 1px solid var(--color-border); }
.um-home .um-home__browse .um-section__head { display: block; }
.um-home .um-home__browse .um-section__head p { margin: var(--space-2) 0 0; }
.um-home .um-quicklinks { justify-content: flex-start; }
.um-home :is(a, input, button):focus-visible { outline: 3px solid var(--color-primary-text); outline-offset: 4px; }
.um-home input[type="search"] { caret-color: var(--color-primary-text); }
.um-home ::selection { background: var(--color-primary-weak); color: var(--color-text); }
.um-home .um-hero__search input::placeholder { color: var(--color-text-sub); opacity: 1; }
.um-home .um-story-teaser > img { height: auto; }
.um-home .um-site-facts .um-eyebrow { display: none; }
.um-home > .um-guide { width: 100%; max-width: none; margin-block: var(--space-8); grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-8); }
.um-home .um-guide__head { text-align: start; margin-bottom: var(--space-4); }
.um-home .um-guide__item { padding: var(--space-5) 0; border: 0; border-bottom: 1px solid var(--color-border); border-radius: 0; box-shadow: none; background: transparent; }
.um-home .um-guide__h { font-size: var(--fs-md); }
.um-home .um-guide__p { max-width: 75ch; }
.um-home .um-guide__item:last-child { grid-column: 1 / -1; }
@media (min-width: 1200px) {
    .um-home > .um-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .um-home { display: grid; grid-template-columns: minmax(0, 1fr) 264px; grid-template-areas: "intro favorites" "popular recent"; column-gap: var(--space-8); row-gap: var(--space-6); align-items: start; }
    .um-home > * { grid-column: 1 / -1; min-width: 0; }
    .um-home > .um-home__hero { grid-area: intro; padding-bottom: 0; }
    .um-home > #um-favorite-tools { grid-area: favorites; margin-top: 0; }
    .um-home > #um-recent-tools { grid-area: recent; margin-top: 0; }
    .um-home > .um-home__popular { grid-area: popular; margin: 0; }
    .um-home .um-home__tool { min-height: 104px; }
    .um-home:not(:has(#um-recent-tools > *)) > .um-home__popular { grid-column: 1 / -1; }
    .um-home:not(:has(#um-recent-tools > *)) .um-home__tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .um-home > .um-home__browse { margin-top: var(--space-2); }
}
@media (max-width: 640px) {
    .um-home { padding-top: var(--space-6); }
    .um-home .um-home__hero { padding-right: 0; }
    .um-home .um-home__tools { grid-template-columns: minmax(0, 1fr); }
    .um-home .um-home__tool { min-height: 88px; }
    .um-home .um-hero__actions { column-gap: var(--space-4); }
    .um-home #um-recent-tools .um-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
    .um-home #um-recent-tools .um-card { border-bottom: 0; padding-block: var(--space-2); }
}
@media (prefers-reduced-motion: reduce) { .um-home * { scroll-behavior: auto; } }
