/* Guide-library additions. Loaded on guide pages only. */
.guide-answer {
    padding:24px;
    margin-bottom:30px;
    background:var(--panel);
    border-left:3px solid var(--blue);
}
.guide-answer>strong {
    display:block;
    margin-bottom:10px;
    font-family:var(--mono);
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:var(--blue);
}
.guide-answer p:last-child { margin:0; }
.library-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin:24px 0 38px;
}
.library-card {
    display:flex;
    flex-direction:column;
    padding:24px;
    background:var(--panel);
    border:1px solid var(--line);
    text-decoration:none;
    color:var(--ink);
}
.library-card:hover { border-color:var(--blue); }
.article-body .library-card h3 {
    font-size:23px;
    margin:12px 0 14px;
}
.article-body .library-card p {
    font-size:14px;
    line-height:1.7;
}
.library-card .guide-more { margin-top:auto; }
.guide-discovery {
    padding:25px;
    margin:32px 0;
    background:var(--panel);
    border:1px solid var(--line);
}
.article-body .guide-discovery h2 {
    font-size:26px;
    margin:0 0 18px;
}
.guide-discovery ul { margin-bottom:0; }
@media(max-width:680px) {
    .library-grid { grid-template-columns:1fr; }
    .library-card { padding:22px; }
    .guide-answer,.guide-discovery { padding:20px; }
}

.guide-glossary dt {
    margin-top:24px;
    font-weight:700;
    scroll-margin-top:100px;
}
.guide-glossary dd { margin:8px 0 24px; }
.flight-checklist fieldset {
    border:1px solid var(--line);
    padding:16px;
    margin:24px 0;
    min-width:0;
}
.flight-checklist legend { padding:0 8px; font-weight:600; }
.flight-checklist label {
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:12px 4px;
    cursor:pointer;
}
.flight-checklist input[type=checkbox] {
    flex:0 0 20px;
    width:20px;
    height:20px;
    margin-top:4px;
    accent-color:var(--blue);
}
.flight-checklist input:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.flight-checklist label:has(input:checked) span { color:var(--muted); }
.checklist-controls { padding:20px; border:1px solid var(--line); background:var(--panel); }
.checklist-controls p { margin:0 0 16px; }
.checklist-actions { display:flex; flex-wrap:wrap; gap:12px; }
.checklist-actions .button { white-space:normal; }
.checklist-actions [hidden] { display:none; }
@media print {
    .checklist-page { background:white!important; color:black!important; color-scheme:light!important; }
    .checklist-page .site-head,.checklist-page .site-foot,.checklist-page .breadcrumb,
    .checklist-page .article-side,.checklist-page .toast,.checklist-page .skip-link,
    .checklist-page .article-head :not(h1),.checklist-page .article-body>:not(.flight-checklist),
    .checklist-page .checklist-controls,.checklist-page .flight-checklist>p:not(.small-text) { display:none!important; }
    .checklist-page .shell { width:auto; max-width:none; padding:0; margin:0; }
    .checklist-page .article-head { padding:0; margin:0 0 12px; border:0; }
    .checklist-page .article-head h1 { font-size:24px; line-height:1.2; color:black; margin:0; }
    .checklist-page .article-layout { display:block; padding:0; margin:0; }
    .checklist-page .article-body { max-width:none; font-size:11pt; line-height:1.4; color:black; }
    .checklist-page .flight-checklist h2 { font-size:15pt; color:black; margin:16px 0 8px; break-after:avoid; }
    .checklist-page .flight-checklist .small-text { color:black; font-size:9pt; }
    .checklist-page .flight-checklist fieldset { border:1px solid #666; padding:8px; margin:8px 0; break-inside:avoid; }
    .checklist-page .flight-checklist label { padding:6px 4px; }
    .checklist-page .flight-checklist label span { color:black!important; }
    .checklist-page .flight-checklist input[type=checkbox] { flex-basis:16px; width:16px; height:16px; margin-top:2px; }
}

/* Enhancements remain hidden until ready; complete articles stay in the HTML. */
.guide-search,.budget-tool { padding:24px; margin:28px 0; background:var(--panel); border:1px solid var(--line); }
.tool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.guide-search label,.budget-tool label { display:block; font-weight:600; margin-bottom:8px; }
.guide-search input,.guide-search select,.budget-tool input {
    display:block; width:100%; min-width:0; min-height:48px;
    padding:10px 12px; border:1px solid var(--muted); border-radius:0;
    background:var(--bg); color:var(--ink); font:inherit;
}
.guide-search input:focus-visible,.budget-tool input:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.tool-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.tool-actions .button { white-space:normal; }
.tool-results { border-top:1px solid var(--line); padding-top:20px; margin-top:24px; }
.tool-results dl>div { margin-bottom:16px; }
.tool-results dt { color:var(--muted); }
.tool-results dd { margin:4px 0; font-family:var(--display); font-size:25px; overflow-wrap:anywhere; }
.tool-error:not(:empty) { border-left:3px solid var(--amber); padding:12px; }
.guide-search [data-guide-count] { margin-bottom:0; }
.guide-search[hidden],.budget-tool[hidden],.library-card[hidden],
[data-guide-group][hidden],[data-guide-category][hidden],
[data-guide-empty][hidden],[data-budget-results][hidden] { display:none; }
@media(max-width:680px) {
    .tool-grid { grid-template-columns:1fr; }
    .guide-search,.budget-tool { padding:20px; }
}

.starting-paths { border:1px solid var(--line); padding:0 22px; margin:28px 0; background:var(--panel); }
.starting-paths>summary { padding:18px 0; cursor:pointer; font-weight:600; }
.starting-paths[open] { padding-bottom:20px; }
.path-grid { display:grid; gap:16px; }
.article-body .path-grid h3 { margin:8px 0 12px; font-size:23px; }
.path-grid ol { margin:0; }
.path-grid li { padding-bottom:8px; }
.guide-next-steps { padding:24px; border:1px solid var(--line); margin:36px 0; background:var(--panel); }
.article-body .guide-next-steps h2 { font-size:28px; margin:0 0 20px; }
.guide-next-steps ul { list-style:none; padding:0; margin:0 0 20px; }
.guide-next-steps li+li { border-top:1px solid var(--line); }
.guide-next-steps li a { display:block; min-height:44px; padding:16px 0; text-decoration:none; }
.guide-next-steps strong { display:block; font-size:17px; text-decoration:underline; text-underline-offset:4px; }
.guide-next-steps span { display:block; margin-top:6px; color:var(--muted); font-size:14px; line-height:1.6; }
@media(max-width:680px) {
    .starting-paths { padding-inline:18px; }
    .guide-next-steps { padding:20px; }
}
