/* File a Grievance page ------------------------------------------------------
   Scoped to .grievance-page so nothing here leaks into the shared design system.
   Everything below uses style.css's :root tokens where one exists, so the page
   tracks the rest of the site if the palette moves.

   The one exception is the card border, which has no token: the soft greens in
   style.css are backgrounds, and there is no border colour in the palette. */

.grievance-page {
    --grievance-card-border: #e4eae4;
}

/* Hero ---------------------------------------------------------------------- */

.grievance-hero {
    padding: 96px 0;
}

.grievance-hero .hero-description {
    margin-bottom: 0;
}

/* Sections ------------------------------------------------------------------ */

.grievance-section {
    padding: 72px 0;
}

.grievance-section--tight {
    padding: 0 0 72px;
}

.grievance-section-header {
    margin-bottom: 32px;
}

.grievance-section-header .heading-h2 {
    margin-bottom: 12px;
}

.grievance-section-intro {
    max-width: 640px;
    margin-bottom: 0;
}

/* Shared card --------------------------------------------------------------- */

.grievance-card {
    background: var(--color-white);
    border: 1px solid var(--grievance-card-border);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
}

.grievance-card-title {
    font-family: var(--font-intel);
    color: var(--color-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    margin-bottom: 8px;
}

.grievance-card-text {
    margin-bottom: 0;
}

/* Steps --------------------------------------------------------------------- */

.grievance-step-label {
    font-family: var(--font-intel);
    color: var(--accent-brand-primary-50);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Callout ------------------------------------------------------------------- */

.grievance-callout {
    /* Same spelling the rest of style.css uses for this soft green (7 occurrences).
       --accent-brand-primary-10 is referenced there but never declared in :root, so the
       literal is doing the work — matching the existing spelling keeps this page in step
       with the others if and when the token is finally declared. */
    background: var(--accent-brand-primary-10, #EAEFE9);
    border-radius: 20px;
    padding: 24px 28px;
}

.grievance-callout p {
    margin-bottom: 0;
}

.grievance-callout strong {
    color: var(--color-heading);
    font-weight: 600;
}

.grievance-callout a {
    color: var(--color-dark-green);
    text-decoration: underline;
}

.grievance-callout a:hover {
    color: var(--button-primary-bg);
}

/* Plan list ----------------------------------------------------------------- */

/* The plans are a list of links, so the grid is a <ul>; Bootstrap's row/col carry the
   layout and this only strips the list affordances. */
.grievance-plan-grid {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.grievance-plan-card {
    display: flex;
    flex-direction: column;
}

.grievance-plan-card .grievance-card-title {
    margin-bottom: 20px;
}

.grievance-plan-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 20px;
    border: 1px solid var(--grievance-card-border);
    border-radius: var(--radius-full);
    font-family: var(--font-intel);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-dark-green);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.grievance-plan-link:hover,
.grievance-plan-link:focus-visible {
    background-color: var(--button-primary-bg);
    border-color: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.grievance-plan-link svg {
    flex-shrink: 0;
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 991px) {
    .grievance-hero {
        padding: 64px 0;
    }

    .grievance-section {
        padding: 56px 0;
    }

    .grievance-section--tight {
        padding: 0 0 56px;
    }
}

@media (max-width: 768px) {
    .grievance-hero {
        padding: 48px 0;
    }

    .grievance-card {
        padding: 24px;
    }

    .grievance-callout {
        padding: 20px 24px;
    }
}
