/* Contact page offices (config/site.php "offices"): one card per country office, the office being viewed highlighted,
   and the directions link. Loaded after contact-page.css. */

.contact-offices {
    margin-bottom: 44px;
}

.contact-offices__list {
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    list-style: none;
}

.contact-offices__list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The theme draws its own bullet before list items */
.contact-offices__list li::before {
    content: none;
    display: none;
}

.contact-office-card {
    height: 100%;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit !important;
    background: #fff;
    border: 1px solid var(--ssc-line);
    border-left: 4px solid var(--ssc-line);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-office-card:hover,
.contact-office-card:focus-visible {
    border-color: rgba(17, 134, 87, .35);
    box-shadow: 0 10px 24px rgba(7, 72, 48, .08);
}

.contact-office-card:focus-visible {
    outline: 3px solid rgba(32, 170, 104, .45);
    outline-offset: 2px;
}

.contact-office-card[aria-current="page"] {
    border-left-color: var(--ssc-green-600);
    box-shadow: var(--ssc-shadow);
}

/* An office still to be filled in: not a link */
.contact-office-card--soon,
.contact-office-card--soon:hover {
    background: var(--ssc-surface);
    border-style: dashed;
    border-color: #c9d9cf;
    box-shadow: none;
}

.contact-office-card--soon .contact-office-card__country {
    color: var(--ssc-muted);
}

.contact-office-card--soon .contact-office-card__address {
    font-style: italic;
}

.contact-office-card__name {
    color: var(--ssc-green-700);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-office-card__country {
    color: var(--ssc-green-950);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.contact-office-card__address {
    color: var(--ssc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.contact-directions {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    color: var(--ssc-green-700) !important;
    font-size: 14px;
    font-weight: 700;
}

.contact-directions::after {
    margin-left: 6px;
    content: "\2192";
}

.contact-directions:hover,
.contact-directions:focus-visible {
    color: var(--ssc-green-950) !important;
}
