/* Free PM tools page (/freepmtools): templates to copy, calculators that run in the browser. Theme tokens only, so light and dark both work. */
.pt-page { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.pt-head { text-align: center; margin: 0 auto 1.8rem; max-width: 680px; }
.pt-head h1 { font-size: clamp(2.2rem, 6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 0.8rem; }
.pt-head p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; margin: 0 0 0.6rem; }
.pt-meta { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-gray); font-size: .8rem !important; line-height: 1.3 !important; color: var(--text-secondary) !important; }
.pt-meta::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

.pt-sec { margin: 0 0 3rem; scroll-margin-top: 90px; }
.pt-sec > h2 { font-size: 1.5rem; margin: 0 0 0.4rem; }

/* Calculators */
.pt-tool { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.pt-tool.wide { grid-column: 1 / -1; }
.pt-tool h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.pt-tool > p { color: var(--text-secondary); font-size: 0.92rem; margin: 0 0 1rem; }
.pt-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; margin: 0 0 1rem; }
.pt-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); }
.pt-field input, .pt-field select, .pt-tbl input, .pt-tbl select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-primary); font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.pt-field input:focus, .pt-field select:focus, .pt-tbl input:focus, .pt-tbl select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.pt-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }
.pt-stat { border: 1px solid var(--border); border-radius: 14px; padding: 0.8rem 1rem; background: var(--bg-gray); }
.pt-stat b { display: block; font-size: 1.45rem; letter-spacing: -.02em; color: var(--text-primary); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pt-stat span { font-size: 0.78rem; color: var(--text-light); }
.pt-stat.good b { color: #0d9488; }
.pt-stat.warn b { color: #ea580c; }
html[data-theme="dark"] .pt-stat.good b { color: #2dd4bf; }
html[data-theme="dark"] .pt-stat.warn b { color: #fb923c; }
.pt-note { font-size: 0.82rem; color: var(--text-light); margin: 0.8rem 0 0; }
.pt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 0.9rem; }
.pt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-primary); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.pt-btn:hover { border-color: var(--primary); color: var(--primary); }
.pt-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
html[data-theme="dark"] .pt-btn.primary { color: #0b1220; }
.pt-btn.primary:hover { color: #fff; filter: brightness(1.08); }
html[data-theme="dark"] .pt-btn.primary:hover { color: #0b1220; }
.pt-tblwrap { overflow-x: auto; margin: 0 0 0.9rem; }
.pt-tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.pt-tbl th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); padding: 6px 6px; border-bottom: 1px solid var(--border); }
.pt-tbl td { padding: 5px 4px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pt-tbl td.score { font-weight: 800; color: var(--primary); white-space: nowrap; }
.pt-x { background: none; border: 0; color: var(--text-light); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; }
.pt-x:hover { color: #dc2626; }
.pt-bar { height: 8px; border-radius: 4px; background: var(--primary); min-width: 2px; }
.pt-funrow { display: grid; grid-template-columns: 1.4fr 1fr 2fr; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.pt-funrow.biggest { background: rgba(234, 88, 12, 0.08); }
@media (max-width: 560px) { .pt-funrow { grid-template-columns: 1fr 1fr; } .pt-funrow .pt-bar-cell { grid-column: 1 / -1; } }

/* Templates */
.pt-card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 1.1rem 1.2rem 1.1rem; min-width: 0; scroll-margin-top: 90px; }
.pt-card pre { margin: 0.6rem 0 0; padding: 0.85rem 1rem; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-gray); color: var(--text-primary); font-size: 0.8rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }

/* Frameworks and tool stack */
.pt-fw { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0.9rem; }
.pt-fw div { border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; background: var(--surface); }
.pt-fw b { display: block; margin: 0 0 0.2rem; color: var(--text-primary); }
.pt-fw span { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
.pt-fw a { color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.pt-stack { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pt-stack th, .pt-stack td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.pt-stack th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); }
.pt-stack td:first-child { font-weight: 600; color: var(--text-primary); }
.pt-stack td { color: var(--text-secondary); }
@media (max-width: 640px) { .pt-stack thead { display: none; } .pt-stack tr { display: block; border-bottom: 1px solid var(--border); padding: 0.5rem 0; } .pt-stack td { display: block; border: 0; padding: 0.15rem 0.2rem; } }

/* FAQ, CTA */
.pt-faq details { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 0 1.2rem; margin: 0 0 .7rem; transition: border-color .2s, box-shadow .2s; }
.pt-faq details:hover, .pt-faq details[open] { border-color: color-mix(in srgb, #6366f1 45%, var(--border)); }
.pt-faq details[open] { box-shadow: 0 14px 28px -22px rgba(99, 102, 241, .6); }
.pt-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; font-weight: 650; padding: 1rem 0; color: var(--text-primary); }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-gray); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 500; color: var(--text-secondary); transition: transform .2s, background .2s; }
.pt-faq details[open] summary::after { content: "\2212"; background: #6366f1; color: #fff; }
.pt-faq details p { margin: 0 0 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.pt-cta { text-align: center; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-gray); padding: 1.6rem 1.2rem; }
.pt-cta h2 { margin: 0 0 0.4rem; font-size: 1.3rem; }
.pt-cta p { margin: 0 0 1rem; color: var(--text-secondary); }
.pt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text-primary); color: var(--bg-white, #fff); padding: 9px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.pt-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Listing (/freepmtools) and the tool cards shown on every tool page: minimal, Gen Z look ===== */
.pt-page.pt-wide { max-width: 1180px; }
.pt-head.pt-hero { max-width: 900px; margin: 0 auto 1.4rem; padding-top: .4rem; }
.pt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1.1rem; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .78rem; font-weight: 600; color: var(--text-secondary); }
.pt-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.pt-hero h1 { font-size: clamp(2.2rem, 6.4vw, 3.9rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; margin: 0 0 1rem; }
.pt-grad { background: linear-gradient(110deg, #6366f1, #d946ef 55%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-hero .pt-sub { margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--text-secondary); }
/* share: tiny icon-only row under the hero */
.pt-share-c { margin: 0 0 1.5rem; }
.pt-share-c .share-title, .pt-share-c .share-label { display: none; }
.pt-share-c .share-bar { gap: 8px; }
.pt-share-c .share-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.pt-share-bottom.pt-share-c .share-title { display: inline; }
.pt-share-bottom.pt-share-c .share-label { display: none; }

/* controls: search and type switch on one row, categories as one scrolling row of chips */
.pt-controls { display: flex; align-items: center; gap: 12px; max-width: 980px; margin: 0 auto 14px; }
.pt-search { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; margin: 0; }
.pt-search-icon { position: absolute; left: 20px; fill: var(--text-light); pointer-events: none; }
.pt-search input { width: 100%; height: 56px; padding: 0 92px 0 52px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-primary); font: inherit; font-size: 1rem; box-shadow: 0 6px 20px -14px rgba(15, 23, 42, .35); transition: border-color .15s, box-shadow .15s; }
.pt-search input::-webkit-search-cancel-button { display: none; }
.pt-search input::placeholder { color: var(--text-light); }
.pt-search input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99, 102, 241, .16); }
.pt-search-key { position: absolute; right: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); pointer-events: none; }
.pt-search-key kbd { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-gray); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; }
.pt-search input:focus ~ .pt-search-key, .pt-search.has-query .pt-search-key { display: none; }
.pt-search-clear { position: absolute; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bg-gray); color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.pt-search-clear[hidden] { display: none; } .pt-search-clear:hover { color: var(--text-primary); }
.pt-types { display: flex; align-items: center; gap: 2px; flex: none; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-gray); }
.pt-types-l { display: none; }
.pt-seg { padding: 9px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary); font: inherit; font-size: .84rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.pt-seg:hover { color: var(--text-primary); }
.pt-seg.active { background: var(--surface); color: var(--text-primary); font-weight: 700; box-shadow: 0 1px 4px rgba(15, 23, 42, .18); }
.pt-seg .n { margin-left: 4px; font-size: .72rem; color: var(--text-light); } .pt-seg.is-empty { opacity: .4; }
.pt-filters { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; max-width: 1180px; margin: 0 auto 22px; padding: 4px 2px 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 93%, transparent); mask-image: linear-gradient(90deg, #000 93%, transparent); }
.pt-filters::-webkit-scrollbar, .pt-types::-webkit-scrollbar { display: none; }
.pt-chip { --c: #6366f1; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-secondary); font: inherit; font-size: .84rem; font-weight: 550; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.pt-chip[style]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pt-chip:hover { border-color: var(--c); color: var(--text-primary); }
.pt-chip.active { border-color: transparent; background: var(--text-primary); color: var(--bg-white, #fff); font-weight: 650; }
.pt-chip.active .n { color: inherit; opacity: .7; }
.pt-chip.is-empty { opacity: .38; }
.pt-chip .n { font-size: .74rem; font-variant-numeric: tabular-nums; color: var(--text-light); }
.pt-chip:focus-visible, .pt-seg:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.pt-catdesc { text-align: center; margin: -6px 0 18px; font-size: .9rem; color: var(--text-secondary); }
.pt-catdesc[hidden] { display: none; }
.pt-search-status { text-align: center; font-size: .85rem; color: var(--text-light); margin: 0 0 14px; } .pt-search-status:empty { display: none; }
.pt-noresults { text-align: center; padding: 48px 16px; border: 1px dashed var(--border); border-radius: 24px; color: var(--text-secondary); }
.pt-noresults[hidden] { display: none; }
.pt-noresults h2 { font-size: 1.35rem; color: var(--text-primary); margin: 0 0 8px; }
.pt-reset { border: 0; background: none; padding: 0; font: inherit; color: #6366f1; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .pt-controls { flex-direction: column; align-items: stretch; } .pt-types { overflow-x: auto; scrollbar-width: none; } .pt-search-key { display: none; } .pt-search input { font-size: 16px; padding-right: 56px; } }

/* cards */
.pt-lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1020px) { .pt-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pt-lgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.pt-lcard { --c: #6366f1; position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.pt-lcard[hidden] { display: none; }
.pt-lcard:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 55%, var(--border)); box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--c) 65%, transparent); }
.pt-lcard:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.pt-limg { position: relative; aspect-ratio: 5 / 2; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, var(--bg-gray)); }
.pt-limg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pt-lcard:hover .pt-limg img { transform: scale(1.05); }
.pt-ltags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pt-ty { padding: 4px 10px; border-radius: 999px; background: var(--bg-gray); color: var(--text-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pt-cat { padding: 4px 10px; border-radius: 999px; background: var(--c); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pt-pop { position: absolute; z-index: 2; bottom: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(110deg, #f59e0b, #f43f5e); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pt-lbody { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pt-ltitle { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-lexcerpt { margin: 0 0 14px; font-size: .88rem; line-height: 1.55; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
.pt-more { align-self: flex-start; margin-top: auto; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text-primary); font-size: .8rem; font-weight: 650; transition: background .2s, color .2s; }
.pt-lcard:hover .pt-more { background: var(--c); color: #fff; }

/* Tool pages (/freepmtools/<slug>) */
.pt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-light); margin: 0 0 1.4rem; }
.pt-crumbs a { color: var(--text-secondary); text-decoration: none; }
.pt-crumbs a:hover { color: var(--primary); }
.pt-head.pt-head-l { text-align: left; margin: 0 0 1.8rem; max-width: 860px; }
.pt-head-l h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 .9rem; text-wrap: balance; }
.pt-head-l .pt-lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); line-height: 1.55; color: var(--text-secondary); margin: 0 0 1rem; max-width: 720px; }
.pt-kindlbl { --c: var(--primary); display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0.8rem; padding: 4px 12px 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 11%, transparent); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-secondary); }
.pt-kindlbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pt-solo { margin: 0 0 2.4rem; }
.pt-doc { margin: 0 0 2.4rem; padding: 1.1rem 1.2rem 1.3rem; }
.pt-doc pre { max-height: none; font-size: 0.85rem; }
.pt-how { margin: 0 0 2.4rem; }
.pt-how h2, .pt-faq h2, .pt-all-h { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; margin: 0 0 .9rem; }
.pt-how h2::before, .pt-faq h2::before, .pt-all-h::before { content: ""; display: block; width: 34px; height: 4px; margin-bottom: .7rem; border-radius: 4px; background: linear-gradient(110deg, #6366f1, #d946ef 60%, #fb923c); }
.pt-how p { color: var(--text-secondary); line-height: 1.7; max-width: 800px; }
.pt-how ul { color: var(--text-secondary); line-height: 1.7; padding-left: 1.2rem; max-width: 800px; margin: 0 0 0.8rem; }
.pt-faq { max-width: 800px; }
.pt-all { margin: 1.2rem 0 0; font-weight: 600; }
.pt-all a { color: var(--primary); text-decoration: none; }

/* Long-form guides */
.pt-prose { max-width: 860px; margin: 0 0 2.4rem; }
.pt-prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.pt-prose h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
.pt-prose p, .pt-prose li { color: var(--text-secondary); line-height: 1.7; }
.pt-prose ul, .pt-prose ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.pt-prose a { color: var(--primary); }
.pt-prose code, .pt-tbl2 code { background: var(--bg-gray); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 0.86em; color: var(--text-primary); overflow-wrap: anywhere; }
.pt-tbl2 { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.pt-tbl2 th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-light); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.pt-tbl2 td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-secondary); line-height: 1.55; }
.pt-tbl2 td:first-child { color: var(--text-primary); }
.pt-tbl2 td.ok { color: #0d9488; font-weight: 700; } .pt-tbl2 td.bad { color: #ea580c; font-weight: 700; }
html[data-theme="dark"] .pt-tbl2 td.ok { color: #2dd4bf; } html[data-theme="dark"] .pt-tbl2 td.bad { color: #fb923c; }
.pt-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-gray); color: var(--text-primary); font: 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; box-sizing: border-box; resize: vertical; }
.pt-field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Share bars (markup and look shared with posts and case studies via share.css) */
.pt-share { margin: 1.1rem 0 0; }
.pt-share:not(.pt-share-bottom) .share-title, .pt-share:not(.pt-share-bottom) .share-label { display: none; }
.pt-share:not(.pt-share-bottom) .share-bar { gap: 8px; }
.pt-share:not(.pt-share-bottom) .share-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.pt-share .share-bar { margin: 0; }
.pt-share-bottom { margin: 2.4rem 0; padding: 0; display: flex; justify-content: center; }
.pt-share-bottom .share-bar.share-bar-bottom { margin: 0; padding: 0; border: 0; justify-content: center; gap: 8px; }
.pt-share-bottom .share-label { display: none; }
.pt-share-bottom .share-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; }
.pt-share-c { display: flex; justify-content: center; margin: 0 0 1.6rem; }
.pt-share-bottom.pt-share-c { margin: 2.4rem 0 0; }

/* Disclaimer (same look as the blog disclaimer) */
.pt-disclaimer { max-width: 860px; margin: 3rem 0 1.5rem; padding: 1.3rem 1.5rem; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-gray); }
.pt-page.pt-wide .pt-disclaimer { margin-left: auto; margin-right: auto; }
.pt-disclaimer h3 { display: inline-block; margin: 0 0 .7rem; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.pt-disclaimer p { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); margin: 0 0 0.7rem; }
.pt-disclaimer p:last-child { margin-bottom: 0; }
.pt-disclaimer strong { color: var(--text-primary); }

.pt-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Calculators with one form and one result block (class pt-split, added by tools/build-freepmtools.py): inputs on the left, results as a panel that stays in view on the right */
.pt-solo.pt-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 18px; align-items: start; border: 0; background: transparent; padding: 0; }
.pt-split > * { grid-column: 1 / -1; min-width: 0; }
.pt-split > .pt-form { grid-column: 1; margin: 0; padding: 20px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pt-split > .pt-out { grid-column: 2; grid-row: 1; position: sticky; top: 84px; display: grid; grid-template-columns: 1fr; gap: 0; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 18px; background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface) 70%); }
.pt-split .pt-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; }
.pt-split .pt-stat b { order: 2; font-size: 1.15rem; text-align: right; }
.pt-split .pt-stat span { font-size: .84rem; color: var(--text-secondary); }
.pt-split .pt-stat.good, .pt-split .pt-out:not(:has(.good)) > .pt-stat:first-child { order: -1; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 0; padding-bottom: 14px; }
.pt-split .pt-stat.good b, .pt-split .pt-out:not(:has(.good)) > .pt-stat:first-child b { order: 0; font-size: clamp(1.9rem, 4vw, 2.5rem); color: var(--primary); text-align: left; }
.pt-split .pt-stat:last-child { border-bottom: 0; }
.pt-split > .pt-note { grid-column: 1; }
@media (max-width: 960px) { .pt-solo.pt-split { grid-template-columns: 1fr; } .pt-split > .pt-form, .pt-split > .pt-out { grid-column: 1; } .pt-split > .pt-out { grid-row: auto; position: static; order: -1; } }

/* Template pages: the document sits in a calm editor-style card */
.pt-doc.pt-card { padding: 1rem 1.1rem 1.2rem; }
.pt-doc .pt-btns { margin: 0 0 .8rem; }
.pt-doc pre { margin: 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-gray); font-size: .85rem; line-height: 1.7; tab-size: 2; }
