/* Home page: the landing hero and the signed-in dashboard */
.home-hero {
    max-width: 44rem;
    padding: 3rem 0;
}

.home-hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.home-hero__text {
    font-size: 1.125rem;
    color: #4b5563;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-header__title {
    margin-bottom: 0;
}

.home-licence {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    color: #374151;
    font-size: 0.875rem;
}

.home-licence:hover {
    border-color: var(--brand-red);
}

.home-muted {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.home-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.home-notice {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--brand-red);
}

.home-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.home-side > .card {
    padding: 1.5rem;
}

.home-body {
    align-items: start;
}

.home-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* The allowance meter (the Tokens page). */
.home-meter {
    height: 0.5rem;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.home-meter span {
    display: block;
    height: 100%;
    background: var(--brand-red);
}

.home-section {
    margin-bottom: 2rem;
}

.home-section__title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #12243a;
    margin: 0 0 0.75rem;
}

.home-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1rem;
}

.home-tool {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.125rem 1.25rem;
    color: inherit;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.home-tool:hover {
    border-color: var(--brand-red);
}

.home-tool__icon {
    width: 2rem;
    height: 2rem;
    flex: none;
    object-fit: contain;
}

.home-tool__body {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.home-tool__name {
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.home-hint {
    margin-top: 0.75rem;
}

.home-recent__list,
.home-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-recent__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    border-radius: var(--radius-sm);
    color: inherit;
}

.home-recent__item:hover {
    background: #f9fafb;
}

.home-recent__item small {
    margin-left: auto;
    white-space: nowrap;
}

.home-recent__marker {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    flex: none;
}

.home-recent__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-links li {
    padding: 0.375rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.home-links li:last-child {
    border-bottom: 0;
}

@media (max-width: 860px) {
    .home-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero__title {
        font-size: 2rem;
    }
}

/* On the title band (base.css .page-band). */
.page-band .home-hero__text { color: #cbd5e1; }

.home-legacy {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
}

.page-band .home-legacy { color: #cbd5e1; }
.page-band .home-legacy a { color: #ffffff; text-decoration: underline; }

.page-band .home-licence {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #e5e7eb;
}
