/*
 * Home as a task launcher (user-journeys UJ-1). The title, figure, search and the top of the cards fit in
 * 1366 x 768. CSS grid, not Bootstrap columns: pages/Home/css/style.css pads every
 * [class*="col-"] by 1 rem, which is how the old Home got its 48 px gaps.
 */
.home-main { display: flex; flex-direction: column; }
/* The landing form of the shared page header band (docs/PAGE_SHELL.md): the band, the container and the title are
   the shared ones (.dcv-page-header, .dcv-container, .dcv-page-title, .dcv-lead); only the grid inside is Home's. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 2rem; align-items: center; padding-block: var(--dcv-s5); }
.home-hero-head { display: flex; align-items: center; gap: var(--dcv-s3); margin-bottom: .35rem; }
.home-subtitle { margin: 0 0 .5rem; font-size: var(--dcv-fs-headline, 1.25rem); font-weight: 600; line-height: 1.3; color: var(--bs-body-color); }
.home-hero-figure { margin: 0; }
.home-hero-image img { display: block; width: 100%; height: auto; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-white); }
.home-hero-caption { margin-top: .5rem; font-size: var(--dcv-fs-label, .75rem); line-height: 1.4; color: var(--bs-secondary-color); }
.home-find { max-width: 36rem; }
.home-search { width: 100%; }
.home-search .form-control { font-size: 1rem; text-overflow: ellipsis; }
.home-search .autocomplete-dropdown, .home-search .dcv-search-menu { z-index: 2000; }
/* The site search appends its menu inside the input group, so the button is no longer :last-child
   and Bootstrap drops its right corners; round it like the icon on the left. */
.home-search .input-group > button[type="submit"] {
    border-top-right-radius: var(--bs-border-radius-lg);
    border-bottom-right-radius: var(--bs-border-radius-lg);
}

.home-try { margin: .75rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; font-size: var(--dcv-fs-label, .75rem); }
.home-try-label { font-size: var(--dcv-fs-kicker, .6875rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color); margin-right: .15rem; }
.home-chip {
    padding: .15rem .65rem; border: 1px solid var(--bs-border-color); border-radius: 999px;
    color: var(--bs-body-color); text-decoration: none; background: var(--bs-body-bg);
    font-size: var(--dcv-fs-label, .75rem); font-weight: 500;
}
.home-chip:hover, .home-chip:focus-visible { border-color: var(--bs-primary); color: var(--bs-primary); }

.home-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.home-task {
    position: relative; display: flex; flex-direction: column; gap: .25rem;
    padding: 1rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: .75rem;
    background: var(--bs-body-bg); transition: border-color .15s, box-shadow .15s;
}
.home-task:hover { border-color: var(--bs-primary); box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .07); }
.home-task-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.5rem; }
.home-task-icon { font-size: 1.5rem; line-height: 1; color: var(--bs-primary); }
.home-task-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.home-task-title a { color: var(--bs-body-color); text-decoration: none; }
.home-task-purpose { margin: 0; min-height: 3em; /* two lines reserved: the examples start on one line across a row */ font-size: var(--dcv-fs-body, .875rem); color: var(--bs-secondary-color); }
.home-task-example { margin: .25rem 0 0; font-size: var(--dcv-fs-body, .875rem); color: var(--bs-secondary-color); }
.home-task-example a { position: relative; z-index: 2; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.home-task-example a:hover { text-decoration: underline; }
/* A badge in the icon row, so the AI card keeps the height of the others when the model is down. */
.home-task-status {
    position: relative; z-index: 2; padding: .05rem .5rem; border-radius: 999px; font-size: var(--dcv-fs-kicker, .6875rem); font-weight: 600;
    color: var(--bs-warning-text-emphasis); background: var(--bs-warning-bg-subtle); border: 1px solid var(--bs-warning-border-subtle);
}
.home-task-status[hidden] { display: none; }

/* A section, not a card: the cards on this page are the six tasks. */
.home-inside { margin-top: 1.5rem; }
.home-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem 1rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--bs-border-color); }
.home-scale dt { margin: 0; font-size: var(--dcv-fs-label, .75rem); font-weight: 400; color: var(--bs-secondary-color); }
.home-scale dd { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--bs-primary); font-variant-numeric: tabular-nums; }
.home-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 2rem; }
.home-sources .dcv-src-group { margin-bottom: .5rem; }
.home-sources .dcv-src-chip { padding: .2rem .5rem; }
.home-inside-more { display: inline-block; margin-top: .25rem; font-size: var(--dcv-fs-body, .875rem); }

.home-foot { margin: 1rem 0 0; font-size: var(--dcv-fs-label, .75rem); color: var(--bs-secondary-color); }
.home-foot a { color: inherit; }

@media (max-width: 991.98px) {
    .home-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .home-hero-figure { max-width: 34rem; margin: 0 auto; }
    .home-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .home-tasks { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
    .home-sources { grid-template-columns: minmax(0, 1fr); }
}
