/* 10 Nov 2026: accessible standalone tools + opaque, mobile-friendly search */
.next-tools,.suite-page{--next-line:#cfdef0}
.next-tools h2{line-height:1.26}.next-tools p{line-height:1.7}
.next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:16px 0}
.next-grid label,.next-grid .suite-field{display:flex;flex-direction:column;gap:8px;font-weight:680;min-width:0}
.next-grid input,.next-grid select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #adbfda;border-radius:10px;background:#fff;color:#10284d;font-size:16px}
.next-grid input:focus-visible,.next-grid select:focus-visible,.next-choice input:focus-visible{outline:3px solid #ed781c;outline-offset:2px}
.next-fieldset{border:1px solid var(--next-line);border-radius:15px;padding:20px;margin:15px 0;min-width:0}
.next-fieldset legend{font-weight:800;padding:0 8px}
.next-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.next-choice{display:flex;align-items:center;gap:11px;background:#f2f7fe;border:1px solid #d0deef;border-radius:10px;padding:11px 12px;font-size:15px;font-weight:650;min-height:58px;cursor:pointer}
.next-choice input{width:20px;height:20px;flex-shrink:0;accent-color:#1e4b92}
.next-choice:has(input:checked){border-color:#16539d;background:#e6f2ff}
.next-actions{display:flex;flex-wrap:wrap;gap:11px;align-items:center;margin:20px 0}
.next-actions button{min-height:49px;font-size:16px;padding:10px 19px;cursor:pointer;border-radius:10px}
.next-actions button:disabled{opacity:.55;cursor:not-allowed}
.next-results{padding:20px;line-height:1.6;background:#f4f8ff;border:1px solid #cddff2;border-radius:14px}
.next-muted{color:#495f7b;font-size:14px;line-height:1.65;margin:10px 0}
.next-result-header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;font-size:20px;margin-bottom:14px}
.next-result-header span{font-size:14px;background:#d9e8fa;border-radius:99px;padding:5px 11px}
.next-output-group{margin:14px 0;padding:15px;background:#fff;border:1px solid #d6e1ed;border-radius:12px}
.next-output-group h3{margin:0 0 12px;font-size:19px}
.next-checklist{padding:0;list-style:none;display:grid;gap:10px;margin:0}
.next-checklist li{border-bottom:1px solid #edf0f5;padding:5px 0 9px}
.next-checklist label{display:flex;gap:10px;cursor:pointer;align-items:flex-start}
.next-checklist input{width:20px;height:20px;flex-shrink:0;accent-color:#23539e;margin-top:3px}
.next-deadline{padding:14px;background:#fff4e5;border-left:4px solid #f37a10}
.next-combo-row{position:relative;border:1px solid #c0d2e8;border-radius:14px;padding:20px;margin:17px 0;min-width:0;background:#f8fbff}
.next-combo-row legend{font-weight:800;padding:0 10px}
.next-combo-row .next-remove{display:block;margin-left:auto;padding:7px 12px;border-radius:8px;border:1px solid #9fb6d1;color:#153764;background:white;cursor:pointer}
.next-method-steps>li{padding:9px 0}.next-method-steps ul{margin-top:7px}.next-warning{padding:15px;border:2px solid #d08223;border-radius:11px;background:#fff4dc}
.next-total{border:1px solid #5ba18b;background:#e8faf1;padding:18px;border-radius:12px;margin:15px 0;color:#143b34}.next-total strong{font-size:30px}
.next-law p{padding:9px 12px;margin:8px 0;border-left:3px solid #2c66b2;background:#f1f6fc}
.next-institution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:20px 0}
.next-institution-grid article{border:1px solid #cad9ed;background:#f7fbff;border-radius:12px;padding:17px}
.next-institution-grid h3{font-size:19px;margin:0 0 9px}.next-institution-grid p{margin:5px 0 9px;line-height:1.56}
.next-source-check{margin:15px 0;padding:15px;border-left:4px solid #e7760a;background:#fff8e9}
.nme-specifics{border:1px solid #c3d7e8;border-left:5px solid #1b61ad;background:#f5faff;border-radius:10px;padding:22px;margin:28px 0}
.nme-specifics h2{margin-top:7px}.nme-specifics h3{margin:16px 0 7px}.nme-specifics li{margin:9px 0;line-height:1.65}.nme-specifics a{text-decoration:underline}
.nme-specifics-kicker{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#315785;font-weight:800}
.nme-caution{border-left:3px solid #e68023;padding:11px 14px;background:#fff4e8}
html[data-theme="dark"] .next-choice,html[data-theme="dark"] .next-combo-row,html[data-theme="dark"] .next-institution-grid article,html[data-theme="dark"] .nme-specifics,html[data-theme="dark"] .next-results{background:#152b46;color:#f4f8ff;border-color:#45617d}
html[data-theme="dark"] .next-output-group,html[data-theme="dark"] .next-law p{background:#1b3555;color:#f4f8ff;border-color:#52718b}
html[data-theme="dark"] .next-muted{color:#d1dfef}
html[data-theme="dark"] .next-grid input,html[data-theme="dark"] .next-grid select{background:#10223b;border-color:#7690a7;color:#f8fbff}
html[data-theme="dark"] .nme-specifics-kicker{color:#accbf4}
html[data-theme="dark"] .next-deadline,html[data-theme="dark"] .next-warning,html[data-theme="dark"] .next-source-check,html[data-theme="dark"] .nme-caution{background:#3a2c21;color:#fff5e7}
html[data-theme="dark"] .next-total{background:#103a36;color:#e4fff5}
html[data-theme="dark"] .next-choice:has(input:checked){background:#224874;border-color:#9dc8f8}
/* Default: search remains a solid, high contrast white or dark navy panel. */
.hero:has(.search-hints.is-open){overflow:visible!important;z-index:200!important}
.hero:has(.search-hints.is-open) .hero-inner{z-index:250!important}
.hero-search:has(.search-hints.is-open){z-index:400!important;position:relative}
.hero-search .search-hints{opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;max-height:min(490px,60dvh)!important;overscroll-behavior:contain;scrollbar-width:auto;box-shadow:0 16px 45px rgba(12,36,76,.27)!important}
html:not([data-theme="dark"]) .hero-search .search-hints{background:#fff!important;color:#10274e!important}
html[data-theme="dark"] .hero-search .search-hints{background:#10243d!important;color:#fff!important}
.hero-search .search-hints a.search-suggestion{min-height:51px!important;align-items:center!important;padding:11px 12px!important}
.hero-search .search-hints-heading{padding:8px 12px!important;font-weight:800;font-size:14px!important}
.hero-search .search-hints-more{min-height:49px!important;font-weight:800}
@media(max-width:760px){
 .next-grid,.next-institution-grid{grid-template-columns:1fr}
 .next-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .next-fieldset{padding:12px}.next-choice{padding:10px;font-size:14px;min-height:58px}
 .next-tools{padding-left:13px!important;padding-right:13px!important}
 .next-tools .tool-panel{padding:16px!important}
 .next-actions button{width:100%}
 .hero-search{position:relative!important;width:100%!important;max-width:100%!important}
 .hero-search .search-hints{max-height:min(54dvh,420px)!important;left:0!important;right:0!important;border-radius:12px!important;padding:5px!important}
 .hero-search .search-hints a.search-suggestion{min-height:56px!important;gap:10px!important;align-items:flex-start!important}
 .hero-search .search-suggestion-content{min-width:0;flex:1}
 .hero-search .search-suggestion-content strong{font-size:15px!important;line-height:1.25;overflow-wrap:anywhere}
 .hero-search .search-suggestion-content small{font-size:12px!important;line-height:1.3}
 .hero-search .search-hints .search-suggestion-arrow{display:none}
 .hero-search .search-hints-heading{font-size:14px!important}
 .hero-search .search-form{gap:7px!important;padding-left:9px!important}
 .hero-search .search-form input{font-size:16px!important;min-width:0!important}
 .hero-search .search-form button{padding:0 10px!important;min-width:70px}
}
@media(max-width:390px){.next-choice-grid{grid-template-columns:1fr}.hero-search .search-form button{min-width:62px;padding:0 7px!important}.hero-search .search-form{gap:5px!important}.hero-search .search-form input{font-size:16px!important}}
@media print{.site-header,.site-footer,.next-actions,.next-tools aside.tool-instructions,.suite-bottom-navigation,.hero-search,.next-remove{display:none!important}.next-output-group,.next-checklist li,.next-combo-row{break-inside:avoid}.nme-specifics{background:white!important;color:black!important}}
