/* ===================================================================
   USTaxZH check tools
   Shared styles for interactive self-check flows.
   =================================================================== */

.check-tool{
  border:none;
  border-radius:0;
  background:transparent;
  padding:0;
  max-width:1040px;
  margin-inline:auto;
  overflow:visible;
}
.check-tool *,
.check-tool *::before,
.check-tool *::after{
  min-width:0;
}
.check-tool__mobile-progress{
  display:none;
}
.check-tool__layout{
  display:grid;
  grid-template-columns:220px minmax(0, 1fr);
  gap:24px;
  align-items:start;
}
.check-tool__layout > main{
  min-width:0;
}
.check-tool__rail{
  position:sticky;
  top:96px;
  border-left:1px solid var(--rule);
  padding-left:14px;
}
.check-tool__rail-title{
  font-family:var(--font-mono);
  font-size:.68rem;
  letter-spacing:.12em;
  color:var(--ink-soft);
  margin-bottom:8px;
}
.check-tool__rail-item{
  font-family:var(--font-mono);
  font-size:.72rem;
  color:var(--ink-soft);
  padding:6px 0;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.check-tool__rail-item.is-done{color:var(--ledger);}
.check-tool__rail-item.is-active{color:var(--ink); font-weight:600;}
.check-tool__rail-item code{
  color:var(--brass);
  margin-right:6px;
}
.check-tool__card{
  border:1px solid var(--rule);
  border-radius:var(--radius);
  background:var(--paper-2);
  padding:27px;
}
.check-tool__question-id{
  display:inline-block;
  max-width:100%;
  border:1px solid var(--brass);
  color:#5A430F;
  background:var(--brass-tint);
  padding:3px 8px;
  font-family:var(--font-mono);
  font-size:.68rem;
  margin-bottom:14px;
  overflow-wrap:anywhere;
}
.check-tool__question-title{
  font-family:var(--font-body);
  font-size:1.2rem;
  font-weight:600;
  line-height:1.45;
  margin-bottom:8px;
}
.check-tool__hint{
  color:var(--ink-soft);
  font-size:.86rem;
  line-height:1.65;
  margin-bottom:18px;
  white-space:pre-line;
}
.check-tool__hint p{
  margin:0 0 8px;
}
.check-tool__hint p:last-child{
  margin-bottom:0;
}
.check-tool__hint strong{
  color:var(--ink);
  font-weight:600;
}
.check-tool__options{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:22px;
}
.check-tool__option{
  display:flex;
  gap:11px;
  width:100%;
  padding:12px 13px;
  border:1px solid var(--rule);
  background:#fff;
  cursor:pointer;
  border-radius:var(--radius);
  transition:.15s ease;
}
.check-tool__option:hover,
.check-tool__option.is-selected{
  border-color:var(--brass);
  background:var(--brass-tint);
}
.check-tool__mark{
  width:16px;
  height:16px;
  border:1.5px solid var(--ink-soft);
  border-radius:50%;
  margin-top:4px;
  flex:0 0 auto;
}
.check-tool__option--multi .check-tool__mark{
  border-radius:3px;
}
.check-tool__option.is-selected .check-tool__mark{
  background:var(--brass);
  border-color:var(--brass);
}
.check-tool__option-text{
  min-width:0;
  flex:1;
  display:block;
  text-align:left;
}
.check-tool__option-text b{
  display:block;
  font-size:.88rem;
  line-height:1.45;
  font-weight:600;
  overflow-wrap:anywhere;
}
.check-tool__option-text span{
  display:block;
  font-size:.82rem;
  color:var(--ink-soft);
  margin-top:4px;
}
.check-tool__input-row{
  margin-bottom:0;
}
.check-tool__input-row label{
  display:block;
  font-size:.86rem;
  font-weight:600;
  color:var(--ink);
  margin-bottom:7px;
}
.check-tool__input-row input{
  width:100%;
  max-width:360px;
  border:1px solid var(--rule);
  border-radius:var(--radius);
  background:#fff;
  color:var(--ink);
  padding:11px 12px;
  font:inherit;
}
.check-tool .money-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap:14px;
  margin-bottom:22px;
}
.check-tool .money-grid .check-tool__input-row input{
  max-width:none;
}
.check-tool__nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:24px;
}
.check-tool__button{
  border:1px solid var(--ink);
  background:var(--ink);
  color:var(--paper);
  padding:10px 18px;
  font-family:var(--font-mono);
  font-size:.82rem;
  cursor:pointer;
  border-radius:var(--radius);
  white-space:normal;
}
.check-tool__button--ghost{
  background:transparent;
  color:var(--ink);
  border-color:var(--rule);
}
.check-tool__button:not(:disabled):hover{
  background:var(--ledger-dark);
}
.check-tool__button--ghost:not(:disabled):hover{
  background:var(--ledger-tint);
}
.check-tool__button:disabled{
  opacity:.38;
  cursor:not-allowed;
}
.check-tool__result-head{
  background:#fff;
  border:1.5px solid var(--ink);
  border-radius:var(--radius);
  padding:20px 22px;
  margin-bottom:16px;
}
.check-tool__result-head h2{
  margin:0 0 7px;
  font-family:var(--font-body);
  font-size:1.35rem;
  font-weight:600;
  overflow-wrap:anywhere;
}
.check-tool__result-head p{
  margin:0;
  color:var(--ink-soft);
  font-size:.86rem;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.check-tool__badge{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:.72rem;
  padding:4px 9px;
  border-radius:999px;
  margin-bottom:10px;
}
.check-tool__badge.required{
  background:#F0DAD4;
  color:var(--alert);
}
.check-tool__badge.not-required{
  background:var(--ledger-tint);
  color:var(--ledger-dark);
}
.check-tool__badge.recommended{
  background:var(--brass-tint);
  color:#5A430F;
}
.check-tool__badge.review{
  background:var(--brass-tint);
  color:#5A430F;
}
.check-tool__result-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap:13px;
}
.check-tool__card > .check-tool__result-grid{
  margin:20px 0 30px;
}
.check-tool__actions{
  flex-wrap:wrap;
  justify-content:flex-start;
  margin-top:14px;
}
.check-tool__restart{
  margin-top:18px;
}
.check-tool__result-actions{
  display:flex;
  gap:12px;
  justify-content:flex-start;
  align-items:center;
  flex-wrap:wrap;
  margin-top:18px;
}
.check-tool__print-actions{
  margin-top:18px;
}
.check-tool__print-header,
.check-tool__print-footer{
  display:none;
}
.check-tool__result-card{
  background:#fff;
  border:1px solid var(--rule);
  border-radius:var(--radius);
  padding:17px;
}
.check-tool__result-card--danger{
  border-left:4px solid var(--alert);
}
.check-tool__result-card--danger h3{
  color:var(--alert);
}
.check-tool__result-card h3{
  font-family:var(--font-body);
  font-size:.92rem;
  font-weight:600;
  margin:0 0 8px;
}
.check-tool__result-card li{
  color:var(--ink-soft);
  font-size:.82rem;
  line-height:1.6;
  margin-bottom:4px;
  overflow-wrap:anywhere;
}
.check-tool__result-card ul{
  margin:0;
  padding-left:1.1em;
}
.check-tool__selection{
  margin-top:24px;
  border-top:1px solid var(--rule);
  padding-top:14px;
}
.check-tool__selection summary{
  cursor:pointer;
  font-family:var(--font-mono);
  font-size:.84rem;
  color:var(--ledger-dark);
  margin-bottom:10px;
}
.check-tool__selection-table-wrap{
  overflow-x:auto;
  max-width:100%;
  margin-bottom:24px;
  -webkit-overflow-scrolling:touch;
}
.check-tool__selection-table{
  width:100%;
  border-collapse:collapse;
  background:var(--paper-2);
  border:1px solid var(--rule);
  font-size:.9rem;
  text-align:left;
}
.check-tool__selection-table th{
  padding:10px 12px;
  background:var(--ledger-tint);
  border-bottom:1px solid var(--rule);
  font-family:var(--font-mono);
  font-size:.76rem;
  color:var(--ledger-dark);
}
.check-tool__selection-table td{
  padding:10px 12px;
  border-bottom:1px solid var(--rule);
  line-height:1.5;
  vertical-align:top;
  overflow-wrap:anywhere;
}
.check-tool__selection-table td:first-child{
  width:50%;
  font-weight:600;
}
.check-tool__selection-table td:last-child{
  color:var(--ink-soft);
}
.check-tool__json-title{
  font-size:1rem;
  margin:0 0 10px;
  border-bottom:1px solid var(--rule);
  padding-bottom:6px;
}
.check-tool__json-box{
  background:#101826;
  color:#dbe7f5;
  padding:15px;
  overflow:auto;
  font-size:.75rem;
  line-height:1.55;
  white-space:pre-wrap;
}
.check-tool__disclaimer{
  border-top:2px solid var(--ink);
  margin-top:28px;
  padding-top:12px;
  color:var(--ink-soft);
  font-size:.78rem;
  line-height:1.7;
}

@media (max-width: 900px){
  .check-tool{
    max-width:100%;
  }
  .check-tool__layout{
    grid-template-columns:1fr;
  }
  .check-tool__rail{
    display:none;
  }
  .check-tool__mobile-progress{
    display:block;
    font-family:var(--font-mono);
    font-size:.76rem;
    color:var(--ledger-dark);
    background:var(--ledger-tint);
    border:1px solid var(--rule);
    border-radius:var(--radius);
    padding:8px 10px;
    margin-bottom:14px;
  }
}

@media (max-width: 640px){
  .check-tool__card,
  .check-tool__result-head,
  .check-tool__result-card{
    padding:16px 14px;
  }
  .check-tool__question-title{
    font-size:1.18rem;
  }
  .check-tool__hint,
  .check-tool__result-head p,
  .check-tool__result-card li{
    font-size:.88rem;
  }
  .check-tool__option{
    padding:12px;
  }
  .check-tool__nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:20px;
  }
  .check-tool__nav .check-tool__button{
    padding:10px 8px;
    text-align:center;
  }
  .check-tool__result-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .check-tool__button{
    width:100%;
  }
  .check-tool__result-grid{
    grid-template-columns:1fr;
  }
  .check-tool__selection-table,
  .check-tool__selection-table thead,
  .check-tool__selection-table tbody,
  .check-tool__selection-table tr,
  .check-tool__selection-table th,
  .check-tool__selection-table td{
    display:block;
    width:100%;
  }
  .check-tool__selection-table thead{
    display:none;
  }
  .check-tool__selection-table tr{
    border-bottom:1px solid var(--rule);
    padding:10px 0;
  }
  .check-tool__selection-table td{
    border-bottom:none;
    padding:4px 10px;
  }
  .check-tool__selection-table td:first-child{
    width:100%;
  }
}

.check-tool__threshold-box {
  margin-bottom: 24px;
}
.check-tool__threshold-box:last-of-type {
  margin-bottom: 0;
}
.check-tool__threshold-title {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.check-tool__options--inline {
  flex-direction: row !important;
  gap: 12px;
}
.check-tool__option--inline {
  width: auto !important;
  flex: 1;
}

@media print{
  @page{
    size:A4 portrait;
    margin:10mm;
  }
  html,
  body{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
    color:#111 !important;
    overflow:visible !important;
  }
  body > :not(main){
    display:none !important;
  }
  main > :not(.check-tool){
    display:none !important;
  }
  main,
  .container,
  .section{
    max-width:none !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  .check-tool{
    max-width:none;
    margin:0;
    padding:0;
    color:#111;
    font-size:8.5pt;
  }
  .site-header,
  .site-footer,
  .ledger-rule,
  .breadcrumb,
  .check-tool__rail,
  .check-tool__mobile-progress,
  .check-tool__nav,
  .check-tool__actions,
  .check-tool__print-actions,
  .check-tool__restart,
  .check-tool__json-title,
  .check-tool__json-box,
  .check-tool__disclaimer{
    display:none !important;
  }
  .check-tool__layout{
    display:block;
  }
  .check-tool__layout > main{
    width:100%;
  }
  .check-tool__print-header,
  .check-tool__print-footer{
    display:flex;
    visibility:visible !important;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    color:#111;
    border-color:#111;
  }
  .check-tool__print-header{
    border-bottom:2px solid #111;
    padding-bottom:6px;
    margin-bottom:8px;
    font-size:9pt;
  }
  .check-tool__print-brand{
    display:flex;
    align-items:center;
    gap:9px;
  }
  .check-tool__print-brand img{
    width:26px;
    height:26px;
  }
  .check-tool__print-brand strong,
  .check-tool__print-brand span{
    display:block;
  }
  .check-tool__print-brand span{
    font-size:7.5pt;
    color:#444;
  }
  .check-tool__print-footer{
    display:block !important;
    position:relative !important;
    border-top:1.5px solid #111;
    padding-top:6px;
    margin-top:12px;
    font-size:7.5pt;
    line-height:1.35;
    break-inside:avoid !important;
    page-break-inside:avoid !important;
  }
  .check-tool__print-footer strong{
    margin-right:8px;
  }
  .check-tool__print-footer p{
    margin:5px 0 0;
    color:#444;
  }
  .check-tool__result-head,
  .check-tool__selection,
  .check-tool__result-card{
    border-color:#999;
    background:#fff;
    box-shadow:none;
  }
  .check-tool__result-head{
    border:1.5px solid #111;
    margin-bottom:7px;
    padding:9px 10px;
  }
  .check-tool__result-head h2{
    font-size:13pt;
    margin-bottom:3px;
  }
  .check-tool__result-head p{
    font-size:8pt;
    line-height:1.35;
  }
  .check-tool__badge{
    font-size:7pt;
    padding:2px 6px;
    margin-bottom:5px;
  }
  .check-tool__result-grid{
    display:block;
  }
  .check-tool__result-card{
    break-inside:avoid;
    page-break-inside:avoid;
    margin-bottom:6px;
    padding:8px 10px;
  }
  .check-tool__result-card h3{
    font-size:9pt;
    margin-bottom:4px;
  }
  .check-tool__result-card ul{
    padding-left:1em;
  }
  .check-tool__result-card li{
    font-size:7.8pt;
    line-height:1.35;
    margin-bottom:2px;
  }
  .check-tool__selection{
    border-top:1px solid #999;
    margin:7px 0 8px;
    padding-top:6px;
    break-inside:auto;
    page-break-inside:auto;
  }
  .check-tool__selection h3{
    margin:0 0 3px;
    font-size:10pt;
  }
  .check-tool__hint{
    font-size:7.5pt;
    line-height:1.35;
    margin-bottom:5px;
  }
  .check-tool__selection-table-wrap{
    overflow:visible;
    margin-bottom:0;
  }
  .check-tool__selection-table{
    font-size:7.8pt;
  }
  .check-tool__selection-table th,
  .check-tool__selection-table td{
    display:table-cell;
    width:auto;
    padding:4px 5px;
    border-color:#bbb;
    line-height:1.25;
  }
  .check-tool__selection-table thead{
    display:table-header-group;
  }
  .check-tool__selection-table tr{
    display:table-row;
    border-bottom:none;
    padding:0;
  }
  .check-tool__selection-table td:first-child{
    width:50%;
  }
}

/* U.S. tax-residency transition asset screener styles */
.transition-tool-page .check-tool__question-category{margin:0 0 7px;color:#526358;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.transition-tool-page .check-tool__question-title{font-size:clamp(1.35rem,2.6vw,1.9rem);line-height:1.28;margin:0 0 10px;color:var(--ink,#172033)}
.transition-tool-page .check-tool__question-description{max-width:72ch;margin:0 0 12px;color:var(--ink-soft,#52606d);line-height:1.7}
.transition-tool-page .check-tool__selection-mode{max-width:72ch;margin:0 0 18px;padding:10px 13px;border-left:4px solid #6b7d6d;background:#f2f5f1;color:#34443a;font-size:.93rem;line-height:1.55}
.transition-tool-page .check-tool__result-card--danger{border-color:#dc2626;background:#fff7f7}
.transition-tool-page .check-tool__result-card--danger h3{color:#991b1b}
.transition-regret-detail{margin:12px 0 0}
.transition-regret-detail>div{display:block;padding:11px 0;border-top:1px solid #fecaca}
.transition-regret-detail dt{font-weight:800;color:#991b1b;margin:0 0 4px 0;font-size:0.95rem}
.transition-regret-detail dd{margin:0 0 8px 0;line-height:1.65;color:#3f2525}
.transition-form-line{margin:12px 0 0;padding-top:10px;border-top:1px solid #fecaca;color:#7f1d1d;font-size:.85rem}
.transition-form-chips{display:flex;flex-wrap:wrap;gap:8px}
.transition-form-chips span{display:inline-block;border:1px solid #cfd8d0;background:#f3f6f3;border-radius:999px;padding:6px 10px;font-size:.82rem}
.transition-alert{max-width:76ch;margin:18px 0 0;padding:14px 16px;border-left:5px solid #b91c1c;background:#fff5f5;color:#7f1d1d;line-height:1.65}
.transition-seo-section h2{margin-top:34px}
.transition-seo-section h3{margin-top:24px}
.transition-seo-section p,.transition-seo-section li{max-width:78ch;line-height:1.75;color:var(--ink-soft,#4b5563)}
.transition-seo-section .faq-item{border-top:1px solid #d9dfda;padding:17px 0}
.transition-seo-section .faq-item h3{margin:0 0 7px;color:var(--ink,#172033)}
.language-switch{display:flex;align-items:center;gap:8px;margin-left:auto}
.language-switch label{font-size:.8rem;color:var(--ink-soft,#52606d)}
.language-switch select{border:1px solid #c8d0c9;border-radius:7px;background:#fff;padding:7px 9px}
@media(max-width:720px){.language-switch{margin:10px 0 0}}
@media print{.transition-regret-detail>div{padding:5px 0}.transition-form-chips span{padding:3px 6px}.language-switch{display:none}}
