/**
 * sf_directory_cards.css
 * The Divisional Directory on the Social Forestry Activities page, in the same
 * sand-card shape the Wildlife page uses for Divisional Administrative
 * Jurisdiction (css/designs/wl_activities.css, .wa-div-*): a round mark and the
 * card's number on top, then the post, the division and its town, the
 * jurisdiction under a quiet label, and the contact lines at the foot.
 *
 * The measurements below are that card's, repeated here rather than shared,
 * because every rule is scoped under .sfa-page: this page carries its own copy
 * and the Wildlife page is not reached from here. It loads after
 * social_forestry_activities.css, so it also has to undo that file's white
 * gradient card, its border and the green sheet it animates in on hover.
 */

.sfa-page .sfa-divisions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
@media (max-width: 1100px) {
    .sfa-page .sfa-divisions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .sfa-page .sfa-divisions-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── The card ───────────────────────────────────────────── */
.sfa-page .sfa-div-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 20px 20px;
    border: 0;
    border-radius: 8px;
    background: #f2ede1;
    box-shadow: none;
    transition: transform 150ms cubic-bezier(.4, 0, .2, 1),
                background-color 150ms cubic-bezier(.4, 0, .2, 1);
}
/* the base stylesheet paints an animated green sheet behind the card */
.sfa-page .sfa-div-card::after { content: none; }
.sfa-page .sfa-div-card:hover {
    transform: translateY(-2px);
    background: #ece5d3;
    box-shadow: none;
}

/* ── Mark and number ────────────────────────────────────── */
.sfa-page .sfa-div-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sfa-page .sfa-div-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 71, 42, .1);
    color: #1a472a;
    transition: background-color 150ms, color 150ms,
                transform 300ms cubic-bezier(.34, 1.56, .64, 1);
}
.sfa-page .sfa-div-card:hover .sfa-div-mark {
    background: #f1c40f;
    color: #0a2e1a;
    transform: rotate(-8deg);
}
.sfa-page .sfa-div-no {
    font: 700 13px/1 Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    color: rgba(10, 46, 26, .4);
}

/* ── Post, division, town ───────────────────────────────── */
.sfa-page .sfa-div-role {
    font-size: 13px;
    font-weight: 600;
    color: #5b6b60;
}
.sfa-page .sfa-div-office {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #0a2e1a;
}
.sfa-page .sfa-div-town {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a472a;
}

/* ── Jurisdiction ───────────────────────────────────────── */
.sfa-page .sfa-div-area {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(10, 46, 26, .1);
}
.sfa-page .sfa-div-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #5b6b60;
}
.sfa-page .sfa-div-area p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #1f2a22;
}

/* ── Contact lines ──────────────────────────────────────── */
.sfa-page .sfa-div-contact {
    list-style: none;
    margin: auto 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(10, 46, 26, .1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sfa-page .sfa-div-contact li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    color: #1f2a22;
}
.sfa-page .sfa-div-contact svg {
    flex: none;
    margin-top: 2px;
    color: #1a472a;
}
/* the base stylesheet makes this a filled green pill */
.sfa-page .sfa-div-dial {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: inherit;
    font-weight: 600;
    color: #0a2e1a;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 150ms;
}
.sfa-page .sfa-div-dial:hover {
    color: #1a472a;
    background: none;
    box-shadow: none;
    transform: none;
    text-decoration: underline;
    text-decoration-color: #f1c40f;
    text-underline-offset: 3px;
}
.sfa-page .sfa-div-offline { color: #5b6b60; }

@media (prefers-reduced-motion: reduce) {
    .sfa-page .sfa-div-card,
    .sfa-page .sfa-div-card:hover,
    .sfa-page .sfa-div-card:hover .sfa-div-mark { transform: none; }
}
