/* The New — Korean inheritance tax workspace, 20260909b.
 * Hero, Article, meta and design-note visuals remain shared-partial owned.
 */
body.tn-inh-page-body .tn-inh-page{
  --inh-ink:#1a1208;
  --inh-muted:#5a4a30;
  --inh-line:#b8a888;
  --inh-soft:#ddd4be;
  --inh-paper:#faf6ee;
  --inh-surface:#fffdf7;
  --inh-wash:#f5efdf;
  --inh-accent:#c44a00;
  --inh-primary:#1a1208;
  --inh-primary-hover:#c44a00;
  --inh-primary-text:#faf6ee;
  --inh-secondary:#ede6d4;
  --inh-secondary-hover:#dfd4bb;
  --inh-action-line:#b8a888;
  --inh-danger:#7c2115;
  --inh-scheme:light;
  --inh-num-font:-apple-system,BlinkMacSystemFont,"Pretendard","Segoe UI",system-ui,sans-serif;
  width:min(1180px,100%);
  max-width:1180px;
  margin:0 auto 56px;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:currentColor!important;
  font-family:ui-serif,Georgia,"Times New Roman","Noto Serif KR",serif!important;
  font-size:15px!important;
  line-height:1.58!important;
}

/* Character Counter's root reset is structural, not Article decoration.
 * Component-specific minimum widths and shared partial geometry still win.
 */
body.tn-inh-page-body :where(.tn-inh-page,.tn-inh-page *,.tn-inh-page *::before,.tn-inh-page *::after){box-sizing:border-box!important;min-width:0!important}

/* Target-local transparent ad positions avoid the legacy fixed-height .tn-ad rules.
 * Only wrapper reservation is owned here; the SDK owns ins/iframe dimensions.
 */
body.tn-inh-page-body .tn-inh-page > .tn-inh-responsive-ad{
  display:block!important;
  width:100%!important;
  max-width:900px!important;
  min-height:90px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.tn-inh-page-body .tn-inh-responsive-ad--top{margin:54px auto 40px!important}
body.tn-inh-page-body .tn-inh-responsive-ad--bottom{margin:28px auto 48px!important}

/* Content resets stay inside the workspace; padded p/dl retain their padding. */
body.tn-inh-page-body .tn-inh-tool :is(ul,ol,li){list-style:none!important;margin:0!important;padding-left:0!important}
body.tn-inh-page-body .tn-inh-tool :is(p,dl,dt,dd,h2){margin:0!important}
body.tn-inh-page-body .tn-inh-tool :is(dt,dd){padding:0!important}
body.tn-inh-page-body .tn-inh-tool :is(code,pre,kbd,samp){padding:0!important;border:0!important;border-radius:0!important;background:none!important;background-color:transparent!important;color:inherit!important;-webkit-text-fill-color:inherit!important}
body.tn-inh-page-body .tn-inh-page script{display:none!important}

body.tn-inh-page-body .tn-inh-tool{
  display:grid!important;
  gap:10px!important;
  width:100%!important;
  max-width:960px!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:var(--inh-ink)!important;
  font-family:var(--inh-num-font)!important;
  font-size:13px!important;
  line-height:1.5!important;
}
body.tn-inh-page-body .tn-inh-panes{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:18px!important;
}
body.tn-inh-page-body .tn-inh-pane{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
}
body.tn-inh-page-body .tn-inh-tool .tn-inh-pane-label{
  padding:0!important;
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:18px!important;
  letter-spacing:normal!important;
  text-transform:uppercase!important;
}
body.tn-inh-page-body .tn-inh-panel{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  gap:10px!important;
  margin:0!important;
  padding:14px!important;
  border:1px solid var(--inh-line)!important;
  border-radius:0!important;
  background:var(--inh-paper)!important;
  box-shadow:none!important;
}
body.tn-inh-page-body .tn-inh-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:10px 12px!important;
}
body.tn-inh-page-body .tn-inh-field{
  display:grid!important;
  align-content:start!important;
  grid-template-rows:auto 36px!important;
  gap:5px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
}
body.tn-inh-page-body .tn-inh-label{
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:18px!important;
  letter-spacing:normal!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body.tn-inh-page-body .tn-inh-page .tn-inh-tool .tn-inh-control{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--inh-line)!important;
  border-radius:0!important;
  background:var(--inh-surface)!important;
  box-shadow:none!important;
  color-scheme:var(--inh-scheme)!important;
}
body.tn-inh-page-body .tn-inh-control :is(input,select){
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:1px!important;
  max-width:100%!important;
  height:34px!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:var(--inh-ink)!important;
  font-family:var(--inh-num-font)!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:34px!important;
  letter-spacing:normal!important;
  font-variant-numeric:lining-nums tabular-nums!important;
  font-feature-settings:"lnum" 1,"tnum" 1!important;
  color-scheme:var(--inh-scheme)!important;
  appearance:none!important;
}
body.tn-inh-page-body .tn-inh-control input{text-align:right!important}
body.tn-inh-page-body .tn-inh-control select{padding-right:30px!important;text-align:left!important;font-size:13px!important;cursor:pointer!important}
body.tn-inh-page-body .tn-inh-control--select::after{
  position:absolute!important;
  right:12px!important;
  top:12px!important;
  width:7px!important;
  height:7px!important;
  border:0!important;
  border-right:1px solid var(--inh-muted)!important;
  border-bottom:1px solid var(--inh-muted)!important;
  transform:rotate(45deg)!important;
  content:""!important;
  pointer-events:none!important;
}
body.tn-inh-page-body .tn-inh-control select option{background:var(--inh-surface)!important;color:var(--inh-ink)!important}
body.tn-inh-page-body .tn-inh-control input::placeholder{
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-weight:400!important;
  opacity:.35!important;
}
body.tn-inh-page-body .tn-inh-control b{
  display:grid!important;
  place-items:center!important;
  align-self:stretch!important;
  flex:0 0 auto!important;
  margin:0 -1px -1px 0!important;
  padding:0 10px!important;
  border:0!important;
  border-left:1px solid var(--inh-soft)!important;
  border-right:1px solid var(--inh-line)!important;
  border-bottom:1px solid var(--inh-line)!important;
  background:var(--inh-wash)!important;
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:18px!important;
  pointer-events:none!important;
}
body.tn-inh-page-body .tn-inh-control:has(:focus-visible){outline:2px solid var(--inh-accent)!important;outline-offset:2px!important}
body.tn-inh-page-body .tn-inh-control:has([aria-invalid="true"]){border-color:var(--inh-danger)!important}
body.tn-inh-page-body .tn-inh-control [aria-invalid="true"]{color:var(--inh-danger)!important;-webkit-text-fill-color:var(--inh-danger)!important}
body.tn-inh-page-body .tn-inh-field-group,
body.tn-inh-page-body .tn-inh-family,
body.tn-inh-page-body .tn-inh-tool [data-inh-show="shared"]{display:grid!important;gap:8px!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-hint,
body.tn-inh-page-body .tn-inh-tool .tn-inh-result-caption,
body.tn-inh-page-body .tn-inh-tool .tn-inh-result-note,
body.tn-inh-page-body .tn-inh-tool .tn-inh-privacy{
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:18px!important;
  letter-spacing:normal!important;
  overflow-wrap:anywhere!important;
}
body.tn-inh-page-body .tn-inh-options{
  margin:0!important;
  padding:0!important;
  border:1px solid var(--inh-soft)!important;
  border-radius:0!important;
  background:var(--inh-wash)!important;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:var(--inh-ink)!important;
}
body.tn-inh-page-body .tn-inh-option-groups{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:10px 12px!important;
}
/* Expanded monetary fields need the full panel width, including long amounts. */
body.tn-inh-page-body .tn-inh-option-groups:has(> details[open]){grid-template-columns:minmax(0,1fr)!important}
body.tn-inh-page-body .tn-inh-options > summary{
  display:list-item!important;
  margin:0!important;
  padding:14px!important;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:var(--inh-ink)!important;
  font-family:var(--inh-num-font)!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:18px!important;
  cursor:pointer!important;
}
body.tn-inh-page-body .tn-inh-option-body{display:grid;gap:8px;padding:0 14px 14px}
body.tn-inh-page-body .tn-inh-options > summary:focus-visible{outline:2px solid var(--inh-accent)!important;outline-offset:2px!important}
body.tn-inh-page-body .tn-inh-check{
  display:flex!important;
  align-items:flex-start!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:var(--inh-ink)!important;
  font-family:var(--inh-num-font)!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:20px!important;
  cursor:pointer!important;
}
body.tn-inh-page-body .tn-inh-check input{
  display:grid!important;
  place-items:center!important;
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--inh-line)!important;
  border-radius:0!important;
  background:var(--inh-surface)!important;
  box-shadow:none!important;
  appearance:none!important;
  cursor:pointer!important;
}
body.tn-inh-page-body .tn-inh-check input:checked{background:var(--inh-primary)!important;border-color:var(--inh-action-line)!important}
body.tn-inh-page-body .tn-inh-check input:checked::after{content:""!important;width:6px!important;height:10px!important;border:solid var(--inh-primary-text)!important;border-width:0 2px 2px 0!important;transform:translateY(-1px) rotate(45deg)!important}
body.tn-inh-page-body .tn-inh-check input:focus-visible{outline:2px solid var(--inh-accent)!important;outline-offset:2px!important}

body.tn-inh-page-body .tn-inh-tool .tn-inh-scope{
  padding:14px!important;
  border:1px solid var(--inh-soft)!important;
  background:var(--inh-wash)!important;
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-size:12px!important;
  font-weight:400!important;
  line-height:18px!important;
}
body.tn-inh-page-body .tn-inh-tool .tn-inh-hero-result{
  display:grid!important;
  flex:1 1 auto!important;
  align-content:center!important;
  justify-items:center!important;
  gap:12px!important;
  padding:14px!important;
  text-align:center!important;
}
body.tn-inh-page-body .tn-inh-hero-result dt{color:var(--inh-muted)!important;-webkit-text-fill-color:var(--inh-muted)!important;font-size:13px!important;font-weight:800!important;line-height:20px!important}
body.tn-inh-page-body .tn-inh-tool [data-inh-result]{
  display:block!important;
  max-width:100%!important;
  color:var(--inh-ink)!important;
  -webkit-text-fill-color:var(--inh-ink)!important;
  font-family:var(--inh-num-font)!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.35!important;
  letter-spacing:normal!important;
  font-variant-numeric:lining-nums tabular-nums!important;
  font-feature-settings:"lnum" 1,"tnum" 1!important;
  overflow-wrap:anywhere!important;
}
body.tn-inh-page-body .tn-inh-tool .tn-inh-hero-result [data-inh-result]{font-size:clamp(24px,2.8vw,34px)!important;line-height:1.2!important;text-align:center!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-result-caption{text-align:center!important}
body.tn-inh-page-body .tn-inh-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-metric{
  display:grid!important;
  align-content:center!important;
  justify-items:center!important;
  gap:8px!important;
  padding:14px!important;
  border:1px solid var(--inh-soft)!important;
  background:var(--inh-surface)!important;
  text-align:center!important;
}
body.tn-inh-page-body .tn-inh-metric dt{font-size:12px!important;font-weight:600!important;line-height:18px!important;color:var(--inh-muted)!important;-webkit-text-fill-color:var(--inh-muted)!important}
body.tn-inh-page-body .tn-inh-details{display:grid!important;gap:12px!important}
body.tn-inh-page-body .tn-inh-details > div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)!important;align-items:start!important;gap:12px!important}
body.tn-inh-page-body .tn-inh-details dt{color:var(--inh-muted)!important;-webkit-text-fill-color:var(--inh-muted)!important;font-size:12px!important;line-height:20px!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-details [data-inh-result]{font-size:14px!important;line-height:20px!important;text-align:right!important}

body.tn-inh-page-body .tn-inh-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions button{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid var(--inh-action-line)!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  font-family:var(--inh-num-font)!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:normal!important;
  text-align:center!important;
  text-transform:none!important;
  white-space:nowrap!important;
  appearance:none!important;
  cursor:pointer!important;
}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions .tn-inh-primary{background:var(--inh-primary)!important;border-color:var(--inh-primary)!important;color:var(--inh-primary-text)!important;-webkit-text-fill-color:var(--inh-primary-text)!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions .tn-inh-primary:is(:hover,:focus-visible):not(:disabled){background:var(--inh-primary-hover)!important;border-color:var(--inh-primary-hover)!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions .tn-inh-secondary{background:var(--inh-secondary)!important;color:var(--inh-ink)!important;-webkit-text-fill-color:var(--inh-ink)!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions .tn-inh-secondary:is(:hover,:focus-visible):not(:disabled){background:var(--inh-secondary-hover)!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions button:disabled{cursor:not-allowed!important;opacity:.55!important;outline:0!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-actions button:focus-visible:not(:disabled){outline:2px solid var(--inh-accent)!important;outline-offset:2px!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-status{
  padding:14px!important;
  border:1px solid var(--inh-soft)!important;
  background:var(--inh-surface)!important;
  color:var(--inh-muted)!important;
  -webkit-text-fill-color:var(--inh-muted)!important;
  font-family:var(--inh-num-font)!important;
  font-size:12px!important;
  line-height:18px!important;
}
body.tn-inh-page-body .tn-inh-tool .tn-inh-status:is([data-state="invalid"],[data-state="copy-error"]){border-color:var(--inh-danger)!important;color:var(--inh-danger)!important;-webkit-text-fill-color:var(--inh-danger)!important}
body.tn-inh-page-body .tn-inh-tool .tn-inh-status:empty{display:none!important}
/* Conditional visibility must outrank each group's explicit grid/flex display. */
body.tn-inh-page-body .tn-inh-page .tn-inh-tool [hidden]{display:none!important}

body.tn-inh-page-body:is([data-scheme="dark"],[data-scheme="inverse"],[data-scheme="auto"][data-l="dark"],[data-scheme="auto"][data-d="dark"]) .tn-inh-page,
html:is([data-scheme="dark"],[data-scheme="inverse"]) body.tn-inh-page-body:not([data-scheme="light"]) .tn-inh-page{
  --inh-ink:#f7ead1;
  --inh-muted:#c3b492;
  --inh-line:#6f6047;
  --inh-soft:#574a37;
  --inh-paper:#241d12;
  --inh-surface:#322a1a;
  --inh-wash:#2c2517;
  --inh-accent:#e8823f;
  --inh-primary:#6a3b1f;
  --inh-primary-hover:#824826;
  --inh-primary-text:#f7ead1;
  --inh-secondary:#2f2115;
  --inh-secondary-hover:#3a2a1b;
  --inh-action-line:#826744;
  --inh-danger:#ffb0a2;
  --inh-scheme:dark;
}
@media (prefers-color-scheme:dark){
  body.tn-inh-page-body[data-scheme="auto"] .tn-inh-page{
    --inh-ink:#f7ead1;
    --inh-muted:#c3b492;
    --inh-line:#6f6047;
    --inh-soft:#574a37;
    --inh-paper:#241d12;
    --inh-surface:#322a1a;
    --inh-wash:#2c2517;
    --inh-accent:#e8823f;
    --inh-primary:#6a3b1f;
    --inh-primary-hover:#824826;
    --inh-primary-text:#f7ead1;
    --inh-secondary:#2f2115;
    --inh-secondary-hover:#3a2a1b;
    --inh-action-line:#826744;
    --inh-danger:#ffb0a2;
    --inh-scheme:dark;
  }
}
@media (max-width:900px){
  body.tn-inh-page-body .tn-inh-option-groups{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:720px){
  body.tn-inh-page-body .tn-inh-page{margin-bottom:40px}
  body.tn-inh-page-body .tn-inh-panes{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
  body.tn-inh-page-body .tn-inh-tool .tn-inh-hero-result{flex:0 0 auto!important}
  body.tn-inh-page-body .tn-inh-responsive-ad--top{margin-top:48px!important;margin-bottom:34px!important}
  body.tn-inh-page-body .tn-inh-control input{font-size:14px!important}
  body.tn-inh-page-body .tn-inh-tool .tn-inh-metric [data-inh-result]{font-size:14px!important}
}
@media (max-width:360px){
  body.tn-inh-page-body .tn-inh-tool .tn-inh-actions button{font-size:12px!important}
}
