
.tp-page {
  --tp-green: #006a4e;
  --tp-deep: #0a5c43;
  --tp-dark: #063327;
  --tp-gold: #f2a900;
  --tp-gold-soft: #fff6df;
  --tp-soft: #eef6f1;
  --tp-pale: #f7fbf8;
  --tp-line: #dfe9e3;
  --tp-ink: #17251e;
  --tp-muted: #5b7268;
  --tp-bg: #f6f8f5;
  --tp-white: #ffffff;
  --tp-shadow: 0 18px 44px rgba(6, 51, 39, .09);
  --tp-shadow-sm: 0 2px 6px rgba(6, 51, 39, .05);
  font-family: var(--font-bn);
  background: var(--tp-bg);
  color: var(--tp-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.tp-page *,
.tp-page *::before,
.tp-page *::after { box-sizing: border-box; }

.tp-page img { display: block; max-width: 100%; height: auto; }
.tp-page a { color: var(--tp-green); text-decoration: none; }
.tp-page a:hover { color: var(--tp-dark); }
.tp-page button { font: inherit; cursor: pointer; }
.tp-page :focus-visible { outline: 3px solid rgba(0, 106, 78, .28); outline-offset: 2px; border-radius: 8px; }
.tp-page .mk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.tp-wrap { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }
.tp-i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.tp-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.tp-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 0 58px;
  background:
    radial-gradient(780px 380px at 88% 0%, rgba(0, 106, 78, .10), transparent 64%),
    linear-gradient(180deg, #eef7f2 0%, #f6f8f5 100%);
  border-bottom: 1px solid #e4ece7;
}
.tp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 106, 78, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 106, 78, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 78%);
  pointer-events: none;
}
.tp-hero > .tp-wrap { position: relative; }

.tp-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin: 6px 0 26px; font-size: .84rem; color: var(--tp-muted);
}
.tp-crumbs a { color: var(--tp-muted); }
.tp-crumbs a:hover { color: var(--tp-green); }
.tp-crumbs .tp-i { width: 13px; height: 13px; opacity: .7; }
.tp-crumbs span[aria-current] { color: var(--tp-ink); font-weight: 600; }

.tp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 48px;
  align-items: center;
}
.tp-hero-grid > * { min-width: 0; }

.tp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; background: rgba(255, 255, 255, .78);
  border: 1px solid var(--tp-line); border-radius: 999px;
  color: var(--tp-deep); font-size: .78rem; font-weight: 700;
  box-shadow: var(--tp-shadow-sm);
}
.tp-eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tp-gold); box-shadow: 0 0 0 3px rgba(242, 169, 0, .18);
}

.tp-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -.012em;
  color: var(--tp-dark);
}
.tp-hero h1 em {
  display: block;
  font-style: normal;
  font-size: .56em;
  line-height: 1.5;
  color: var(--tp-green);
  margin-top: 6px;
  font-weight: 600;
}

.tp-lead {
  max-width: 580px;
  margin: 0 0 22px;
  color: var(--tp-muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.tp-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  list-style: none; margin: 0 0 26px; padding: 0;
}
.tp-trust li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; font-weight: 600; color: #33463d;
}
.tp-trust .tp-i {
  width: 17px; height: 17px; padding: 3px;
  color: var(--tp-green); background: rgba(0, 106, 78, .09);
  border-radius: 50%;
}

.tp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: .95rem; font-weight: 700; line-height: 1.2;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.tp-btn .tp-i { width: 17px; height: 17px; }
.tp-page .tp-btn-primary {
  background: var(--tp-green); color: #fff;
  box-shadow: 0 8px 20px rgba(0, 106, 78, .20);
}
.tp-page .tp-btn-primary:hover { background: var(--tp-dark); color: #fff; transform: translateY(-1px); }
.tp-page .tp-btn-primary .tp-i { color: #fff; }
.tp-btn-ghost { background: #fff; border-color: #cfdcd4; color: var(--tp-ink); }
.tp-btn-ghost:hover { background: var(--tp-pale); border-color: #b9cbc1; color: var(--tp-deep); }
.tp-btn-sm { min-height: 38px; padding: 8px 14px; font-size: .84rem; border-radius: 10px; }

/* Sample deed card */
.tp-doc {
  position: relative;
  max-width: 470px; margin-left: auto;
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--tp-shadow);
}
.tp-doc::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(242, 169, 0, .10), transparent 34%);
  pointer-events: none;
}
.tp-doc-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.tp-doc-top b { font-size: .82rem; color: var(--tp-deep); }
.tp-doc-ref {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--tp-soft); color: var(--tp-deep);
  font-size: .72rem; font-weight: 700;
}
.tp-doc > img {
  width: 100%; max-width: 100%; min-width: 0; height: auto;
  border-radius: 14px;
  background: #f2faf5;
  border: 1px solid #edf5f0;
}
.tp-doc-rows { margin: 14px 0 0; }
.tp-doc-rows div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 2px; border-top: 1px solid #eef4f0;
}
.tp-doc-rows div:first-child { border-top: 0; }
.tp-doc-rows dt { font-size: .8rem; color: var(--tp-muted); }
.tp-doc-rows dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--tp-ink); }
.tp-doc-rows div.is-key dd { color: var(--tp-green); }
.tp-doc-note {
  margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed #e4ece7;
  font-size: .72rem; line-height: 1.6; color: #7b8b82;
}

/* ------------------------------------------------------------
   Facts strip
   ------------------------------------------------------------ */
.tp-body { padding-bottom: 64px; }
.tp-facts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -30px;
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: 18px;
  box-shadow: var(--tp-shadow);
  overflow: hidden;
}
.tp-fact { padding: 18px 22px; border-left: 1px solid #eef4f0; }
.tp-fact:first-child { border-left: 0; }
.tp-fact b {
  display: block; font-size: 1.34rem; line-height: 1.3;
  color: var(--tp-green); letter-spacing: -.01em;
}
.tp-fact span { display: block; margin-top: 2px; font-size: .78rem; color: var(--tp-muted); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.tp-section { margin-top: 48px; }
.tp-sec-head { max-width: 720px; margin-bottom: 20px; }
.tp-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 8px; color: var(--tp-green);
  font-size: .78rem; font-weight: 700; letter-spacing: .01em;
}
.tp-kicker::before {
  content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--tp-gold);
}
.tp-sec-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.45; color: var(--tp-dark); font-weight: 700;
  letter-spacing: -.01em;
}
.tp-sec-head p { margin: 0; color: var(--tp-muted); font-size: .95rem; line-height: 1.85; }

/* ------------------------------------------------------------
   Tool card
   ------------------------------------------------------------ */
.tp-tool {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}
.tp-card {
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  border-radius: 20px;
  box-shadow: var(--tp-shadow-sm);
}
.tp-tool-form { padding: 24px; }

.tp-tool-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid #eef4f0;
}
.tp-tool-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: var(--tp-soft); color: var(--tp-green);
}
.tp-tool-icon .tp-i { width: 21px; height: 21px; }
.tp-tool-head strong { display: block; font-size: 1rem; color: var(--tp-ink); line-height: 1.4; }
.tp-tool-head small { display: block; font-size: .76rem; color: var(--tp-muted); }
.tp-live {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: #e8f5ee; color: #116b45;
  font-size: .7rem; font-weight: 700;
}
.tp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }

.tp-field { margin-bottom: 16px; }
.tp-field label {
  display: block; margin-bottom: 6px;
  font-size: .82rem; font-weight: 700; color: #33463d;
}
.tp-control {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid #d9e4de; border-radius: 12px;
  background: #fff; color: var(--tp-ink);
  font-family: inherit; font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.tp-control:focus {
  outline: 0; border-color: var(--tp-green);
  box-shadow: 0 0 0 4px rgba(0, 106, 78, .10);
}
select.tp-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b7268' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.tp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tp-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin: -4px 0 16px;
}
.tp-quick span { font-size: .74rem; color: var(--tp-muted); margin-right: 2px; }
.tp-quick button {
  min-width: 38px; height: 30px; padding: 0 10px;
  border: 1px solid #d9e4de; border-radius: 8px;
  background: #fff; color: #33463d;
  font-size: .78rem; font-weight: 700;
}
.tp-quick button:hover { border-color: var(--tp-green); color: var(--tp-green); background: var(--tp-pale); }
.tp-quick button.is-clear { border-color: transparent; background: transparent; color: var(--tp-muted); font-weight: 600; }

.tp-tool-form .tp-btn { width: 100%; }
.tp-form-note {
  margin: 10px 0 0; text-align: center;
  font-size: .72rem; color: #7b8b82;
}

/* Result */
.tp-result { overflow: hidden; display: flex; flex-direction: column; }
.tp-result-hero {
  padding: 22px 24px;
  background:
    radial-gradient(300px 180px at 100% 0%, rgba(242, 169, 0, .18), transparent 70%),
    linear-gradient(135deg, var(--tp-dark) 0%, #0a5c43 100%);
  color: #fff;
  position: relative;
}
.tp-result-hero small {
  display: block; margin-bottom: 4px;
  font-size: .74rem; font-weight: 600; color: #b9d2c6;
  letter-spacing: .01em;
}
.tp-result-total {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700; line-height: 1.35; color: #fff;
}
.tp-result-total span { font-size: .8rem; font-weight: 600; color: #cfe3d9; }
.tp-result-sub { margin: 6px 0 0; font-size: .86rem; color: #cfe3d9; }
.tp-copy-all {
  position: absolute; right: 18px; top: 18px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px; background: rgba(255, 255, 255, .10);
  color: #fff; font-size: .71rem; font-weight: 600;
}
.tp-copy-all:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.tp-copy-all .tp-i { width: 13px; height: 13px; }

.tp-result-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: #e8f0eb; flex: 1;
}
.tp-result-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 11px 18px; background: #fbfdfc;
}
.tp-result-item span { font-size: .8rem; color: var(--tp-muted); }
.tp-result-item b { font-size: .92rem; font-weight: 700; color: var(--tp-ink); font-variant-numeric: tabular-nums; }
.tp-result-item.is-primary { background: #f3faf6; }
.tp-result-item.is-primary b { color: var(--tp-green); }

.tp-result-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 18px; border-top: 1px solid #eef4f0; background: #fff;
}
.tp-result-foot .tp-btn { flex: 1 1 auto; }
.tp-save-hint {
  display: inline-flex; align-items: center; gap: 5px;
  width: 100%; font-size: .72rem; color: #7b8b82;
}
.tp-save-hint .tp-i { width: 13px; height: 13px; }
.tp-save-hint a { font-weight: 700; }

.tp-caveat {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0 0; padding: 12px 16px;
  background: var(--tp-soft); border: 1px solid #dcebe2; border-radius: 12px;
  font-size: .82rem; line-height: 1.75; color: #3e564b;
}
.tp-caveat .tp-i { width: 17px; height: 17px; margin-top: 2px; color: var(--tp-green); }
.tp-caveat strong { color: var(--tp-deep); }

/* ------------------------------------------------------------
   Table
   ------------------------------------------------------------ */
.tp-table-card { overflow: hidden; }
.tp-table-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; padding: 20px 24px 16px;
}
.tp-table-head h3 { margin: 0; font-size: 1.1rem; color: var(--tp-dark); }
.tp-table-head p { margin: 4px 0 0; font-size: .8rem; color: var(--tp-muted); }
.tp-table-head .tp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--tp-soft); color: var(--tp-deep);
  font-size: .72rem; font-weight: 700;
}
.tp-table-scroll { overflow-x: auto; }
.tp-table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tp-table th,
.tp-table td { padding: 12px 16px; text-align: center; border-top: 1px solid #edf3ef; }
.tp-table th {
  background: #f2f8f4; color: #33463d;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.tp-table td { font-size: .9rem; color: #2c3e35; }
.tp-table th:first-child,
.tp-table td:first-child { text-align: left; font-weight: 700; color: var(--tp-ink); }
.tp-table tbody tr:hover { background: #f9fcfa; }
.tp-table tbody tr.is-key { background: #f2faf5; }
.tp-table tbody tr.is-key td { color: var(--tp-deep); }
.tp-table tbody tr.is-key td:first-child { box-shadow: inset 3px 0 0 var(--tp-gold); }
.tp-table-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 24px 16px;
  font-size: .76rem; color: #7b8b82;
}
.tp-table-foot a { font-weight: 700; }
.tp-scroll-hint { display: none; }

/* ------------------------------------------------------------
   How-to + example
   ------------------------------------------------------------ */
.tp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.tp-steps { list-style: none; margin: 0; padding: 4px 0 0; }
.tp-steps li {
  position: relative;
  display: grid; grid-template-columns: 38px 1fr; gap: 14px;
  padding-bottom: 22px;
}
.tp-steps li:last-child { padding-bottom: 0; }
.tp-steps li::before {
  content: ""; position: absolute;
  left: 18px; top: 38px; bottom: 0; width: 2px;
  background: linear-gradient(180deg, #dcebe2, #eef6f1);
}
.tp-steps li:last-child::before { display: none; }
.tp-step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--tp-gold-soft); color: #8a5d00;
  border: 1px solid #f5d98a;
  font-size: .9rem; font-weight: 700;
}
.tp-steps h3 { margin: 5px 0 3px; font-size: .96rem; color: var(--tp-ink); }
.tp-steps p { margin: 0; font-size: .85rem; line-height: 1.8; color: var(--tp-muted); }

.tp-example {
  padding: 26px;
  border-radius: 20px;
  background:
    radial-gradient(320px 200px at 100% 0%, rgba(242, 169, 0, .16), transparent 70%),
    linear-gradient(135deg, #063327 0%, #0a5c43 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(6, 51, 39, .18);
}
.tp-example .tp-kicker { color: #f7c95a; margin-bottom: 10px; }
.tp-example .tp-kicker::before { background: #f2a900; }
.tp-example h3 { margin: 0 0 6px; font-size: 1.16rem; line-height: 1.6; color: #fff; }
.tp-example > p { margin: 0 0 18px; font-size: .86rem; line-height: 1.8; color: #cfe3d9; }
.tp-example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .14); border-radius: 12px; overflow: hidden; }
.tp-example-grid div { padding: 12px 14px; background: rgba(6, 51, 39, .32); }
.tp-example-grid b { display: block; font-size: 1.16rem; color: #fff; font-variant-numeric: tabular-nums; }
.tp-example-grid span { display: block; margin-top: 1px; font-size: .72rem; color: #b9d2c6; }
.tp-example-note { margin: 14px 0 0; font-size: .76rem; line-height: 1.7; color: #b9d2c6; }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.tp-faq { padding: 6px 24px; }
.tp-faq details { border-top: 1px solid #edf3ef; }
.tp-faq details:first-child { border-top: 0; }
.tp-faq summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; list-style: none;
  font-size: .92rem; font-weight: 700; color: var(--tp-ink);
  cursor: pointer;
}
.tp-faq summary::-webkit-details-marker { display: none; }
.tp-faq summary::after {
  content: ""; flex: none;
  width: 9px; height: 9px; margin: 0 4px 0 auto;
  border-right: 2px solid var(--tp-muted);
  border-bottom: 2px solid var(--tp-muted);
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
}
.tp-faq details[open] summary { color: var(--tp-deep); }
.tp-faq details[open] summary::after {
  border-color: var(--tp-green);
  transform: rotate(225deg);
}
.tp-faq details p {
  margin: -4px 0 16px; padding-right: 40px;
  font-size: .86rem; line-height: 1.85; color: var(--tp-muted);
}
.tp-faq details p a { font-weight: 700; }

/* ------------------------------------------------------------
   Related tools / guides
   ------------------------------------------------------------ */
.tp-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tp-tool-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px;
  background: #fff; border: 1px solid var(--tp-line); border-radius: 16px;
  color: var(--tp-ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tp-tool-link:hover {
  color: var(--tp-ink);
  transform: translateY(-2px);
  border-color: #cfe0d6;
  box-shadow: 0 12px 26px rgba(6, 51, 39, .08);
}
.tp-tool-link .tp-i { width: 21px; height: 21px; color: var(--tp-green); }
.tp-tool-link strong { font-size: .92rem; line-height: 1.5; }
.tp-tool-link span { font-size: .79rem; line-height: 1.7; color: var(--tp-muted); }
.tp-tool-link em {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto; padding-top: 6px;
  font-style: normal; font-size: .78rem; font-weight: 700; color: var(--tp-green);
}
.tp-tool-link em .tp-i { width: 14px; height: 14px; }

.tp-guide-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 14px; padding: 14px 18px;
  background: var(--tp-soft); border: 1px solid #dcebe2; border-radius: 14px;
}
.tp-guide-strip .tp-i { width: 18px; height: 18px; color: var(--tp-green); }
.tp-guide-strip p { margin: 0; font-size: .83rem; color: #3e564b; }
.tp-guide-strip a { margin-left: auto; font-size: .82rem; font-weight: 700; }

/* ------------------------------------------------------------
   Source / authority
   ------------------------------------------------------------ */
.tp-source {
  margin-top: 48px; padding: 24px;
  background: #fff; border: 1px solid var(--tp-line); border-radius: 18px;
}
.tp-source-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; }
.tp-source h2 { margin: 0 0 10px; font-size: 1.06rem; color: var(--tp-dark); }
.tp-source p { margin: 0 0 10px; font-size: .84rem; line-height: 1.85; color: var(--tp-muted); }
.tp-source ul { margin: 0; padding: 0; list-style: none; }
.tp-source li {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 7px; font-size: .83rem; line-height: 1.7; color: #3e564b;
}
.tp-source li .tp-i { width: 15px; height: 15px; margin-top: 2px; color: var(--tp-green); }
.tp-source-meta { padding-left: 26px; border-left: 1px solid #eef4f0; }
.tp-meta-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 10px; font-size: .8rem; line-height: 1.65; color: var(--tp-muted);
}
.tp-meta-row .tp-i { width: 16px; height: 16px; margin-top: 1px; color: var(--tp-green); }
.tp-meta-row b { display: block; color: var(--tp-ink); font-size: .82rem; }
.tp-disclaimer {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e4ece7;
  font-size: .76rem; line-height: 1.75; color: #7b8b82;
}

/* ------------------------------------------------------------
   Mobile sticky CTA
   ------------------------------------------------------------ */
.tp-mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--tp-line);
  box-shadow: 0 -8px 24px rgba(6, 51, 39, .08);
  backdrop-filter: blur(8px);
}
.tp-mobilebar strong { display: block; font-size: .82rem; line-height: 1.4; }
.tp-mobilebar small { display: block; font-size: .68rem; color: var(--tp-muted); }
.tp-mobilebar .tp-btn { margin-left: auto; min-height: 42px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .tp-hero-grid { gap: 30px; }
  .tp-doc { max-width: 430px; }
  .tp-tool { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .tp-hero { padding-bottom: 52px; }
  .tp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .tp-doc { width: 100%; max-width: 560px; margin: 0 auto; }
  .tp-facts { grid-template-columns: repeat(2, 1fr); }
  .tp-fact:nth-child(3) { border-left: 0; border-top: 1px solid #eef4f0; }
  .tp-fact:nth-child(4) { border-top: 1px solid #eef4f0; }
  .tp-tool { grid-template-columns: 1fr; }
  .tp-split { grid-template-columns: 1fr; }
  .tp-related { grid-template-columns: 1fr 1fr; }
  .tp-source-grid { grid-template-columns: 1fr; }
  .tp-source-meta { padding-left: 0; border-left: 0; border-top: 1px solid #eef4f0; padding-top: 16px; }
}

@media (max-width: 760px) {
  .tp-page { padding-bottom: 74px; }
  .tp-mobilebar { display: flex; }
}

@media (max-width: 640px) {
  .tp-wrap { width: calc(100% - 32px); }
  .tp-hero { padding-top: 8px; }
  .tp-crumbs { margin-bottom: 18px; font-size: .78rem; }
  .tp-hero h1 { font-size: 1.86rem; }
  .tp-hero h1 em { font-size: .54em; }
  .tp-lead { font-size: .93rem; line-height: 1.85; }
  .tp-trust { gap: 6px 14px; margin-bottom: 20px; }
  .tp-trust li { font-size: .78rem; }
  .tp-actions .tp-btn { flex: 1 1 auto; }
  .tp-doc { padding: 14px; border-radius: 18px; }
  .tp-facts { margin-top: -24px; }
  .tp-fact { padding: 14px 16px; }
  .tp-fact b { font-size: 1.15rem; }
  .tp-section { margin-top: 36px; }
  .tp-tool-form { padding: 18px; }
  .tp-field-row { grid-template-columns: 1fr; gap: 0; }
  .tp-result-grid { grid-template-columns: 1fr; }
  .tp-result-item { padding: 10px 16px; }
  .tp-result-hero { padding: 18px; }
  .tp-copy-all { right: 14px; top: 14px; }
  .tp-table-head { padding: 16px 16px 12px; }
  .tp-table-foot { padding: 10px 16px 14px; }
  .tp-scroll-hint { display: inline-flex; align-items: center; gap: 4px; order: -1; width: 100%; color: var(--tp-deep); font-weight: 700; }
  .tp-example { padding: 20px; }
  .tp-faq { padding: 2px 18px; }
  .tp-faq summary { font-size: .87rem; }
  .tp-faq details p { padding-right: 0; }
  .tp-related { grid-template-columns: 1fr; }
  .tp-guide-strip a { margin-left: 26px; }
  .tp-source { padding: 18px; }
}

@media (max-width: 400px) {
  .tp-result-total { font-size: 1.55rem; }
  .tp-example-grid b { font-size: 1rem; }
  .tp-mobilebar strong { font-size: .76rem; }
}

@media print {
  .tp-mobilebar, .tp-hero::before, .tp-copy-all, .tp-quick, .tp-actions { display: none !important; }
  .tp-page { background: #fff; }
  .tp-hero { background: #fff; border-bottom: 1px solid #ddd; }
  .tp-doc, .tp-card, .tp-source, .tp-table-card { box-shadow: none; }
}

/* ============================================================
   e-Bhumi — unified tool shell v1, page-specific blocks
   Loaded after tool-pages-v1.css
   ============================================================ */

/* ------------------------------------------------------------
   Cascade picker (khatian / mouza)
   ------------------------------------------------------------ */
.tp-cascade { padding: 22px 24px; }
.tp-step-label {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: .74rem; font-weight: 700; color: #5b7268;
}
.tp-step-label b {
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--tp-soft); color: var(--tp-green);
  font-size: .68rem;
}
.tp-step-block { margin-bottom: 16px; }
.tp-step-block:last-of-type { margin-bottom: 0; }

.tp-div-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tp-div-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; padding: 4px 6px;
  border: 1px solid #d9e4de; border-radius: 9px;
  background: #fff; color: #33463d;
  font-size: .78rem; font-weight: 600; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tp-div-btn:hover { border-color: #b9d5c6; background: var(--tp-pale); color: var(--tp-deep); }
.tp-div-btn.is-active { background: var(--tp-green); border-color: var(--tp-green); color: #fff; }
.tp-div-btn.is-active:hover { background: var(--tp-dark); color: #fff; }

.tp-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-select-grid .tp-field { margin-bottom: 0; }
.tp-select-grid .tp-field.is-wide { grid-column: 1 / -1; }

.tp-demo-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin: 14px 0 0; padding: 8px 11px;
  background: #fff8e8; border: 1px solid #f3e2b4; border-radius: 9px;
  font-size: .72rem; line-height: 1.6; color: #7a5a12;
}
.tp-demo-note .tp-i { width: 14px; height: 14px; margin-top: 1px; flex: none; }

/* Right-hand selection summary */
.tp-pick { display: flex; flex-direction: column; padding: 22px 24px; }
.tp-pick h3 { margin: 0 0 4px; font-size: .98rem; color: var(--tp-dark); }
.tp-pick > p { margin: 0 0 14px; font-size: .78rem; color: var(--tp-muted); }
.tp-path { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.tp-path span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 6px;
  background: var(--tp-soft); color: var(--tp-deep);
  font-size: .73rem; font-weight: 600;
}
.tp-path span.is-empty { background: #f4f7f5; color: #96a69d; font-weight: 500; }
.tp-path .tp-i { width: 11px; height: 11px; opacity: .55; }

.tp-pick-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 0 16px; margin-bottom: 4px;
  border-top: 1px solid #eef4f0;
}
.tp-pick-stat b { font-size: 1.9rem; line-height: 1; color: var(--tp-green); font-variant-numeric: tabular-nums; }
.tp-pick-stat span { font-size: .78rem; color: var(--tp-muted); }
.tp-pick-actions { display: grid; gap: 8px; margin-top: auto; }
.tp-pick-actions .tp-btn { width: 100%; }
.tp-pick-actions .tp-btn-ghost[disabled] { opacity: .45; cursor: not-allowed; }
.tp-pick-hint { margin: 10px 0 0; font-size: .7rem; line-height: 1.6; color: #8a9a91; }

/* PDF/file list */
.tp-file-list { margin-top: 4px; }
.tp-file-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px dashed #e6efe9;
}
.tp-file-row:first-child { border-top: 0; }
.tp-file-ico {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: #fdecec; color: #c0392b;
}
.tp-file-ico .tp-i { width: 17px; height: 17px; }
.tp-file-meta b { display: block; font-size: .78rem; color: var(--tp-ink); line-height: 1.45; }
.tp-file-meta small { display: block; font-size: .68rem; color: #8a9a91; }
.tp-file-act {
  padding: 5px 10px; border: 1px solid #d9e4de; border-radius: 7px;
  background: #fff; color: var(--tp-green);
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.tp-file-act:hover { background: var(--tp-soft); }

/* Four-up mini cards */
.tp-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tp-mini-card {
  padding: 18px; border-radius: 14px; background: #fff;
  border: 1px solid var(--tp-line); box-shadow: var(--tp-shadow-sm);
}
.tp-mini-card .tp-i { width: 21px; height: 21px; color: var(--tp-green); margin-bottom: 10px; }
.tp-mini-card b,
.tp-mini-card h3 { display: block; margin: 0 0 4px; font-size: .88rem; color: var(--tp-ink); }
.tp-mini-card span,
.tp-mini-card p { display: block; margin: 0; font-size: .76rem; line-height: 1.7; color: var(--tp-muted); }

/* Mouza picker list */
.tp-mouza-list { display: flex; flex-direction: column; gap: 6px; }
.tp-mouza-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px;
  border: 1px solid #e4ece7; border-radius: 9px;
  background: #fff; color: #33463d; text-align: left;
  font-size: .78rem; font-weight: 600;
}
.tp-mouza-item small { font-weight: 500; color: #8a9a91; }
.tp-mouza-item:hover { border-color: #b9d5c6; background: var(--tp-pale); }
.tp-mouza-item.is-active { border-color: var(--tp-green); background: #eef6f1; color: var(--tp-deep); }

/* Map preview */
.tp-map-preview {
  position: relative; margin-top: 16px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid #dbe7e0; background: #f2faf5;
}
.tp-map-preview img { width: 100%; height: auto; }
.tp-map-badge {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(6, 51, 39, .88); color: #fff;
  font-size: .68rem; font-weight: 700;
}

/* ------------------------------------------------------------
   Area calculator
   ------------------------------------------------------------ */
.tp-shape-tabs {
  display: flex; gap: 4px; padding: 5px;
  background: #eef6f1; border: 1px solid #dcebe2; border-radius: 12px;
  margin-bottom: 18px;
}
.tp-shape-tab {
  flex: 1; min-height: 38px; padding: 5px 4px;
  border: 0; border-radius: 8px; background: transparent;
  color: #5b7268; font-size: .78rem; font-weight: 700;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tp-shape-tab:hover { color: var(--tp-green); }
.tp-shape-tab.is-active { background: #fff; color: var(--tp-green); box-shadow: 0 1px 3px rgba(6,51,39,.10); }

.tp-form-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp-form-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tp-form-grid3 .tp-field,
.tp-form-grid4 .tp-field { margin-bottom: 0; }
.tp-unit-row { display: flex; gap: 8px; align-items: stretch; }
.tp-unit-row .tp-control { flex: 1; }
.tp-unit-row select.tp-control { width: 112px; flex: none; }
.tp-unit-note { background: #f7fbf8; color: #7b8b82; }

.tp-inline-hint {
  margin: 12px 0 0; font-size: .74rem; line-height: 1.65; color: #7b8b82;
}
.tp-inline-hint strong { color: #3e564b; }

/* GPS block */
.tp-gps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.tp-gps-visual {
  position: relative; min-height: 300px; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--tp-line);
  background: #eef6f1;
}
.tp-gps-visual img { width: 100%; height: 100%; object-fit: cover; }
.tp-gps-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,51,39,.55) 100%);
}
.tp-gps-overlay {
  position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  color: #fff;
}
.tp-gps-overlay b { display: block; font-size: .92rem; }
.tp-gps-overlay span { display: block; font-size: .72rem; color: #d6e8de; }
.tp-gps-overlay .tp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  font-size: .68rem; font-weight: 700; color: #fff;
}
.tp-gps-copy { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.tp-gps-copy h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--tp-dark); }
.tp-gps-copy p { margin: 0 0 14px; font-size: .84rem; line-height: 1.8; color: var(--tp-muted); }
.tp-gps-copy ul { margin: 0 0 16px; padding: 0; list-style: none; }
.tp-gps-copy li {
  display: flex; align-items: flex-start; gap: 7px;
  margin-bottom: 6px; font-size: .8rem; color: #3e564b;
}
.tp-gps-copy li .tp-i { width: 15px; height: 15px; margin-top: 2px; color: var(--tp-green); }
.tp-gps-frame {
  position: relative;
  display: none; margin-top: 14px;
  border: 1px solid var(--tp-line); border-radius: 14px; overflow: hidden;
  background: #eef6f1;
}
.tp-gps-frame.is-open { display: block; }
.tp-gps-frame iframe { display: block; width: 100%; height: 520px; border: 0; }
.tp-gps-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-align: center;
  font-size: .86rem; font-weight: 600; color: var(--bhu-text-secondary, #475569);
  background: #eef6f1;
  transition: opacity .3s ease;
}
.tp-gps-loading[hidden] { display: none; }
.tp-gps-loading .ebl-inline-logo { width: 40px; height: 40px; }
.tp-gps-loading .ebl-inline-logo img { width: 26px; height: 26px; }
.tp-gps-loading .ebl-inline-logo::after { inset: -4px; border-width: 3px; }
.tp-gps-loading-bar {
  width: 150px; height: 5px; border-radius: 99px;
  background: #dcebe3; overflow: hidden;
}
.tp-gps-loading-bar span {
  display: block; width: 42%; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--bhu-green, #006a4e), #7ccf9e);
  animation: eblBar 1.35s ease-in-out infinite;
}
.tp-gps-frame.is-ready .tp-gps-loading { opacity: 0; pointer-events: none; }
html[data-theme="dark"] .tp-gps-frame { border-color: #1e352c; background: #0f211a; }
html[data-theme="dark"] .tp-gps-loading { background: #0f211a; color: #a9c2b7; }
html[data-theme="dark"] .tp-gps-loading-bar { background: #153227; }
html[data-theme="dark"] .tp-gps-loading-bar span {
  background: linear-gradient(90deg, #34c59a, #6ee7b7);
}
@media (prefers-reduced-motion: reduce) {
  .tp-gps-loading { transition: none; }
  .tp-gps-loading-bar span { animation: none; width: 100%; opacity: .55; }
}

/* ------------------------------------------------------------
   Namjari receipt
   ------------------------------------------------------------ */
.tp-receipt { overflow: hidden; display: flex; flex-direction: column; }
.tp-receipt-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px;
  background:
    radial-gradient(280px 160px at 100% 0%, rgba(242,169,0,.20), transparent 70%),
    linear-gradient(135deg, var(--tp-dark) 0%, #0a5c43 100%);
  color: #fff;
}
.tp-receipt-head small { display: block; font-size: .7rem; color: #b9d2c6; }
.tp-receipt-head strong { display: block; margin-top: 2px; font-size: .98rem; color: #fff; }
.tp-stamp {
  flex: none; padding: 5px 9px; border: 1.5px dashed rgba(255,255,255,.55);
  border-radius: 7px; color: #f7d98a;
  font-size: .64rem; font-weight: 700; line-height: 1.3;
  transform: rotate(-4deg);
}
.tp-receipt-rows { padding: 4px 22px 0; }
.tp-receipt-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-top: 1px dashed #e6efe9;
  font-size: .82rem; color: #5b7268;
}
.tp-receipt-row:first-child { border-top: 0; }
.tp-receipt-row b { color: var(--tp-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-receipt-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 16px 22px;
  background: var(--tp-soft);
}
.tp-receipt-total span { font-size: .8rem; font-weight: 600; color: #3e564b; }
.tp-receipt-total b { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--tp-green); font-variant-numeric: tabular-nums; }
.tp-receipt-foot {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px 22px; border-top: 1px solid #eef4f0; background: #fff;
}
.tp-receipt-foot .tp-btn { flex: 1 1 auto; }
.tp-receipt-note { width: 100%; margin: 0; font-size: .68rem; line-height: 1.6; color: #8a9a91; }
.tp-save-form { display: flex; flex: 1 1 auto; margin: 0; }
.tp-save-form .tp-btn { width: 100%; justify-content: center; }
.tp-save-form .tp-btn:disabled { opacity: .5; cursor: not-allowed; }

.tp-alert {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 16px; padding: 11px 15px;
  background: #fdecec; border: 1px solid #f2c9c9; border-radius: 12px;
  font-size: .84rem; line-height: 1.7; color: #97201f;
}

.tp-bar-stack {
  display: flex; height: 13px; border-radius: 999px; overflow: hidden;
  background: #e9f2ed; margin: 4px 0 10px;
}
.tp-bar-stack span { display: block; height: 100%; }
.tp-bar-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tp-bar-legend i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: .74rem; color: #5b7268; }
.tp-bar-legend i::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.tp-bar-legend i.is-rec::before { background: #006a4e; }
.tp-bar-legend i.is-chg::before { background: #f2a900; }
.tp-bar-legend i.is-app::before { background: #7fb8a2; }
.tp-bar-legend b { color: var(--tp-ink); font-variant-numeric: tabular-nums; }

.tp-table.is-compare td {
  text-align: left; vertical-align: top;
  font-size: .8rem; line-height: 1.7; white-space: normal;
}
.tp-table.is-compare th:first-child,
.tp-table.is-compare td:first-child { min-width: 132px; }

.tp-cost-card { padding: 24px; }
.tp-cost-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--tp-dark); }
.tp-cost-list { margin-top: 12px; }
.tp-cost-item {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px;
  align-items: start; padding: 12px 0; border-top: 1px solid #eef4f0;
}
.tp-cost-item:first-child { border-top: 0; padding-top: 4px; }
.tp-cost-dot { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; }
.tp-cost-item strong { display: block; font-size: .86rem; color: var(--tp-ink); }
.tp-cost-item p { margin: 2px 0 0; font-size: .75rem; line-height: 1.65; color: var(--tp-muted); }
.tp-cost-item > b { font-size: .94rem; color: var(--tp-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ------------------------------------------------------------
   Faraid — real engine inside the new shell
   ------------------------------------------------------------ */
.tp-faraid-stage {
  background: #fff; border: 1px solid var(--tp-line); border-radius: 20px;
  padding: 0 22px 24px; box-shadow: var(--tp-shadow-sm);
  overflow: hidden;
}
.tp-faraid-stage #faraid-calculator {
  max-width: none; margin: 0; padding: 0;
  background: transparent; color: var(--tp-ink);
  --brand: #006a4e;
  --brand-dark: #004d36;
  --brand-soft: #eef6f1;
  --accent: #a86f00;
  --accent-soft: #fff6df;
  --card: #fff;
  --line: #dfe9e3;
  --bg: #f6f8f5;
  --radius: 12px;
}
.tp-faraid-stage #faraid-calculator .hero,
.tp-faraid-stage #faraid-calculator .guide,
.tp-faraid-stage #faraid-calculator .faq,
.tp-faraid-stage #faraid-calculator .disclaimer { display: none !important; }
.tp-faraid-stage #faraid-calculator .tabs {
  position: static; z-index: auto;
  margin: 0 -22px; padding: 16px 22px 0;
  background: #fff; border-bottom: 1px solid var(--tp-line);
  border-top: 0; overflow: visible;
}
.tp-faraid-stage #faraid-calculator .tab {
  border: 1px solid var(--tp-line); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f3f7f4; color: #5b7268;
  font-size: .92rem; padding: 10px 12px;
}
.tp-faraid-stage #faraid-calculator .tab.active {
  background: #fff; color: var(--tp-green);
  box-shadow: 0 -1px 0 #fff, 0 1px 0 #fff;
}
.tp-faraid-stage #faraid-calculator .panel {
  border: 1px solid var(--tp-line); border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: none; padding: 18px;
}
.tp-faraid-stage #faraid-calculator .form-group { background: #fbfdfc; border-color: #e4ece7; }
.tp-faraid-stage #faraid-calculator .form-group > summary { color: var(--tp-deep); }
.tp-faraid-stage #faraid-calculator .calc-btn {
  background: var(--tp-green); border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 106, 78, .18);
}
.tp-faraid-stage #faraid-calculator .calc-btn:hover { background: var(--tp-dark); }
.tp-faraid-stage #faraid-calculator .hint { background: var(--tp-soft); border-radius: 8px; }
.tp-faraid-stage #faraid-calculator .total-badge { background: #e8f5ee; color: #116b45; border-color: #bfe3cf; }
.tp-faraid-stage #faraid-calculator .card { border-color: #e4ece7; }
.tp-faraid-stage #faraid-calculator .print-btn { border-color: #d9e4de; color: var(--tp-deep); }
.tp-faraid-stage #faraid-calculator .results { margin-top: 20px; }

.tp-faraid-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 0; padding: 10px 14px;
  background: #fff8e8; border: 1px solid #f3e2b4; border-radius: 10px;
  font-size: .76rem; line-height: 1.7; color: #7a5a12;
}
.tp-faraid-note .tp-i { width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* ------------------------------------------------------------
   Toast (mockup-only feedback)
   ------------------------------------------------------------ */
.tp-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 90;
  max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 12px;
  background: #063327; color: #fff;
  font-size: .82rem; line-height: 1.5;
  box-shadow: 0 12px 30px rgba(6,51,39,.28);
  opacity: 0; transform: translate(-50%, 12px);
  pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.tp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------
   Mockup index
   ------------------------------------------------------------ */
.tp-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tp-index-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: 16px;
  background: #fff; border: 1px solid var(--tp-line);
  color: var(--tp-ink); box-shadow: var(--tp-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tp-index-card:hover {
  color: var(--tp-ink); transform: translateY(-2px);
  border-color: #cfe0d6; box-shadow: 0 12px 26px rgba(6,51,39,.08);
}
.tp-index-card .tp-i { width: 24px; height: 24px; color: var(--tp-green); }
.tp-index-card strong { font-size: 1rem; }
.tp-index-card span { font-size: .8rem; line-height: 1.7; color: var(--tp-muted); }
.tp-index-card em { font-style: normal; margin-top: auto; padding-top: 6px; font-size: .78rem; font-weight: 700; color: var(--tp-green); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .tp-four { grid-template-columns: 1fr 1fr; }
  .tp-gps { grid-template-columns: 1fr; }
  .tp-gps-visual { min-height: 260px; }
  .tp-index-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .tp-form-grid4 { grid-template-columns: 1fr 1fr; }
  .tp-faraid-stage .tabs { flex-wrap: nowrap; overflow-x: auto; }
}

@media (max-width: 760px) {
  .tp-div-grid { grid-template-columns: repeat(4, 1fr); }
  .tp-index-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tp-cascade, .tp-pick { padding: 18px; }
  .tp-div-grid { gap: 5px; }
  .tp-div-btn { font-size: .7rem; min-height: 36px; }
  .tp-select-grid { grid-template-columns: 1fr; }
  .tp-form-grid3, .tp-form-grid4 { grid-template-columns: 1fr 1fr; }
  .tp-shape-tabs { flex-wrap: wrap; }
  .tp-shape-tab { flex: 1 1 45%; }
  .tp-receipt-head { padding: 16px 18px; }
  .tp-receipt-rows { padding: 4px 18px 0; }
  .tp-receipt-total { padding: 14px 18px; }
  .tp-receipt-foot { padding: 12px 18px; }
  .tp-faraid-stage { padding: 0 12px 18px; }
  .tp-faraid-stage #faraid-calculator .tabs { margin: 0 -12px; padding: 12px 12px 0; }
  .tp-faraid-stage #faraid-calculator .panel { padding: 12px; }
  .tp-file-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .tp-file-act { padding: 5px 8px; font-size: .68rem; }
}

@media (max-width: 400px) {
  .tp-form-grid3, .tp-form-grid4 { grid-template-columns: 1fr; }
  .tp-receipt-total b { font-size: 1.4rem; }
}

@media print {
  .tp-shape-tabs, .tp-quick, .tp-mobilebar, .tp-toast,
  .tp-demo-note, .tp-pick-actions, .tp-receipt-foot,
  .tp-gps-visual, .tp-map-preview { display: none !important; }
  .tp-receipt { border: 0; }
  .tp-receipt-head { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
  .tp-receipt-head small, .tp-receipt-head strong, .tp-stamp { color: #000; }
  .tp-faraid-stage { border: 0; padding: 0; }

  /* Faraid: print only the share table and the logo letterhead. */
  body.faraid-page .tp-hero,
  body.faraid-page .tp-facts,
  body.faraid-page .tp-section:not(#tool),
  body.faraid-page #tool > .tp-sec-head,
  body.faraid-page .tp-faraid-note,
  body.faraid-page .tp-source,
  body.faraid-page .tp-mobilebar { display: none !important; }
  body.faraid-page .tp-body { padding: 0 !important; }
  body.faraid-page .tp-wrap { width: 100%; }
  body.faraid-page .tp-faraid-stage { border: 0; box-shadow: none; padding: 0; }
}

/* ============================================================
   Bridge styles for the legacy tool widgets that stay wired to
   their original JS (khatian wizard, mouza wizard).
   ============================================================ */

/* --- Khatian CSV wizard --- */
.tp-page #kht-tool { display: grid; gap: 14px; }
/* Grid items default to min-width:auto, which lets the wide khatian table
   stretch the card past the viewport. Keep cards shrinkable so the table
   wrapper can scroll instead. */
.tp-page #kht-tool > * { min-width: 0; }
.tp-page #kht-tool .k-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--tp-shadow-sm);
}
.tp-page #kht-tool .k-card-title {
  margin-bottom: 14px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--tp-ink);
}
.tp-page #kht-tool select {
  height: 46px;
  padding: 0 12px;
  border: 1px solid #cfdcd4;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: .92rem;
  color: var(--tp-ink);
}
.tp-page #kht-tool select:focus { outline: 3px solid rgba(0, 106, 78, .18); outline-offset: 1px; border-color: var(--tp-green); }
.tp-page #kht-tool .k-div-grid { gap: 10px; }
.tp-page #kht-tool .k-div-btn {
  border: 1px solid #cfdcd4;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--tp-ink);
}
.tp-page #kht-tool .k-div-btn:hover { border-color: var(--tp-green); background: var(--tp-pale); }
.tp-page #kht-tool .k-div-btn.active { background: var(--tp-green); border-color: var(--tp-green); color: #fff; }
.tp-page #kht-tool .k-btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .86rem;
  font-weight: 700;
}
.tp-page #kht-tool .k-btn-green { background: var(--tp-green); }
.tp-page #kht-tool .k-btn-green:hover:not(:disabled) { background: var(--tp-deep); }
.tp-page #kht-tool .k-btn-gray { background: #eef3f0; color: var(--tp-ink); }
.tp-page #kht-tool .k-btn-gray:hover:not(:disabled) { background: #e3ece7; }
.tp-page #kht-tool .k-btn-pdf { background: #fff; color: var(--tp-deep); border: 1.5px solid var(--tp-green); }
.tp-page #kht-tool .k-btn-pdf:hover:not(:disabled) { background: var(--tp-pale); }
.tp-page #kht-tool .k-khat-pick {
  min-height: 46px;
  border: 1px solid #cfdcd4;
  border-radius: 10px;
  font-size: .92rem;
}
.tp-page #kht-tool .k-khat-pick:focus-visible { outline: 3px solid rgba(0, 106, 78, .2); }
.tp-page #kht-tool .k-khat-label { color: var(--tp-ink); }
.tp-page #kht-tool .k-print-note,
.tp-page #kht-tool .k-pdf-hint { color: var(--tp-muted); }
.tp-page #kht-tool .k-status { color: var(--tp-muted); }
.tp-page #kht-tool table { border-color: var(--tp-line); }
.tp-page #kht-tool th { background: var(--tp-pale); color: var(--tp-deep); }
.tp-page #kht-tool td, .tp-page #kht-tool th { border-color: var(--tp-line); }
.tp-page #kht-tool tr:nth-child(even) { background: #fbfdfc; }
.tp-page #kht-tool .k-empty-msg { color: var(--tp-muted); }
.tp-page #kht-tool .k-two-col { gap: 14px; }
.tp-page #kht-tool .k-mouza-box { flex: 0 0 32%; }
.tp-page #kht-tool .k-khat-box { flex: 1 1 auto; min-width: 0; }
.tp-page #kht-tool .k-sec-anchor { scroll-margin-top: 90px; }
.tp-page #tool, .tp-page #columns { scroll-margin-top: 84px; }
@media (max-width: 640px) {
  .tp-page #kht-tool .k-mouza-box { flex: 1 1 auto; }
  .tp-page #kht-tool .k-btn-row { flex-wrap: wrap; gap: 10px; }
  .tp-page #kht-tool .k-btn-row .k-btn { flex: 1 1 auto; }
}

/* --- Mouza map wizard --- */
.tp-page .tp-card .mm-tool-wrap {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tp-page .mm-col {
  border-color: var(--tp-line);
  border-radius: 12px;
  overflow: hidden;
}
.tp-page .mm-col-head {
  background: var(--tp-soft);
  color: var(--tp-deep);
  border-bottom: 1px solid var(--tp-line);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tp-page .mm-col-body li:hover { background: var(--tp-pale); }
.tp-page .mm-col-body li.mm-active { background: var(--tp-green); color: #fff; }
.tp-page .mm-col-body li.mm-active .mm-folder,
.tp-page .mm-col-body li.mm-active .mm-file { color: #fff; }
.tp-page .mm-btn { border-radius: 9px; border-color: var(--tp-line); color: var(--tp-deep); }
.tp-page .mm-btn:hover:not(:disabled) { border-color: var(--tp-green); background: var(--tp-pale); }
.tp-page .mm-btn:disabled {
  background: #eef3f0;
  border-color: var(--tp-line);
  color: #93a29a;
  box-shadow: none;
  opacity: 1;
}
.tp-page .mm-col-body { max-height: 330px; }
.tp-page .mm-dl-area { margin-top: 4px; }
.tp-page .mm-dl-card { border-color: var(--tp-line); background: var(--tp-pale); }
.tp-page .mm-status { color: var(--tp-muted); }
.tp-page .mm-col-body .mm-search input { border-color: var(--tp-line); border-radius: 8px; }
.tp-page .mm-col-body .mm-search input:focus { outline: 2px solid rgba(0, 106, 78, .28); border-color: var(--tp-green); }

/* --- Shared small polish --- */
.tp-page .warning-box,
.tp-page .calc-save-form { font-family: var(--font-bn); }
.tp-page .tp-legacy-ad { margin-top: 18px; }
