@import url("base.css");

/* Safety Guide: three steps to remember, then prevention and recovery. */
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 8px 0 36px;
    counter-reset: step;
}

.step-card {
    background-color: var(--surface);
    color: var(--text);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    counter-increment: step;
}

.step-card::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--teal-soft);
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 14px;
}

.step-card h2 {
    color: var(--ink-900);
    letter-spacing: 0.04em;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    margin: 0;
    color: var(--muted);
}

main > h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 36px;
}

.guide-grid .panel {
    padding: 0 12px 0 0;
}

.guide-grid .panel h2 {
    font-size: 1.1rem;
}

.guide-grid .panel p {
    margin: 0;
    color: var(--muted);
}

.recover .panel h2 {
    color: var(--warn);
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.link-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink-900);
    font-weight: 600;
    text-decoration: none;
}

.link-list a:hover {
    color: var(--amber);
    background-color: transparent;
}

.link-list a::after {
    content: "\2197";
    margin-left: auto;
    color: var(--teal-dark);
}

@media (max-width: 760px) {
    .step-grid, .guide-grid {
        grid-template-columns: 1fr;
    }
}
