/* BT Planning Checker pages, in the site's design language: white r30 cards on the grey page (as the service pages).
   Uses the theme tokens from theme.css (:root), with fallbacks. */
#bt-root.btpc-page{--b-primary:var(--c-primary,#00517D);--b-dark:var(--c-dark,#0A142F);--b-text:var(--c-text-80,rgba(0,0,0,.8));--b-muted:var(--c-text-60,rgba(0,0,0,.6));--b-border:var(--c-border,#E4E3E3);--b-alt:var(--c-surface-alt,#F6F6F6);--b-r:var(--r-xl,30px);
  width:100%;max-width:var(--maxw,1464px);margin:0 auto;padding:calc(var(--header-top,24px) + 8px) var(--gutter,24px) var(--space-8,64px);color:var(--c-black,#000)}
#bt-root .btpc-sec+.btpc-sec,#bt-root .btpc-article+.btpc-sec{margin-top:var(--space-5,24px)}
#bt-root .btpc-card{background:var(--c-surface,#fff);border-radius:var(--b-r);padding:clamp(28px,4vw,56px) clamp(22px,5vw,72px)}

/* hero */
#bt-root .btpc-card--hero{background:var(--b-primary);color:#fff;padding-top:clamp(24px,3vw,40px);padding-bottom:clamp(32px,4vw,56px)}
#bt-root .btpc-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 clamp(20px,3vw,36px);padding:0;font-size:var(--fs-xs,.875rem);color:rgba(255,255,255,.8)}
#bt-root .btpc-crumbs li+li:before{content:"›";margin-right:6px}
#bt-root .btpc-crumbs a{color:inherit;text-decoration:none}#bt-root .btpc-crumbs a:hover{text-decoration:underline}
#bt-root .btpc-h1{font-size:clamp(2.1rem,1.4rem + 2.6vw,4rem);font-weight:500;line-height:1.1;color:#fff;margin:0 0 var(--space-4,16px);max-width:1100px}
#bt-root .btpc-meta{margin:0;font-size:var(--fs-body,1rem);color:rgba(255,255,255,.85)}

/* answer-first summary */
#bt-root .btpc-card--summary{border-left:8px solid var(--b-primary)}
#bt-root .btpc-card--summary .btpc-prose{font-size:1.25rem;line-height:1.6;color:var(--c-black,#000);max-width:1000px}
#bt-root .btpc-card--summary .btpc-answer{margin:0 0 var(--space-4,16px)}
#bt-root .btpc-card--summary p:last-child{margin-bottom:0}
#bt-root .btpc-card--summary a[href="#checker"]{display:inline-flex;align-items:center;min-height:48px;padding:0 26px;border-radius:var(--r-pill,50px);background:var(--b-primary);color:#fff;text-decoration:none;font-size:1rem;font-weight:500}
#bt-root .btpc-card--summary a[href="#checker"]:hover{background:var(--b-dark)}

/* headings + prose */
#bt-root .btpc-h2{font-size:var(--fs-h2-s,clamp(1.75rem,1.3rem + 1.4vw,3.125rem));font-weight:500;line-height:1.25;color:var(--c-black,#000);margin:0 0 var(--space-5,24px)}
#bt-root .btpc-h2--sm{font-size:clamp(1.5rem,1.2rem + .9vw,2.25rem)}
#bt-root .btpc-prose{font-size:var(--fs-body-lg,1.0625rem);line-height:1.7;color:var(--b-text);max-width:900px}
#bt-root .btpc-prose p,#bt-root .btpc-prose ul,#bt-root .btpc-prose ol{margin:0 0 var(--space-4,16px)}
#bt-root .btpc-prose>:last-child{margin-bottom:0}
#bt-root .btpc-prose ul{list-style:disc;padding-left:1.4em}#bt-root .btpc-prose ol{list-style:decimal;padding-left:1.4em}
#bt-root .btpc-prose li{margin-bottom:6px}
#bt-root .btpc-prose h3{font-size:1.25rem;font-weight:600;color:var(--c-black,#000);margin:var(--space-6,32px) 0 var(--space-3,12px)}
#bt-root .btpc-prose a{color:var(--b-primary);text-decoration:underline;text-underline-offset:2px}
#bt-root .btpc-prose strong{font-weight:600;color:var(--c-black,#000)}
#bt-root .btpc-prose figure{margin:var(--space-6,32px) 0}
#bt-root .btpc-prose img{max-width:100%;height:auto;border-radius:var(--r-m,20px);border:1px solid var(--b-border)}
#bt-root .btpc-prose figcaption{font-size:var(--fs-small,.9375rem);color:var(--b-muted);margin-top:10px}
#bt-root .btpc-prose blockquote{margin:var(--space-5,24px) 0;padding:18px 22px;border-left:4px solid var(--b-primary);background:var(--b-alt);border-radius:0 var(--r-s,15px) var(--r-s,15px) 0}
#bt-root .btpc-prose .wp-block-embed{margin:var(--space-5,24px) 0}
#bt-root .btpc-prose iframe,#bt-root .btpc-prose .wp-block-embed iframe{width:100%;height:auto;aspect-ratio:16/9;border-radius:var(--r-m,20px)}

/* tables */
#bt-root .btpc-table{overflow-x:auto;margin:var(--space-5,24px) 0;border:1px solid var(--b-border);border-radius:var(--r-m,20px)}
#bt-root .btpc-table table{width:100%;border-collapse:collapse;font-size:var(--fs-small,.9375rem);line-height:1.5}
#bt-root .btpc-table th,#bt-root .btpc-table td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--b-border)}
#bt-root .btpc-table tr:last-child td{border-bottom:0}
#bt-root .btpc-table thead th{background:var(--b-alt);font-weight:600;color:var(--b-dark);border-bottom:2px solid var(--b-primary)}
#bt-root .btpc-table tbody td:first-child{font-weight:500;color:var(--c-black,#000)}

/* the checker card */
#bt-root .btpc-tool .btpc-card,#bt-root .btpc-tool>.btpc-card{background:var(--c-surface,#fff)}
#bt-root .btpc-prose--tool{max-width:1100px}
#bt-root .btpc-tool .btpc{max-width:1100px;margin:var(--space-5,24px) 0 0}
#bt-root .btpc-tool .btpc form.js-checker{border-radius:var(--r-m,20px)}

/* FAQ accordion (same pattern as the service pages; main.js toggles it) */
#bt-root .btpc-faq__list{display:flex;flex-direction:column;gap:14px;max-width:1100px}
#bt-root .btpc-faq__q{display:flex;align-items:center;justify-content:space-between;gap:var(--space-5,24px);width:100%;min-height:68px;padding:12px 28px 12px 36px;border-radius:var(--r-pill,50px);border:1px solid var(--c-black,#000);background:rgba(242,242,242,.5);font:inherit;font-size:1.125rem;font-weight:500;text-align:left;color:var(--c-black,#000);cursor:pointer}
#bt-root .btpc-faq__q:hover{border-color:var(--b-primary)}
#bt-root .btpc-faq__q[aria-expanded="true"]{background:var(--b-primary);border-color:var(--b-primary);color:#fff}
#bt-root .btpc-faq__icon{font-size:1.75rem;font-weight:300;line-height:1;transition:transform .2s ease;flex:0 0 auto}
#bt-root .btpc-faq__q[aria-expanded="true"] .btpc-faq__icon{transform:rotate(45deg)}
#bt-root .btpc-faq__a{padding:16px 36px 6px;font-size:var(--fs-body-lg,1.0625rem);line-height:1.7;color:var(--b-text)}
#bt-root .btpc-faq__a p{margin:0 0 10px}#bt-root .btpc-faq__a a{color:var(--b-primary)}

/* sources */
#bt-root .btpc-sources .btpc-card{padding-top:clamp(24px,3vw,40px);padding-bottom:clamp(24px,3vw,40px)}
#bt-root .btpc-src__note{margin:-8px 0 var(--space-5,24px);color:var(--b-muted);font-size:var(--fs-small,.9375rem)}
#bt-root .btpc-src{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
#bt-root .btpc-src a{display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 18px;border:1px solid var(--b-border);border-radius:var(--r-s,15px);background:var(--c-surface-2,#F9F9F9);text-decoration:none;color:inherit;transition:border-color .15s}
#bt-root .btpc-src a:hover{border-color:var(--b-primary)}
#bt-root .btpc-src__pub{font-size:var(--fs-xs,.875rem);font-weight:600;color:var(--b-primary);text-transform:uppercase;letter-spacing:.04em}
#bt-root .btpc-src__title{font-size:var(--fs-small,.9375rem);line-height:1.45;color:var(--c-black,#000)}

/* other projects */
#bt-root .btpc-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
#bt-root .btpc-cards a{display:block;height:100%;padding:20px 22px;border-radius:var(--r-m,20px);background:var(--b-alt);border:1px solid transparent;text-decoration:none;color:inherit;transition:border-color .15s,background .15s}
#bt-root .btpc-cards a:hover{border-color:var(--b-primary);background:#fff}
#bt-root .btpc-cards strong{display:block;font-size:1.0625rem;font-weight:600;color:var(--c-black,#000);margin-bottom:6px}
#bt-root .btpc-cards span{font-size:var(--fs-small,.9375rem);color:var(--b-muted);line-height:1.5}

/* email me this result */
#bt-root .btpc-email{margin-top:28px;padding:24px;border-radius:var(--r-m,20px);background:var(--b-alt)}
#bt-root .btpc-email h3{margin:0 0 6px}
#bt-root .btpc-email__row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
#bt-root .btpc-email label span{display:block;font-size:.875rem;margin-bottom:4px}
#bt-root .btpc-email input[type=text],#bt-root .btpc-email input[type=email]{width:100%;height:48px;padding:0 16px;border:1px solid #cfd5df;border-radius:var(--r-xs,10px);background:#fff;font:inherit}
#bt-root .btpc-email__check{display:flex;gap:8px;align-items:flex-start;font-size:.9rem;margin:0 0 12px}
#bt-root .btpc-email__note{font-size:.8125rem;color:var(--b-muted);margin:10px 0 0}
#bt-root .btpc-email__msg{font-weight:600;margin:8px 0 0}
#bt-root .btpc-email__cta{margin:16px 0 0}
.btpc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

@media (max-width:900px){
  #bt-root.btpc-page{padding-left:16px;padding-right:16px}
  #bt-root .btpc-card{border-radius:var(--r-m,20px);padding:24px 20px}
  #bt-root .btpc-card--summary{border-left-width:6px}
  #bt-root .btpc-card--summary .btpc-prose{font-size:var(--fs-body-lg,1.0625rem)}
  #bt-root .btpc-prose{font-size:var(--fs-body,1rem)}
  #bt-root .btpc-faq__q{min-height:56px;padding:12px 18px 12px 22px;font-size:var(--fs-body,1rem);border-radius:28px}
  #bt-root .btpc-faq__a{padding:12px 22px 4px;font-size:var(--fs-small,.9375rem)}
  #bt-root .btpc-table th,#bt-root .btpc-table td{padding:10px 12px}
  #bt-root .btpc-email__row{grid-template-columns:1fr}
}

/* v1.0.5: byline, "on this page", compact sections */
#bt-root .btpc-meta{display:flex;flex-wrap:wrap;gap:6px 22px}
#bt-root .btpc-meta span{position:relative}
#bt-root .btpc-meta span+span:before{content:"";position:absolute;left:-12px;top:50%;width:4px;height:4px;margin-top:-2px;border-radius:50%;background:rgba(255,255,255,.6)}
#bt-root .btpc-meta a{color:#fff;text-decoration:underline;text-underline-offset:2px}
#bt-root .btpc-card--toc{padding-top:clamp(22px,2.5vw,32px);padding-bottom:clamp(22px,2.5vw,32px)}
#bt-root .btpc-toc__label{margin:0 0 12px;font-size:var(--fs-xs,.875rem);font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--b-muted)}
#bt-root .btpc-toc ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
#bt-root .btpc-toc a{display:inline-flex;align-items:center;min-height:40px;padding:6px 18px;border-radius:var(--r-pill,50px);border:1px solid var(--b-border);background:var(--b-alt);color:var(--c-black,#000);text-decoration:none;font-size:var(--fs-small,.9375rem);line-height:1.3}
#bt-root .btpc-toc a:hover{border-color:var(--b-primary);color:var(--b-primary)}
#bt-root .btpc-more{margin:0}
#bt-root .btpc-more>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:var(--b-primary);font-weight:600;font-size:var(--fs-body,1rem);margin:2px 0 0}
#bt-root .btpc-more>summary::-webkit-details-marker{display:none}
#bt-root .btpc-more>summary:after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .2s}
#bt-root .btpc-more[open]>summary:after{transform:rotate(-135deg) translateY(-1px)}
#bt-root .btpc-more .btpc-more__close,#bt-root .btpc-more[open] .btpc-more__open{display:none}
#bt-root .btpc-more[open] .btpc-more__close{display:inline}
#bt-root .btpc-more__body{margin-top:var(--space-4,16px);padding-top:var(--space-4,16px);border-top:1px solid var(--b-border)}
#bt-root .btpc-more__body>:last-child{margin-bottom:0}
#bt-root [id]{scroll-margin-top:110px}
@media (max-width:900px){#bt-root .btpc-toc ol{gap:8px}#bt-root .btpc-toc a{min-height:36px;padding:6px 14px}}

/* v1.0.6: result follow-up */
#bt-root .btpc .js-result{border:1px solid var(--c-border,#E4E3E3);border-radius:var(--r-m,20px);padding:clamp(20px,3vw,32px)}
#bt-root .btpc .js-result h3{color:var(--c-black,#000)}
#bt-root .btpc-next{margin:24px 0;padding:24px 26px;border-radius:var(--r-m,20px);background:var(--c-surface-alt,#F6F6F6);border-left:6px solid var(--c-primary,#00517D)}
#bt-root .btpc-next__lead{margin:0 0 16px;font-size:1.0625rem;line-height:1.6;color:var(--c-black,#000)}
#bt-root .btpc-next__actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}
#bt-root .btpc-next__actions a{text-decoration:none}
#bt-root .btpc-next__note{margin:10px 0 0;font-size:var(--fs-small,.9375rem);color:var(--c-text-60,rgba(0,0,0,.6))}
#bt-root .btpc-email__phone{display:block;margin:0 0 12px}
#bt-root .btpc-email__phone input{width:100%;height:48px;padding:0 16px;border:1px solid #cfd5df;border-radius:var(--r-xs,10px);background:#fff;font:inherit}
@media (max-width:640px){#bt-root .btpc-next__actions a{width:100%;justify-content:center}}
/* no consultation pop-up on checker pages: it interrupts the tool, and the result already offers the consultation */
body.single-bt_checker .bt-promo,body.post-type-archive-bt_checker .bt-promo{display:none!important}
/* tables become cards on phones */
@media (max-width:640px){
  #bt-root .btpc-table{border:0;overflow:visible}
  #bt-root .btpc-table table,#bt-root .btpc-table tbody,#bt-root .btpc-table tr,#bt-root .btpc-table td,#bt-root .btpc-table tbody th{display:block;width:100%}
  #bt-root .btpc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  #bt-root .btpc-table tr{border:1px solid var(--c-border,#E4E3E3);border-radius:var(--r-s,15px);padding:12px 14px;margin-bottom:10px;background:#fff}
  #bt-root .btpc-table td,#bt-root .btpc-table tbody th{border:0;padding:6px 0}
  #bt-root .btpc-table td[data-label]:before,#bt-root .btpc-table tbody th[data-label]:before{content:attr(data-label);display:block;font-size:.8125rem;font-weight:600;color:var(--c-text-60,rgba(0,0,0,.6));margin-bottom:2px}
  #bt-root .btpc-table td:first-child{font-weight:600}
}
