/* Trip Budget Calculator. Loaded after home.css and guide.css; reuses their color variables. */
.budget-page main{max-width:960px}
.budget-page .bd-head{padding-top:30px}
.budget-page .bd-head h1{font-size:clamp(28px,4vw,40px);line-height:1.25;margin:8px 0 14px}
.budget-page .bd-head p{font-size:19px;line-height:1.7;color:#465a50;margin:0}
.budget-page .language a{font-size:13px;border-radius:20px;padding:7px 10px;display:flex;align-items:center;min-height:32px}
.budget-page .language .active{color:#fff;background:var(--green)}
.budget-page nav a.current{color:var(--green);text-decoration:underline;text-underline-offset:5px}
.bd-calc{margin-top:28px}
.bd-block{border:1px solid var(--line);background:#fff;border-radius:12px;padding:24px;margin-bottom:22px}
.bd-block h2{font-size:23px;font-weight:600;letter-spacing:-.4px;margin:0 0 18px}
.bd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
.bd-field{min-width:0}
.bd-field label{display:block;font-size:17px;font-weight:600;line-height:1.45;margin-bottom:7px}
.bd-tag{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:2px}
.bd-input{display:flex;align-items:center;gap:10px}
.bd-input input{flex:1;min-width:0;min-height:50px;font-size:19px;padding:8px 14px;border:1px solid #a8b6aa;border-radius:8px;background:#fff;color:var(--ink)}
.bd-input input[aria-invalid=true]{border-color:#a3321f;background:#fff6f4}
.bd-suffix{font-size:16px;color:var(--muted)}
.bd-hint{font-size:14px;line-height:1.6;color:var(--muted);margin:6px 0 0}
.bd-err{font-size:15px;line-height:1.5;color:#a3321f;margin:6px 0 0;min-height:0}
.bd-err:empty{display:none}
.bd-presets{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.bd-presets button{min-height:48px;padding:10px 22px;font-size:17px;border:1px solid #a8b6aa;border-radius:26px;background:#fff;color:var(--ink)}
.bd-presets button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}
.bd-note{font-size:15px;line-height:1.7;color:var(--muted);margin:10px 0 0}
.bd-custom{font-size:15px;font-weight:600;color:var(--green);margin:0 0 6px}
.bd-result{background:#e6ebdf;border-color:#d0d9c7}
.bd-total-label{font-size:16px;color:#465a50;margin:0}
.bd-total{font-size:clamp(32px,6vw,46px);font-weight:700;letter-spacing:-1px;line-height:1.2;margin:4px 0 16px;overflow-wrap:anywhere}
.bd-per{font-size:clamp(24px,4.5vw,32px);font-weight:600;margin:4px 0 4px;overflow-wrap:anywhere}
.bd-conv{font-size:17px;color:#465a50;margin:6px 0 0}
.bd-items{list-style:none;padding:0;margin:20px 0 0}
.bd-items li{margin-bottom:14px}
.bd-item-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:16px;margin-bottom:6px}
.bd-bar{height:10px;background:#fff;border-radius:6px;overflow:hidden}
.bd-bar i{display:block;height:100%;background:var(--green);border-radius:6px}
.bd-result h3{font-size:18px;font-weight:600;margin:26px 0 0}
.bd-error{font-size:18px;line-height:1.7;color:#a3321f;margin:0}
.bd-actions{margin-top:20px}
.bd-actions button{min-height:48px;padding:10px 22px;font-size:16px;border:1px solid #a8b6aa;border-radius:26px;background:#fff;color:var(--ink)}
.bd-actions button:hover{border-color:var(--green);color:var(--green)}
.bd-rate-line{margin-top:0}
/* Ad zones: empty, with generous space so they never sit near buttons or inputs. */
.bd-ad{margin:56px 0;min-height:0}
.bd-ad[data-ad-zone]:empty{display:none}
.bd-article{max-width:740px;margin:0 auto}
.bd-article h2{font-size:27px;line-height:1.3;font-weight:500;letter-spacing:-.6px;margin:48px 0 18px;padding-top:30px;border-top:1px solid var(--line)}
.bd-article h3{font-size:20px;font-weight:600;margin:28px 0 12px}
.bd-article p,.bd-article li{font-size:18px;line-height:1.85;color:#465a50}
.bd-article p{margin:0 0 16px}
.bd-article ul,.bd-article ol{padding-left:24px;margin:0 0 16px}
.bd-article li{margin-bottom:10px}
.bd-formula li{font-family:inherit}
.bd-table-wrap{overflow-x:auto;margin:0 0 16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.bd-table{border-collapse:collapse;width:100%;min-width:560px;font-size:16px}
.bd-table th,.bd-table td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--line);line-height:1.55}
.bd-table th{font-size:14px;color:var(--muted);font-weight:600}
.bd-table tr:last-child td{border-bottom:0}
.bd-table a{color:var(--green);text-decoration:underline;text-underline-offset:3px;padding:3px 0;display:inline-block}
.bd-example{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 20px;margin-bottom:16px}
.bd-example p,.bd-example li{margin-bottom:8px}
.bd-faq dt{font-size:19px;font-weight:600;margin:22px 0 6px;color:var(--ink)}
.bd-faq dd{margin:0;font-size:18px;line-height:1.8;color:#465a50}
.bd-places{list-style:none;padding:0;margin:0 0 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.bd-places a{display:flex;align-items:center;min-height:56px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:18px;font-weight:600;color:var(--ink)}
.bd-places a:hover{border-color:var(--green);color:var(--green)}
.bd-cam{display:inline-block;margin-top:6px;font-size:18px;color:var(--green);text-decoration:underline;text-underline-offset:4px;padding:10px 0}
html[lang=ko] .bd-article,html[lang=ko] .bd-head p{word-break:keep-all}
html[lang=ja] .bd-article p,html[lang=ja] .bd-article li{line-height:1.95}
@media(max-width:700px){
  .bd-grid{grid-template-columns:1fr}
  .bd-block{padding:18px 16px}
  .bd-places{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bd-article h2{font-size:24px}
  .bd-head p{font-size:18px}
}
