/* La documentazione riutilizza palette, caratteri e componenti del tema. */
.tp-docs-body { --docs-ink:#0c2942; --docs-muted:#485d72; --docs-accent:#635bff; --docs-line:#e5e7f0; background:#fff; color:var(--docs-ink); }
.tp-docs-body a { text-underline-offset:4px; }
.tp-docs-body :where(a,button,input,summary):focus-visible { outline:3px solid var(--docs-accent); outline-offset:4px; }
.tp-docs-skip { position:fixed; top:-100px; left:20px; z-index:100; padding:12px 20px; border-radius:12px; background:#fff; color:var(--docs-ink); }
.tp-docs-skip:focus { top:12px; }
.tp-docs-header { position:sticky; top:0; z-index:40; background:rgba(255,255,255,.98); border-bottom:1px solid var(--docs-line); }
.admin-bar .tp-docs-header { top:32px; }
.tp-docs-header-row,.tp-docs-subnav { max-width:1420px; margin:auto; padding:0 32px; }
.tp-docs-header-row { min-height:78px; display:grid; grid-template-columns:240px minmax(180px,480px) 1fr; gap:40px; align-items:center; }
.tp-docs-header .tp-header-logo { width:148px; height:auto; }
.tp-docs-header-actions { display:flex; justify-content:flex-end; align-items:center; gap:22px; font-size:14px; white-space:nowrap; }
.tp-docs-dashboard { padding:9px 14px; border-radius:10px; background:var(--docs-ink); color:#fff; }
.tp-docs-dashboard:hover { background:#1c405d; }
.tp-docs-language { font-size:12px; font-weight:700; color:var(--docs-muted); }
.tp-docs-subnav { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; column-gap:24px; }
.tp-docs-tabs { display:flex; flex:1 1 auto; min-width:0; gap:28px; overflow-x:auto; }
.tp-docs-tabs>a { padding:12px 0; border-bottom:2px solid transparent; color:var(--docs-muted); font-size:14px; white-space:nowrap; }
.tp-docs-tabs>a[aria-current] { color:var(--docs-accent); border-color:var(--docs-accent); font-weight:650; }
.tp-docs-product-link { display:inline-flex; flex:0 1 auto; align-items:center; gap:8px; max-width:100%; margin-left:auto; padding:12px 0; color:var(--docs-accent); font-size:13px; line-height:20px; font-weight:600; }
.tp-docs-product-link svg { flex-shrink:0; }
.tp-docs-product-link:hover { text-decoration:underline; }
.tp-docs-search { display:flex; align-items:center; border:1px solid var(--docs-line); background:#fff; border-radius:12px; min-width:0; }
.tp-docs-search:focus-within { border-color:var(--docs-accent); }
.tp-docs-search input { flex:1; min-width:0; padding:11px 14px; background:transparent; border:0; font:inherit; font-size:14px; color:var(--docs-ink); border-radius:12px; }
.tp-docs-search button { display:grid; place-items:center; padding:12px; color:var(--docs-muted); border-radius:10px; }
.tp-docs-shell { max-width:1420px; margin:0 auto; padding:44px 32px 80px; }
.tp-docs-shell.has-product { display:grid; grid-template-columns:240px minmax(0,1fr) 180px; align-items:start; gap:40px; }
.tp-docs-shell.is-hub { max-width:1120px; padding-top:66px; }
.tp-docs-content { min-width:0; }
.tp-docs-content h1 { font-size:clamp(30px,3.1vw,42px); font-weight:750; letter-spacing:-.035em; line-height:1.15; margin:0 0 18px; }
.tp-docs-eyebrow { color:var(--docs-accent); font-size:13px; font-weight:650; margin:0 0 14px; }
.tp-docs-lead { font-size:18px; line-height:1.65; color:var(--docs-muted); margin:0 0 32px; }
.tp-docs-sidebar,.tp-docs-toc { position:sticky; top:158px; max-height:calc(100dvh - 180px); overflow:auto; scrollbar-width:thin; }
.tp-docs-sidebar summary { display:none; }
.tp-docs-back { display:inline-block; font-size:12px; color:var(--docs-muted); margin:0 0 22px 10px; }
.tp-docs-nav-group { margin-bottom:26px; }
.tp-docs-nav-group>p { font-size:13px; font-weight:700; margin:0 10px 8px; }
.tp-docs-nav-group ul,.tp-docs-toc ul,.tp-docs-guide-index ul { padding:0; margin:0; list-style:none; }
.tp-docs-nav-group li { margin:3px 0; }
.tp-docs-nav-group a { display:block; font-size:13px; line-height:1.5; padding:9px 10px; border-radius:10px; color:var(--docs-muted); }
.tp-docs-nav-group a:hover { color:var(--docs-accent); background:#f8f7ff; }
.tp-docs-nav-group a[aria-current] { color:var(--docs-accent); background:#f0efff; font-weight:650; }
.tp-docs-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; color:var(--docs-muted); margin:2px 0 22px; }
.tp-docs-breadcrumb a:hover { color:var(--docs-accent); }
.tp-docs-toc summary { list-style:none; font-size:13px; font-weight:650; margin:0 0 14px; }
.tp-docs-toc summary>span { display:none; }
.tp-docs-toc li { font-size:12px; line-height:1.5; margin:0 0 12px; color:var(--docs-muted); }
.tp-docs-toc li.level-3 { padding-left:12px; }
.tp-docs-toc a:hover { color:var(--docs-accent); }
.tp-docs-prose { font-size:16px; line-height:1.8; color:var(--docs-muted); overflow-wrap:anywhere; }
.tp-docs-prose h2 { font-size:24px; line-height:1.3; font-weight:700; color:var(--docs-ink); margin:40px 0 18px; letter-spacing:-.02em; scroll-margin-top:155px; }
.tp-docs-prose h3 { font-size:19px; line-height:1.4; font-weight:650; color:var(--docs-ink); margin:28px 0 14px; scroll-margin-top:155px; }
.tp-docs-prose p { margin:0 0 20px; }
.tp-docs-prose strong { color:var(--docs-ink); font-weight:650; }
.tp-docs-prose :where(ul,ol) { padding-left:23px; margin:0 0 24px; }
.tp-docs-prose ul { list-style:disc; }
.tp-docs-prose ol { list-style:decimal; }
.tp-docs-prose li { padding-left:5px; margin:0 0 12px; }
.tp-docs-prose a,.tp-docs-text-link { color:var(--docs-accent); font-weight:600; }
.tp-docs-prose a { text-decoration:underline; }
.tp-docs-prose figure { margin:28px 0; }
.tp-docs-prose img { display:block; width:100%; height:auto; border:1px solid var(--docs-line); border-radius:14px; }
.tp-docs-prose figcaption { color:var(--docs-muted); font-size:12px; line-height:1.6; text-align:left; padding-top:10px; }
.tp-docs-note,.tp-docs-prose .is-style-tp-note { border:1px solid #dcd9ff; border-left:3px solid var(--docs-accent); border-radius:0 12px 12px 0; padding:18px 20px; background:#f8f7ff; margin:24px 0; font-size:14px; }
.tp-docs-note p:last-child { margin:0; }
.tp-docs-product-grid { margin:40px 0 58px; }
.tp-docs-product-card { display:flex; align-items:center; gap:28px; padding:30px; border:1px solid #dad7ff; border-radius:22px; background:linear-gradient(120deg,#f8f7ff,#f4fbff); }
.tp-docs-product-card .tp-mascot { flex:0 0 100px; width:100px; }
.tp-docs-product-card .tp-mascot img { width:100%; height:auto; }
.tp-docs-product-card h2 { font-size:25px; font-weight:700; margin-bottom:10px; }
.tp-docs-product-card p { color:var(--docs-muted); line-height:1.7; margin-bottom:16px; }
.tp-docs-product-card h2 span,.tp-docs-start-card h3 span { color:var(--docs-accent); }
.tp-docs-start-title { font-size:25px; font-weight:700; margin-bottom:22px; letter-spacing:-.02em; }
.tp-docs-start-grid,.tp-docs-guide-index { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.tp-docs-start-card { border:1px solid var(--docs-line); border-radius:16px; padding:24px; }
.tp-docs-start-card:hover,.tp-docs-result:hover { border-color:#b9b4ff; background:#fcfbff; }
.tp-docs-start-card h3 { font-size:16px; line-height:1.5; font-weight:650; margin-bottom:10px; }
.tp-docs-start-card p { font-size:14px; line-height:1.7; color:var(--docs-muted); }
.tp-docs-guide-index { margin:36px 0; gap:26px; }
.tp-docs-guide-index h2 { font-size:16px; font-weight:700; margin-bottom:12px; }
.tp-docs-guide-index a { display:block; color:var(--docs-muted); font-size:14px; line-height:1.6; margin-bottom:14px; }
.tp-docs-guide-index a:hover { color:var(--docs-accent); }
.tp-docs-pagination { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding-top:30px; margin:38px 0 0; border-top:1px solid var(--docs-line); }
.tp-docs-pagination a { display:flex; flex-direction:column; gap:8px; padding:18px; border:1px solid var(--docs-line); border-radius:14px; }
.tp-docs-pagination a:hover { border-color:#b9b4ff; }
.tp-docs-pagination small { color:var(--docs-muted); font-size:12px; }
.tp-docs-pagination strong { font-size:14px; line-height:1.5; font-weight:600; color:var(--docs-accent); }
.tp-docs-pagination a:last-child { text-align:right; }
.tp-docs-help { border-top:1px solid var(--docs-line); margin-top:46px; padding-top:24px; font-size:14px; line-height:1.7; }
.tp-docs-help strong { font-size:16px; font-weight:650; }
.tp-docs-help p { color:var(--docs-muted); margin:8px 0 12px; }
.tp-docs-results { display:grid; gap:16px; margin-bottom:24px; }
.tp-docs-result { display:block; padding:22px; border:1px solid var(--docs-line); border-radius:14px; }
.tp-docs-result h2 { color:var(--docs-accent); font-size:19px; line-height:1.4; font-weight:650; margin-bottom:8px; }
.tp-docs-result p { color:var(--docs-muted); font-size:14px; line-height:1.7; }
.tp-docs-content .page-numbers { display:inline-block; margin:4px; padding:8px; }
@media (max-width:1199px) {
 .tp-docs-header-row { grid-template-columns:180px minmax(160px,1fr) auto; gap:24px; }
 .tp-docs-header-actions { gap:16px; }
 .tp-docs-shell.has-product { grid-template-columns:210px minmax(0,1fr); gap:30px; }
 .tp-docs-toc { position:static; grid-column:2; grid-row:1; max-height:none; border:1px solid var(--docs-line); border-radius:12px; padding:14px 18px; }
 .tp-docs-toc summary { display:flex; justify-content:space-between; margin:0; cursor:pointer; }
 .tp-docs-toc summary>span { display:inline; }
 .tp-docs-toc nav { padding-top:18px; }
 .tp-docs-sidebar { grid-column:1; grid-row:1 / span 2; }
 .tp-docs-content { grid-column:2; }
 .tp-docs-toc + .tp-docs-content { grid-row:2; }
}
@media (max-width:767px) {
 .admin-bar .tp-docs-header { top:46px; }
 .tp-docs-header-row { padding:18px 20px; grid-template-columns:1fr auto; gap:16px; }
 .tp-docs-header .tp-header-logo { width:124px; }
 .tp-docs-header-row .tp-docs-search { grid-row:2; grid-column:1 / -1; }
 .tp-docs-header-actions { gap:14px; font-size:12px; }
 .tp-docs-header-actions>a:first-child { display:none; }
 .tp-docs-dashboard { padding:8px 10px; }
 .tp-docs-subnav { padding:0 20px; column-gap:16px; }
 .tp-docs-tabs { gap:24px; }
 .tp-docs-tabs>a { font-size:13px; }
 .tp-docs-product-link { padding:10px 0 12px; }
 .tp-docs-shell,.tp-docs-shell.is-hub { padding:28px 20px 50px; }
 .tp-docs-shell.has-product { display:flex; flex-direction:column; gap:20px; }
 .tp-docs-sidebar,.tp-docs-toc,.tp-docs-content { width:100%; position:static; max-height:none; }
 .tp-docs-sidebar { order:0; border:1px solid var(--docs-line); border-radius:12px; padding:14px 16px; }
 .tp-docs-sidebar summary { display:flex; justify-content:space-between; font-size:14px; font-weight:650; cursor:pointer; list-style:none; }
 .tp-docs-sidebar nav { padding-top:22px; }
 .tp-docs-toc { order:1; padding:14px 16px; }
 .tp-docs-content { order:2; margin-top:8px; }
 .tp-docs-content h1 { font-size:30px; }
 .tp-docs-lead { font-size:16px; margin-bottom:26px; }
 .tp-docs-prose { font-size:15px; line-height:1.8; }
 .tp-docs-prose h2 { font-size:22px; scroll-margin-top:250px; }
 .tp-docs-prose h3 { scroll-margin-top:250px; }
 .tp-docs-product-card { padding:24px; gap:18px; align-items:flex-start; }
 .tp-docs-product-card .tp-mascot { flex-basis:65px; width:65px; }
 .tp-docs-product-card h2 { font-size:21px; }
 .tp-docs-product-card p { font-size:14px; }
 .tp-docs-product-grid { margin:30px 0 40px; }
 .tp-docs-start-grid,.tp-docs-guide-index { grid-template-columns:1fr; }
 .tp-docs-pagination { gap:10px; }
 .tp-docs-pagination a { padding:14px; }
}
@media (prefers-reduced-motion:reduce) { .tp-docs-body * { scroll-behavior:auto !important; } }
