.instructions-page .skip-link:not(:focus) { clip-path: inset(50%); }

.instructions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 255px;
    align-items: start;
    gap: 26px;
}

.instructions-content {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    gap: 24px;
    min-width: 0;
}

.instructions-aside {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
    min-width: 0;
}

.contents-card { padding: 23px 20px; gap: 4px; }
.contents-card h2 { font-size: 15px; margin-bottom: 13px; }
.contents-card a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 7px;
    color: #525252;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
}
.contents-card a:hover { background: #f5f5f5; color: var(--green); }
.contents-card a span { color: #737373; font-size: 11px; min-width: 18px; }
.contents-card .icon { width: 18px; height: 18px; }

.instructions-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 20px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #f5f5f5;
    color: #525252;
}
.instructions-note h2 { font-size: 13px; letter-spacing: 0; margin-bottom: 7px; }
.instructions-note p { font-size: 12px; line-height: 1.8; }
.instructions-intro { color: #525252; font-size: 14px; line-height: 1.85; }

.instruction-steps { list-style: none; margin: 5px 0 0; padding: 0; }
.instruction-steps li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}
.instruction-steps li:last-child { border-bottom: 0; }
.instruction-steps .step-number { width: 32px; height: 32px; font-size: 12px; }
.instruction-steps li > div { min-width: 0; }
.instruction-steps h3, .graph-instructions h3 { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.instruction-steps p, .graph-instructions p, .faq-answer {
    font-size: 14px;
    line-height: 1.85;
    color: #525252;
}
.instruction-steps strong, .graph-instructions strong, .faq-answer strong { color: #262626; font-weight: 600; }
.instructions-content [id] { scroll-margin-top: 24px; }
.instructions-action {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    border-radius: 7px;
    padding: 12px 18px;
    font-size: 14px;
    margin-top: 3px;
}
.instructions-action:hover { background: var(--dark); color: #fff; }
.instructions-action .icon { width: 18px; height: 18px; }

.graph-instructions > div + div { margin-top: 23px; padding-top: 23px; border-top: 1px solid var(--line); }
.graph-instructions .instructions-caption { font-size: 12px; margin-top: 12px; color: #737373; }
.chart-key { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0; margin: 17px 0; }
.chart-key li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #262626; }
.key-line { display: inline-block; width: 23px; border-top: 3px solid; }
.key-simulation { border-color: #087443; }
.key-contributions { border-color: #a34e00; border-top-style: dashed; }
.key-history { border-color: #175cce; border-top-style: dashed; }

.faq-list { padding: 12px 25px 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.7;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--green); font-size: 21px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { color: var(--green); }
.faq-item summary:hover { color: var(--green); }
.faq-item summary:focus-visible { outline: 3px solid #236a51; outline-offset: 2px; border-radius: 5px; }
.faq-answer { padding-bottom: 22px; }
.faq-answer ul { padding-left: 20px; margin: 10px 0; }
.faq-answer li + li { margin-top: 6px; }

@media (max-width: 1100px) {
    .instructions-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .instructions-aside { grid-column: 1; grid-row: 1; position: static; }
    .instructions-content { grid-column: 1; grid-row: 2; }
    .contents-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
    .contents-card h2 { grid-column: 1 / -1; }
    .instructions-note { display: none; }
}

@media (max-width: 700px) {
    .instructions-page .page-heading p { font-size: 13px; max-width: none; }
    .contents-card { padding: 20px 16px; gap: 0 5px; }
    .contents-card a { font-size: 12px; padding: 10px 4px; gap: 7px; }
    .instructions-content { gap: 20px; }
    .instruction-steps li { gap: 11px; padding: 22px 0; }
    .instruction-steps .step-number { width: 28px; height: 28px; font-size: 11px; }
    .instruction-steps h3, .graph-instructions h3 { font-size: 15px; }
    .instruction-steps .optional { display: block; margin-left: 0; }
    .faq-list { padding: 9px 20px 4px; }
}
