/* Calculator and legal pages in the udpackaging.com (东哥) layouts, 2026-10-23.
   Tools: /industries/joint-efficiency-calculator/ (navy band, input card + result on the left, explanation cards on the right).
   Legal: /privacy-policy/ (plain document, large headings), here with a sticky index. */

.dc-page { font-family: "Mulish", system-ui, sans-serif; color: var(--ud-body); }

/* shared document blocks */
.dc-card { padding: 34px 34px 18px; background: #fff; border: 1px solid #e1e7ed; }
.dc-card + .dc-card { margin-top: 28px; }
.dc-h2 { position: relative; margin: 0 0 22px; padding-bottom: 16px; font-size: 25px; font-weight: 800; line-height: 1.3; color: var(--ud-title); border-bottom: 1px solid #dde4ea; }
.dc-h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 3px; background: var(--ud-accent); }
.dc-p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; color: var(--ud-body); }
.dc-p-small { font-size: 15.5px; line-height: 1.7; }
.dc-p-next { padding: 13px 16px 13px 18px; border-left: 3px solid var(--ud-navy); background: #f5f8fb; font-size: 16px; }
.dc-p-cond { margin: 0 0 18px; padding: 13px 16px 13px 18px; border-left: 3px solid var(--ud-accent); background: #fff7f2; font-size: 16px; line-height: 1.7; color: var(--ud-body); }
.dc-formula { margin: 0 0 20px; padding: 16px 18px; background: #f2f5f8; border-left: 4px solid var(--ud-navy); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.7; color: var(--ud-ink); }
.dc-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 9px; }
.dc-list li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.7; }
.dc-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; background: var(--ud-accent); transform: rotate(45deg); }
.dc-page a:not(.ud-btn) { color: var(--ud-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.dc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 6px 0 22px; }
.dc-cta-note { margin: 0; max-width: 520px; font-size: 14.5px; line-height: 1.6; color: var(--ud-muted); }
.dc-table { margin: 4px 0 22px; }
.dc-table figcaption { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; color: var(--ud-title); }
.dc-table-scroll { overflow-x: auto; border: 1px solid #dbe3ea; }
.dc-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.dc-table thead th { padding: 13px 14px; background: var(--ud-navy); color: #fff; font-weight: 700; text-align: left; vertical-align: bottom; }
.dc-table tbody th, .dc-table tbody td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid #e3e9ef; }
.dc-table tbody th { font-weight: 700; color: var(--ud-title); }
.dc-table tbody tr:nth-child(even) { background: #f6f8fa; }

/* ── tools ── */
.tl-band { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 70px; background: linear-gradient(120deg, #001830 0%, #00264a 60%, #001222 100%); }
.tl-band-inner { position: relative; max-width: 1440px; }
.tl-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffb58a; }
.tl-h1 { max-width: 980px; margin: 0 0 20px; font-size: clamp(34px, 3vw, 46px); font-weight: 900; line-height: 1.15; color: #fff; }
.tl-lead { max-width: 900px; margin: 0; font-size: 18px; line-height: 1.75; color: var(--ud-on-dark); }
.tl-lead a { color: #ffb58a !important; }
.tl-body { padding: 52px 0 70px; background: #f3f5f8; }
.tl-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px; align-items: start; }
.tl-left .dc-card + .dc-card { margin-top: 28px; }
.tl-input { border-top: 4px solid var(--ud-accent); }

/* the calculator form (site.css .calc-form) in the ud look */
.tl-input .calc-form { margin: 8px 0 0; padding: 0; background: none; border: 0; border-radius: 0; }
.tl-input .form-grid { gap: 18px; }
.tl-input .form-label { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ud-title); }
.tl-input .req-marker { color: var(--ud-accent); }
.tl-input .form-control { min-height: 48px; padding: 11px 14px; border: 1px solid #c9d5df; border-radius: 2px; background: #fff; font-size: 16px; color: var(--ud-ink); transition: border-color .2s, box-shadow .2s; }
.tl-input .form-control:focus { outline: none; border-color: var(--ud-navy); box-shadow: 0 0 0 3px rgba(0, 24, 48, .12); }
.tl-input .form-actions { margin-top: 24px; }
.tl-input .btn--accent { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 40px; border: 0; border-radius: 0; background: var(--ud-accent); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); transition: background-color .2s, transform .2s; }
.tl-input .btn--accent:hover { background: #c7500f; transform: translateY(-1px); }
.tl-input .calc-result { margin: 24px 0 18px; padding: 18px 20px; background: #fff7f2; border: 1px solid rgba(226, 97, 26, .35); border-left: 4px solid var(--ud-accent); border-radius: 0; }
.tl-input .calc-result:empty { display: block; }
.tl-input .calc-result:empty::before { content: "Results appear here."; font-size: 15px; color: var(--ud-muted); }
.tl-input .calc-result .datapoint { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(226, 97, 26, .18) !important; font-size: 15px; line-height: 1.5; color: var(--ud-body); }
.tl-input .calc-result .datapoint:first-child { padding-top: 0; }
.tl-input .calc-result .datapoint strong, .tl-input .calc-result .calc-value { flex: none; max-width: 55%; font-size: 16px; font-weight: 800; text-align: right; color: var(--ud-title); }
.tl-input .calc-result p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ud-body); }
.tl-input .calc-result .table-wrap { margin-top: 14px; overflow-x: auto; }
.tl-input .calc-result table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.tl-input .calc-result caption { padding-bottom: 8px; font-size: 13.5px; font-weight: 700; text-align: left; color: var(--ud-title); }
.tl-input .calc-result th { padding: 9px 10px; background: var(--ud-navy); color: #fff; text-align: left; }
.tl-input .calc-result td { padding: 8px 10px; border-top: 1px solid #e3e9ef; vertical-align: top; }

.tl-end { position: relative; isolation: isolate; overflow: hidden; padding: 60px 0 64px; background: var(--ud-navy); }
.tl-end-inner { position: relative; max-width: 1040px; }
.tl-end-h { margin: 0 0 16px; font-size: clamp(28px, 2.4vw, 38px); font-weight: 900; color: #fff; }
.tl-end-p { margin: 0 0 22px; font-size: 18px; line-height: 1.75; color: var(--ud-on-dark); }
.tl-end-st { margin: 18px 0 0; font-size: 14.5px; color: #9fb3c8; }

/* ── legal ── */
.lg-page { padding: 56px 0 80px; background: #fff; }
.lg-grid { display: grid; grid-template-columns: 250px minmax(0, 880px); gap: 64px; justify-content: center; align-items: start; }
.lg-index { position: sticky; top: 104px; padding: 20px 18px; border-left: 4px solid var(--ud-accent); background: #f6f8fa; }
.lg-index-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ud-title); }
.lg-index ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg-index a { display: flex; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ud-body) !important; text-decoration: none !important; }
.lg-index a span { flex: none; font-size: 12px; color: var(--ud-accent-text); }
.lg-index a:hover { color: var(--ud-accent-text) !important; }
.lg-h1 { margin: 0 0 22px; font-size: clamp(36px, 3vw, 48px); font-weight: 900; line-height: 1.15; color: var(--ud-title); }
.lg-lead { margin: 0 0 18px; font-size: 19px; line-height: 1.75; color: var(--ud-ink); }
.lg-sec { scroll-margin-top: 110px; padding-top: 38px; }
.lg-h2 { margin: 0 0 18px; font-size: clamp(26px, 2.2vw, 32px); font-weight: 900; line-height: 1.25; color: var(--ud-title); }
.lg-p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; color: var(--ud-body); }

@media (max-width: 1100px) {
  .tl-grid { grid-template-columns: 1fr; }
  .lg-grid { grid-template-columns: 1fr; gap: 28px; }
  .lg-index { position: static; }
}
@media (max-width: 640px) { .dc-card { padding: 24px 18px 10px; } .tl-band { padding: 44px 0 48px; } }
