/* Small interactive tools: shared box and form controls, then per-tool parts. */
.cost-calc, .bluecard-calc, .visa-check { margin-block: 20px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.cost-calc label, .bluecard-calc label, .visa-check label { display: grid; gap: 4px; }
.cost-calc label > span, .bluecard-calc label > span, .visa-check label > span { font: 600 13px/1.4 var(--display); color: var(--muted); }
.cost-calc :is(select, input), .bluecard-calc :is(select, input), .visa-check select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--body); padding: 8px 12px; }
.cost-calc :is(select, input):focus, .bluecard-calc :is(select, input):focus, .visa-check select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.cc-bar, .vc-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cc-bar i, .vc-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .3s var(--ease), background .2s; }

/* cost of living */
.cost-calc:empty { min-height: 420px; }
.cc-row, .bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-row { margin-bottom: 14px; }
.cc-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.cc-lines label { position: relative; }
.cc-lines em { position: absolute; inset-inline-end: 12px; bottom: 11px; font-style: normal; color: var(--muted); }
.cc-out { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cc-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cc-total small { font: 600 14px/1.4 var(--display); color: var(--muted); }
.cc-total b { font: 700 34px/1.1 var(--display); font-variant-numeric: tabular-nums; direction: ltr; }
.cc-bar { margin-top: 10px; }
.cc-bar i.over { background: var(--red); }
.prose .cc-out p { margin: 10px 0 0; font-size: 15px; }

/* Blue Card */
.bluecard-calc:empty { min-height: 330px; }
.bc-salary { grid-column: 1 / -1; }
.bc-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bc-out { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.bc-out.is-ok { background: var(--green-soft); }
.bc-out.is-no { background: var(--red-soft); }
.prose .bc-out p { margin: 0 0 6px; }
.prose .bc-verdict { font: 700 19px/1.5 var(--display); }
.bc-out.is-ok .bc-verdict { color: var(--green); }
.bc-out.is-no .bc-verdict { color: var(--red-text); }
.prose .bc-out ul { margin: 8px 0 0; padding-inline-start: 18px; font-size: 15px; }

/* visa checklist */
.visa-check:empty { min-height: 150px; }
.visa-check { position: sticky; top: calc(var(--head-h) + 10px); z-index: 6; margin-bottom: 12px; padding: 14px 16px; }
.vc-top { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vc-top label { flex: 1 1 220px; }
.vc-print { border: 0; background: var(--surface-2); color: var(--ink); border-radius: 12px; min-height: 44px; padding: 8px 14px; font: 600 14px/1.4 var(--display); cursor: pointer; }
.vc-prog { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.vc-bar { flex: 1; }
.vc-prog small { font: 600 13.5px/1.4 var(--display); color: var(--muted); white-space: nowrap; }
.prose .visa-list.is-enhanced { list-style: none; padding: 0; }
.prose .visa-list.is-enhanced > li { position: relative; padding: 12px 14px; padding-inline-start: 48px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: background .2s, border-color .2s; }
.prose .visa-list.is-enhanced > li.is-done { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.visa-list .vc-cb { position: absolute; inset-inline-start: 14px; top: 15px; width: 22px; height: 22px; accent-color: var(--green); cursor: pointer; }
.visa-list [data-for] { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 720px) {
	.cc-row, .bc-grid { grid-template-columns: 1fr; }
	.cc-lines { grid-template-columns: 1fr 1fr; }
	.cc-total b { font-size: 28px; }
	.cost-calc:empty { min-height: 560px; }
	.bluecard-calc:empty { min-height: 420px; }
}
@media print { .top, .site-footer, .vc-print, .ad, .reactions, .vote, .fbcta, .toc, .share { display: none !important; } .visa-check { position: static; box-shadow: none; } }

/* copy button on German letter templates */
.prose blockquote.has-copy { position: relative; padding-top: 48px; }
.copy-btn { position: absolute; top: 10px; inset-inline-end: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 5px 12px; font: 600 13px/1.4 var(--display); cursor: pointer; direction: rtl; }
.copy-btn:hover { border-color: var(--brand); }
.copy-btn.is-done { background: var(--green-soft); border-color: var(--green); color: var(--green); }
@media print { .copy-btn { display: none; } }
