.advice-index-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:2rem; }
.advice-index-nav a { background:#e8f0f6; color:#12365a; padding:.55rem .8rem; border-radius:999px; font-weight:700; }
.advice-index-group { margin-block:1.5rem; scroll-margin-top:9rem; }
.advice-index-group :is(h2,summary) { font-size:clamp(1.15rem,2.2vw,1.7rem); font-weight:700; color:#12365a; margin-bottom:.6rem; }
.advice-index-group summary { cursor:pointer; }
.advice-index-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:.45rem; }
.advice-index-cards > a { display:flex; align-items:center; justify-content:space-between; gap:1rem; border:1px solid #d4e2ec; padding:.6rem .8rem; min-height:44px; border-radius:.65rem; color:#12365a; font-weight:600; }
.advice-index-cards > a:hover { background:#e8f0f6; }
.advice-index-cards > a span:last-child { color:#cc0078; }

.advice-index-group > .advice-index-cards { gap: .75rem; }
.advice-index-card { min-width: 0; height: 100%; }
.advice-index-card > a {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d4e2ec;
    border-radius: .8rem;
    background: #fff;
    color: #12365a;
}
.advice-index-card > a:hover { border-color: #9cb8cf; background: #f5f9fc; }
.advice-index-card > a:focus-visible { outline: 3px solid #1d6dac; outline-offset: 2px; }
.advice-index-card img { width: 100%; height: auto; aspect-ratio: 2.7; object-fit: cover; background: #e8f0f6; }
.advice-index-card-copy { padding: .75rem 2rem .8rem .9rem; overflow-wrap: anywhere; }
.advice-index-card h3 { font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.25; font-weight: 700; }
.advice-index-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: .25rem;
    font-size: .9rem;
    line-height: 1.4;
    color: #456178;
}
.advice-index-card-arrow { color: #cc0078; position: absolute; bottom: .8rem; right: .8rem; }
@media (max-width: 600px) {
    .advice-index-group > .advice-index-cards { gap: .45rem; }
    .advice-index-card > a {
        display: grid;
        grid-template-columns: clamp(68px, 22vw, 90px) minmax(0, 1fr) auto;
        gap: .55rem;
        align-items: center;
        padding: .4rem .55rem .4rem .4rem;
    }
    .advice-index-card img { height: 70px; border-radius: .45rem; }
    .advice-index-card-copy { padding: .08rem 0; }
    .advice-index-card p { font-size: .84rem; }
    .advice-index-card-arrow { position: static; }
}
