.editorial-page .resource-main { max-width:1000px; }
.editorial-page .resource-hero { max-width:900px; }
.editorial-page .resource-main a { text-decoration:underline; text-underline-offset:4px; }
.article-contents { display:block; padding:24px 28px; margin-bottom:24px; border:1px solid #dfe6ef; background:#eaf4ff; border-radius:18px; }
.article-contents ol { margin:14px 0 0; padding-left:22px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 28px; }
.article-contents a { font-weight:550; line-height:1.5; color:#114dc0; }
.editorial-page .resource-article { overflow:visible; }
.editorial-page .resource-article section { scroll-margin-top:120px; }
.editorial-page .table-wrap { max-width:100%; }
.editorial-page .resource-article .budget-table { min-width:0; table-layout:fixed; }
.editorial-page .budget-table th,.editorial-page .budget-table td { min-width:0; overflow-wrap:anywhere; }
.editorial-page .budget-table th:last-child,.editorial-page .budget-table td:last-child { width:5.5rem; text-align:right; white-space:nowrap; }
.editorial-page caption { text-align:left; color:#58677a; font-size:.9rem; margin-bottom:12px; }
.editorial-page blockquote { margin:20px 0; padding:16px 24px; border-left:4px solid #0a73d9; background:#f2f6fd; }
.worksheet-download { clear:both; padding:24px; border:1px solid #cfe4f9; border-radius:16px; background:#eaf4ff; }
.worksheet-download a { display:inline-block; font-weight:750; }
.worksheet-download p { font-size:.9rem; margin:12px 0 0; }
.editorial-related { padding:24px 0; }
.editorial-related ul { padding-left:22px; line-height:1.8; }
.resource-card .editorial-country { display:inline-block; font-size:.8rem; color:#58677a; margin-bottom:12px; }
.resource-card-featured { background:#eaf4ff; }
@media(max-width:760px) { .article-contents ol { grid-template-columns:1fr; } .article-contents { padding:20px; } .editorial-page .resource-article { padding:24px 20px; } .editorial-page th,.editorial-page td { padding:10px; min-width:100px; } }
@media print { .article-contents,.worksheet-download,.editorial-related { display:none; } .editorial-page .resource-main { padding:0; } .editorial-page .resource-article { border-radius:0; padding:0; } .editorial-page .table-wrap { overflow:visible; } }

/* The guide keeps a stable topic list while each topic remains a normal, shareable HTML page. */
.help-page .resource-main { max-width:1280px; padding-top:40px; }
.help-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:48px; align-items:start; }
.help-sidebar { position:sticky; top:112px; max-height:calc(100vh - 140px); overflow:auto; padding:20px 0; }
.help-sidebar nav { display:block; }
.help-nav-title { font-weight:750; margin:0 0 24px; }
.help-nav-group { margin-top:26px; }
.help-nav-group > p { color:#58677a; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.help-sidebar ul { list-style:none; margin:0; padding:0; }
.help-sidebar li { margin:4px 0; }
.help-page .help-sidebar a { display:block; text-decoration:none; color:#35465d; padding:10px 14px; border-radius:9px; line-height:1.5; font-size:.94rem; }
.help-page .help-sidebar a:hover { background:#e9eff8; }
.help-page .help-sidebar a[aria-current="page"] { background:#e4efff; color:#114dc0; font-weight:700; border-left:3px solid #1766d6; }
.help-sidebar small { white-space:nowrap; }
.help-content { min-width:0; }
.help-page .resource-hero { padding:16px 0 24px; }
.help-page .resource-hero h1 { font-size:clamp(2rem,3.1vw,2.8rem); line-height:1.2; }
.help-page .resource-lead { font-size:1.08rem; margin:18px 0; }
.help-page .resource-article { padding:32px; }
.help-page .article-contents ol { grid-template-columns:1fr; gap:8px; }
.help-page .article-contents { padding:20px 24px; }
.help-page .resource-screen { max-width:180px; }
.help-page .resource-article section { display:flow-root; }
.help-page .help-start-link { display:inline-block; margin:4px 0 12px; font-weight:700; }
.help-mobile-nav { display:none; }
@media(max-width:960px) {
 .help-layout { grid-template-columns:1fr; gap:12px; }
 .help-sidebar { position:static; padding:0; max-height:none; overflow:visible; }
 .help-sidebar .help-desktop-nav { display:none; }
 .help-mobile-nav { display:block; border:1px solid #dfe6ef; border-radius:12px; background:white; }
 .help-mobile-nav summary { padding:16px; cursor:pointer; font-weight:700; }
 .help-mobile-nav nav { padding:0 12px 14px; }
 .help-page .resource-main { padding-top:24px; }
 .help-page .resource-article { padding:24px 20px; }
 .help-page .resource-screen { float:none; margin:0 auto 24px; }
 .help-page .resource-hero h1 { font-size:2rem; }
}
@media print { .help-sidebar { display:none; } .help-layout { display:block; } .help-page .resource-article { padding:0; } }

/* Ukrainian guide: five pages; links inside the active page scroll to sections. */
.uk-help-page .help-sidebar a { font-size:.9rem; padding:9px 12px; }
.uk-help-page .help-nav-title { margin-bottom:14px; }
.uk-help-page .resource-hero { padding-bottom:12px; }
.uk-help-page .resource-article h2 { font-size:1.35rem; }
.uk-help-page .resource-article dd { margin:4px 0 20px; color:#43536a; }
.uk-help-page .resource-article dt { margin-top:20px; }
.uk-help-page .resource-article section:last-child { margin-bottom:0; }
.uk-help-page .help-start-steps { padding-left:24px; }
.uk-help-page .help-start-steps li { padding:4px 0 12px 6px; }
.uk-help-page .help-start-steps a { font-weight:700; }
.uk-help-page .help-start-steps span { display:block; color:#58677a; font-size:.95rem; margin-top:4px; }
.uk-help-page .resource-cta { padding:24px; }
.uk-help-page .resource-cta h2 { font-size:1.25rem; }
.uk-help-page summary:focus-visible { outline:3px solid #ffbd28; outline-offset:3px; border-radius:6px; }

.uk-help-page .guide-page-links { margin-top:12px; }
.uk-help-page .help-sidebar .guide-section-links { padding:4px 0 12px 14px; }
.uk-help-page .guide-section-links a { font-size:.82rem; padding:6px 10px; border-left:1px solid #dfe6ef; border-radius:0; }
.uk-help-page .article-contents { background:#f4f7fc; }
.uk-help-page .article-contents ol { grid-template-columns:repeat(2,minmax(0,1fr)); }
.uk-help-page .resource-article h3 { font-size:1.08rem; margin:24px 0 12px; }
.uk-help-page .resource-article section + section { border-top:1px solid #dfe6ef; padding-top:32px; margin-top:32px; }
.guide-section-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:28px; align-items:start; }
.guide-section-layout > div { min-width:0; }
.guide-screenshot { margin:8px 0 20px; width:280px; max-width:100%; }
.guide-screenshot img { display:block; width:100%; height:auto; border:1px solid #dfe6ef; border-radius:18px; box-shadow:0 8px 24px #162b4d14; }
.guide-screenshot figcaption { font-size:.8rem; color:#58677a; line-height:1.6; margin-top:12px; }
.guide-screenshot figcaption a { display:inline-block; }
@media(max-width:1150px) and (min-width:961px), (max-width:620px) {
 .guide-section-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
 .guide-screenshot { margin:8px auto 24px; width:300px; max-width:100%; }
}
@media(max-width:620px) { .uk-help-page .article-contents ol { grid-template-columns:1fr; } }

/* Keep each illustration next to its explanation, including on a phone. */
.guide-block + .guide-block { margin-top:32px; }
.guide-section-layout > .guide-screenshot { grid-column:2; grid-row:1; }
.guide-section-layout > .guide-block-copy { grid-column:1; grid-row:1; }
.guide-example { padding:16px 20px; background:#f2f7ff; border-left:3px solid #2563eb; border-radius:0 10px 10px 0; }
.guide-pagination { display:flex; gap:16px; margin:28px 0; }
.guide-pagination > a { flex:1; padding:18px; border:1px solid #dfe6ef; border-radius:12px; background:white; text-decoration:none!important; }
.guide-pagination small,.guide-pagination span { display:block; }
.guide-pagination span { margin-top:8px; font-weight:650; }
.guide-pagination small { color:#58677a; }
#guide-menu { scroll-margin-top:100px; }
.guide-back-menu { display:none; }
.guide-back-menu[hidden] { display:none!important; }
#guide-image-dialog { box-sizing:border-box; width:min(960px,96vw); max-height:94dvh; padding:20px; border:0; border-radius:16px; background:#fff; color:#162b4d; overflow:auto; }
#guide-image-dialog::backdrop { background:#102239bb; }
.guide-image-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; position:sticky; top:-20px; background:#fff; padding:12px 0; z-index:1; }
.guide-image-toolbar h2 { margin:0; font-size:1.1rem; }
#guide-image-dialog .guide-image-toolbar button { flex-shrink:0; border:1px solid #cbd5e1; background:#f4f7fc; border-radius:8px; padding:12px; color:#162b4d!important; cursor:pointer; font:inherit; }
.guide-image-caption { color:#58677a; font-size:.9rem; }
.guide-image-view img { display:block; width:100%; max-width:640px; height:auto; margin:auto; }
@media(max-width:1150px) and (min-width:961px), (max-width:620px) {
 .guide-section-layout > .guide-screenshot,.guide-section-layout > .guide-block-copy { grid-column:1; grid-row:auto; }
}
@media(max-width:960px) {
 .guide-back-menu { display:block; position:fixed; right:16px; bottom:max(16px,env(safe-area-inset-bottom)); z-index:30; padding:12px 18px; border-radius:24px; background:#174fa8; color:#fff!important; box-shadow:0 4px 18px #162b4d30; font-size:.9rem; font-weight:650; text-decoration:none!important; }
 .uk-help-page .resource-main { padding-bottom:84px; }
}
@media(max-width:620px) {
 .guide-pagination { flex-direction:column; }
 #guide-image-dialog { padding:12px; }
 .guide-image-toolbar { top:-12px; }
 .guide-image-toolbar h2 { font-size:.95rem; }
}
@media(prefers-reduced-motion:reduce) { .uk-help-page { scroll-behavior:auto; } }
