@import url('./layout.css');

/* Residence pages: one per supplier fact sheet, built in residence.hbs. */

main.residence {
    padding-block: 120px 64px;
    color: var(--color-dark);
    overflow-wrap: anywhere;
}

/* Flex children default to min-width: auto, so the no-wrap travel table
   would widen the whole column on a phone instead of scrolling in place. */
main.residence > * {
    min-width: 0;
    max-width: 100%;
}

.residence p {
    font-size: 16px;
    line-height: 1.6;
}

.residence .lead {
    font-size: 18px;
    font-weight: 500;
}

.residence-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--color-grey-500);
}

.residence-crumbs a {
    color: var(--color-grey-600);
    text-decoration: underline;
}

.residence .eyebrow {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.residence-cta {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--color-purple-100);
}

.residence-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.residence-btn.primary {
    background: var(--color-pink);
    color: var(--color-white);
}

.residence-btn.ghost {
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.residence-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem 2rem;
    margin: 0;
}

.residence-facts div {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.residence-facts dt {
    font-size: 13px;
    color: var(--color-grey-500);
}

.residence-facts dd {
    margin: 0.2rem 0 0;
    font-size: 15px;
}

.residence-lists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem 2rem;
}

.residence-lists ul,
.residence-others {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.residence-lists li,
.residence-others li {
    font-size: 15px;
    line-height: 1.7;
}

.residence-others a {
    color: var(--color-dark);
    text-decoration: underline;
}

.residence-table-wrap {
    overflow-x: auto;
}

.residence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.residence-table th,
.residence-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    white-space: nowrap;
}

.residence-table thead th {
    font-weight: 500;
    color: var(--color-grey-500);
}

.residence-faq details {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.residence-faq summary {
    cursor: pointer;
    font-weight: 500;
}

.residence-faq details p {
    margin-top: 0.5rem;
}

.residence-source a {
    color: var(--color-grey-600);
    text-decoration: underline;
}

@media (max-width: 600px) {
    main.residence {
        padding-block: 96px 48px;
    }
}
