/* Only imported TaskDone widgets are transparent to the existing layout. */
body.td-migrated .elementor-widget-taskdone-section,
body.td-migrated .elementor-widget-taskdone-section > .elementor-widget-container,
body.td-migrated .td-document > .elementor,
body.td-migrated .td-source-container,
body.td-migrated .td-document {
  display: contents;
}
body.td-migrated .elementor-widget-taskdone-section {
  /* Elementor containers use --display for flex/grid. The imported TaskDone
     subtree uses the same name for its heading font; restore it at the widget
     boundary without changing Elementor's container layout. */
  --display: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  width: auto;
}
body.td-migrated.elementor-editor-active .elementor-widget-taskdone-section {
  display: block;
  width: 100%;
}
body.td-migrated.elementor-editor-active .td-source-container { display: flex; }
.td-blog-index, .td-blog-copy, .td-post-hero { --display: 'Space Grotesk', sans-serif; }
body.td-migrated .menu-tab-bar { grid-template-columns: 1.2fr 1fr .65fr 1fr; }
.td-blog-menu .menu-tab-links { grid-template-columns: 1fr; }
.td-blog-menu-more { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-top: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--cyan); font-weight: 600; }
.td-blog-index-hero { padding-block: 84px 48px; }
.td-blog-index-hero .eyebrow { margin-bottom: 20px; }
.td-blog-index-hero .signal-line { margin-bottom: 28px; }
.td-blog-index-hero h1 { font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1.05; max-width: 1000px; }
.td-blog-index-intro { max-width: 640px; margin-top: 24px; font-size: 1.125rem; }
.td-blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; padding-block: 0 112px; }
.td-blog-card { min-width: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.td-blog-card-cover { display: block; overflow: hidden; aspect-ratio: 1200/630; background: var(--midnight); }
.td-blog-card-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .3s ease; }
.td-blog-card:hover .td-blog-card-image { transform: scale(1.025); }
.td-blog-card-copy { padding-top: 22px; display: flex; flex-direction: column; flex: 1; }
.td-blog-meta { font-size: .8125rem; color: var(--muted); }
.td-blog-card h2 { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.15; letter-spacing: -.04em; margin: 12px 0 16px; text-wrap: initial; }
.td-blog-card-copy > p:not(.td-blog-meta) { font-size: 1rem; line-height: 1.7; }
.td-blog-card-link { display: inline-flex; gap: 24px; align-items: center; min-height: 48px; margin-top: auto; padding-top: 14px; color: var(--cyan); font-size: .875rem; font-weight: 600; }
.td-post-hero { position: relative; isolation: isolate; min-height: 680px; padding-block: 84px 72px; }
.td-post-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.td-post-hero .eyebrow { margin-bottom: 26px; display: flex; align-items: center; gap: 22px; }
.td-blog-date { text-transform: none; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.td-post-hero .signal-line { margin-bottom: 30px; }
.td-post-hero h1 { font-size: clamp(3.5rem, 6.7vw, 6.2rem); line-height: 1.05; letter-spacing: -.06em; text-wrap: balance; }
.td-post-lead { max-width: 500px; margin-top: 28px; font-size: 1.125rem; line-height: 1.7; }
.td-post-hero .text-link { margin-top: 28px; }
.td-post-photo { position: absolute; z-index: 0; width: min(1100px, 86%); height: 650px; top: 0; right: -48px; pointer-events: none; }
.td-post-hero-image { width: 100%; height: 100%; object-fit: contain; border-radius: 0; filter: brightness(.9); mask-image: linear-gradient(to right, transparent 0%, #000 25%, #000 87%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 80%, transparent 100%); mask-composite: intersect; }
.td-post-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--midnight), transparent 55%); }
.td-blog-copy { width: min(72ch, calc(100% - 112px)); max-width: 760px; margin-inline: auto; padding-block: 32px 64px; font-size: 1.125rem; line-height: 1.75; scroll-margin-top: 144px; }
.td-blog-copy p { margin-bottom: 22px; }
.td-blog-copy h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; margin-block: 52px 28px; }
.td-blog-copy h2.td-party-heading { font-size: clamp(1.4rem, 2.38vw, 2.1rem); }
.td-blog-copy a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.td-blog-copy li { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.td-blog-copy li > strong { display: block; color: var(--ice); margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; line-height: 1.3; }
.td-blog-copy ol { margin-bottom: 30px; }
@media(max-width: 1050px) {
  .td-blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-post-hero { min-height: 620px; }
  .td-post-hero-copy { max-width: 570px; }
  .td-post-photo { right: -16px; width: 90%; }
}
@media(max-width: 700px) {
  .td-blog-index-hero { padding-block: 56px 36px; }
  .td-blog-index-hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .td-blog-list { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 72px; }
  .td-blog-card h2 { font-size: 1.75rem; }
  .td-post-hero { min-height: 0; padding-block: 56px 28px; }
  .td-post-hero h1 { font-size: clamp(2.75rem, 10.8vw, 3.5rem); max-width: 520px; }
  .td-post-lead { font-size: 1rem; margin-top: 22px; }
  .td-post-photo { position: relative; width: calc(100% + 40px); right: auto; height: auto; margin: 16px -20px 0; aspect-ratio: 16/10; }
  .td-post-hero-image { mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent); }
  .td-post-photo::after { display: none; }
  .td-blog-copy { width: calc(100% - 40px); padding-block: 32px 64px; font-size: 1rem; }
  .td-blog-copy h2 { margin-top: 36px; }
}
@media(max-width: 560px) {
  body.td-migrated .menu-tab-bar { grid-template-columns: 1.2fr 1fr .6fr 1fr; gap: 4px; }
  body.td-migrated .menu-tab-bar button { font-size: .6875rem; padding: 8px 4px; min-height: 44px; }
}
@media(prefers-reduced-motion: reduce) { .td-blog-card-image { transition: none; } .td-blog-card:hover .td-blog-card-image { transform: none; } }

.td-menu-tab-label { min-width: 0; overflow-wrap: anywhere; }
body.td-migrated .menu-tab-bar button:has(.td-menu-symbol) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.td-menu-symbol { display: block; width: 28px; height: 28px; flex: none; overflow: visible; }
.td-rocket-body { animation: td-rocket-launch 3.2s ease-in-out infinite; transform-origin: center; }
.td-rocket-flame { animation: td-rocket-thrust 1.1s ease-in-out infinite; transform-origin: 9px 19px; }
.td-paper-sheet { animation: td-paper-turn 4.3s ease-in-out infinite; transform-origin: 7px 14px; }
.td-sleep-face { animation: td-sleep-breathe 4.8s ease-in-out infinite; transform-origin: 13px 16px; }
.td-sleep-bubble { animation: td-sleep-drift 4.8s ease-in-out infinite; }
.td-menu-symbol.td-symbol-paused *, .td-menu-symbol.td-symbol-offscreen * { animation-play-state: paused; }
@keyframes td-rocket-launch { 0%,65%,100% { transform: translate(0,0); } 30% { transform: translate(1px,-1px); } }
@keyframes td-rocket-thrust { 0%,100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@keyframes td-paper-turn { 0%,55%,100% { transform: skewY(0deg); } 25% { transform: skewY(-4deg); } }
@keyframes td-sleep-breathe { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(1deg) scale(1.035); } }
@keyframes td-sleep-drift { 0% { transform: translateY(1px); opacity: .4; } 65% { transform: translateY(-2px); opacity: 1; } 100% { transform: translateY(1px); opacity: .4; } }
.td-blog-body { --display: 'Space Grotesk', sans-serif; scroll-margin-top: 144px; }
.td-blog-body { background: radial-gradient(ellipse 750px 470px at 0% 35%, #28c7f414, transparent 74%), radial-gradient(ellipse 680px 520px at 100% 70%, #8655ff16, transparent 74%); }
.td-party-motion { margin: 34px 0 42px; }
.td-party-banner { display: block; width: 100%; height: auto; aspect-ratio: 1000/180; overflow: visible; }
.td-party-toggle { display: block; min-height: 44px; margin: 8px 0 0 auto; padding: 8px 0; color: var(--muted); background: none; border: 0; font-size: .8125rem; text-decoration: underline; text-underline-offset: 4px; }
.td-banner-packet { animation: td-flow-packet 10s linear infinite; }
.td-banner-scan { animation: td-flow-scan 10s ease-in-out infinite; }
.td-banner-review { animation: td-flow-review 10s ease-in-out infinite; }
.td-banner-output { animation: td-flow-output 10s ease-in-out infinite; }
.td-party-banner.td-symbol-paused *, .td-party-banner.td-symbol-offscreen *, .td-party-banner.td-motion-user-paused * { animation-play-state: paused; }
@keyframes td-flow-packet { 0%,12% { transform: translateX(0); opacity: 0; } 16% { opacity: 1; } 48% { transform: translateX(397px); opacity: 1; } 58% { transform: translateX(397px); opacity: 0; } 72% { transform: translateX(567px); opacity: 0; } 76%,88% { opacity: 1; } 90%,100% { transform: translateX(649px); opacity: 0; } }
@keyframes td-flow-scan { 0%,20%,56%,100% { transform: translateY(0); opacity: .25; } 38% { transform: translateY(80px); opacity: 1; } }
@keyframes td-flow-review { 0%,45%,74%,100% { opacity: .6; } 57%,68% { opacity: 1; } }
@keyframes td-flow-output { 0%,66%,100% { opacity: .5; } 78%,90% { opacity: 1; } }
@media(prefers-reduced-motion: reduce) { .td-party-banner * { animation: none; } .td-party-toggle { display: none; } }
/* Two story illustrations follow only their own editorial passage. */
.td-story-beat { position: relative; display: flow-root; }
.td-story-rail { position: absolute; top: 0; bottom: 22px; left: -128px; width: 88px; pointer-events: none; }
.td-story-icon { position: sticky; top: 28vh; display: block; width: 88px; height: 88px; overflow: visible; }
.td-story-float { animation: td-story-drift 5.5s ease-in-out infinite; transform-origin: center; }
.td-story-icon-brief .td-story-float { animation-delay: -2.1s; }
.td-story-icon.td-symbol-paused *, .td-story-icon.td-symbol-offscreen * { animation-play-state: paused; }
@keyframes td-story-drift { 0%,100% { transform: translateY(-4px) rotate(-2deg); } 50% { transform: translateY(5px) rotate(2deg); } }
.td-blog-copy .td-party-outro { margin-block: 52px 38px; color: var(--ice); font-family: 'Space Grotesk', sans-serif; line-height: 1.12; letter-spacing: -.045em; }
.td-party-outro strong { display: block; }
.td-party-done { display: flex; align-items: center; gap: 14px; font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.td-party-brand-check { width: .92em; height: .84em; flex: none; }
.td-party-next { display: block; margin-top: 18px; font-size: clamp(1.6rem, 3.1vw, 2.7rem); max-width: 700px; }
.td-blog-copy .td-party-invite { margin-block: 34px 28px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.5; color: var(--ice); }
.td-party-form { scroll-margin-top: 120px; margin-top: 28px; }
.td-party-form .form-note, .td-party-form .privacy-link { font-size: .875rem; }
.td-party-form textarea::placeholder { color: var(--muted); opacity: .85; }
@media(max-width: 1100px) {
  .td-story-rail { position: relative; display: block; float: left; width: 66px; height: 84px; margin: 2px 18px 8px 0; left: auto; top: auto; bottom: auto; }
  .td-story-icon { position: static; width: 66px; height: 66px; }
}
@media(max-width: 700px) {
  .td-story-rail { width: 52px; height: 66px; margin-right: 14px; }
  .td-story-icon { width: 52px; height: 52px; }
  .td-blog-copy .td-party-outro { margin-block: 38px 28px; }
  .td-party-done { gap: 10px; font-size: 2rem; }
  .td-party-next { font-size: 1.75rem; }
}
@media(prefers-reduced-motion: reduce) {
  .td-story-float { animation: none; }
  .td-story-icon { position: static; }
}
@media(max-width: 560px) {
  body.td-migrated .menu-tab-bar button:has(.td-menu-symbol) { gap: 4px; }
  .td-menu-symbol { width: 20px; height: 20px; }
  body.td-migrated .menu-tab-bar { grid-template-columns: 1.2fr 1fr .75fr 1.15fr; }
}
@media(max-width: 1050px) {
  body.td-migrated .mobile-menu .menu-tab-bar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.td-migrated .mobile-menu .menu-tab-bar button { min-height: 50px; padding: 8px 10px; font-size: .8125rem; }
}
@media(max-width: 380px) {
  body.td-migrated .mobile-menu .menu-tab-bar button { padding-inline: 8px; font-size: .75rem; }
  .td-menu-symbol { width: 18px; height: 18px; }
}
@media(prefers-reduced-motion: reduce) { .td-menu-symbol * { animation: none !important; } }

/* Owner refinement: party context preserves the approved data-flow scene. */
.td-banner-party-light { animation: td-banner-party-glow 6s ease-in-out infinite; }
.td-banner-dancer { animation: td-banner-party-dance 3s ease-in-out infinite; transform-origin: 584px 160px; }
@keyframes td-banner-party-glow { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes td-banner-party-dance { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media(prefers-reduced-motion: reduce) { .td-banner-party-light, .td-banner-dancer { animation: none; } }
/* One shared footer: reduce gaps while retaining usable touch targets. */
body.td-migrated .site-footer { padding-block: 18px; font-size: .875rem; }
body.td-migrated .site-footer > nav { gap: 4px 20px; }
body.td-migrated .site-footer > nav a { min-height: 28px; display: inline-flex; align-items: center; }
body.td-migrated .footer-more { margin-top: 12px; gap: 6px 18px; }
body.td-migrated .footer-more nav { gap: 2px 20px; }
body.td-migrated .footer-more a { padding-block: 2px; min-height: 28px; display: inline-flex; align-items: center; }
body.td-migrated .footer-bottom { margin-top: 12px; padding-top: 12px; gap: 10px; }
@media(max-width: 700px) {
  body.td-migrated .site-footer { padding-block: 16px; font-size: .8125rem; }
  body.td-migrated .site-footer > nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 16px; }
  body.td-migrated .site-footer > nav a, body.td-migrated .footer-more a { min-height: 44px; line-height: 1.4; overflow-wrap: anywhere; }
  body.td-migrated .footer-more { display: block; margin-top: 10px; }
  body.td-migrated .footer-more > span { display: block; margin-bottom: 4px; }
  body.td-migrated .footer-more nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 16px; }
  body.td-migrated .footer-bottom { margin-top: 10px; padding-top: 10px; }
  body.td-migrated .footer-legal { flex-wrap: wrap; white-space: normal; }
  body.td-migrated .footer-legal p { white-space: normal; }
}
/* TEST F05/F06: clean tablet text and no photo overflow through the wrap breakpoint. */
@media(min-width: 701px) and (max-width: 1100px) {
  .td-post-hero { min-height: 0; padding-block: 64px 28px; }
  .td-post-hero-copy { max-width: 650px; }
  .td-post-lead { max-width: 570px; }
  .td-post-photo { position: relative; width: 100%; height: auto; right: auto; top: auto; margin: 20px 0 0; aspect-ratio: 16/10; }
  .td-post-photo::after { display: none; }
  .td-post-hero-image { mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 85%, transparent); }
}
/* Agentic Party 16 October: only this native article family. */
body:is(.postid-186,.postid-188,.postid-190) .td-post-hero { padding-bottom: 24px; }
body:is(.postid-186,.postid-188,.postid-190) .td-blog-copy { padding-top: 12px; }
body:is(.postid-186,.postid-188,.postid-190) .td-blog-copy h2.td-party-heading { margin-bottom: 16px; }
body:is(.postid-186,.postid-188,.postid-190) .td-story-beat > p:empty { display: none; }
.td-story-toggle { display: none; }
/* Keep the original Google badge fully visible in normal document flow. */
body:is(.postid-186,.postid-188,.postid-190) .grecaptcha-badge { position: relative !important; inset: auto !important; margin: 24px auto; transition: none !important; }
.td-story-icon.td-motion-user-paused * { animation-play-state: paused !important; }
@media(max-width: 700px) {
  body:is(.postid-186,.postid-188,.postid-190) .td-story-icon-party .td-story-float { animation: none; }
  body:is(.postid-186,.postid-188,.postid-190) .td-post-hero { padding-bottom: 8px; }
  body:is(.postid-186,.postid-188,.postid-190) .td-post-photo { width: 100vw; margin: 16px calc(50% - 50vw) 0; aspect-ratio: 4/3; overflow: hidden; }
  body:is(.postid-186,.postid-188,.postid-190) .td-post-hero-image { object-fit: cover; object-position: 78% 50%; mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 92%, transparent); }
  body:is(.postid-186,.postid-188,.postid-190) .td-blog-copy { padding-top: 8px; }
  body:is(.postid-186,.postid-188,.postid-190) .td-story-rail:has(.td-story-icon-party) { width: 60px; height: 108px; margin: 0 14px 6px 0; pointer-events: auto; }
  body:is(.postid-186,.postid-188,.postid-190) .td-story-icon-party { margin-inline: auto; }
  body:is(.postid-186,.postid-188,.postid-190) .td-story-icon-party.td-story-motion-ready .td-story-float { animation: td-party-turn 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .td-story-toggle { display: block; width: 60px; min-height: 44px; padding: 4px 0; color: var(--muted); background: transparent; border: 0; font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .td-story-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
}
@keyframes td-party-turn { 0%,100% { transform: rotateY(-28deg); } 50% { transform: rotateY(28deg); } }
.td-story-icon-party:is(.td-symbol-paused,.td-symbol-offscreen,.td-motion-user-paused) .td-story-float { animation-play-state: paused !important; }
@media(prefers-reduced-motion: reduce) {
  body:is(.postid-186,.postid-188,.postid-190) .td-story-icon-party.td-story-motion-ready .td-story-float { animation: none; }
  .td-story-toggle { display: none; }
}
/* Preserve clearance for the existing privacy close control. */
body.td-migrated:has(.privacy-close) .site-footer { padding-bottom: 90px; }

/* Shared menu cleanup: three groups and a readable invitation to open it. */
body.td-migrated .menu-tab-bar { grid-template-columns: 1.2fr 1fr .65fr; }
.td-menu-launch-label { font-family: 'Space Grotesk',sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
@media(max-width:1050px) { body.td-migrated .menu-tab-bar { grid-template-columns: repeat(2,minmax(0,1fr)); } body.td-migrated .menu-tab-bar [id$="-blog-tab"] { grid-column: 1/-1; } }
@media(max-width:560px) { .td-menu-launch-label { font-size: .9375rem; } }
body.td-migrated .header-tools .more-chevron-badge { min-height:44px; }

.td-editorial-context { padding-top:32px; }
.td-editorial-context .eyebrow { display:flex; align-items:center; gap:22px; }
.td-editorial-context a { color:var(--cyan); }

/* Preserve the complete typographic covers of the migrated Poznan posts. */
.td-blog-card-editorial .td-blog-card-cover { aspect-ratio:1200/630; }
.td-blog-card-editorial .td-blog-card-image { object-fit:contain; }
.td-blog-card-editorial:hover .td-blog-card-image { transform:none; }

/* TID00087: match the established TaskDone font families inside native HTML widgets. */
.td-pa87{font-family:Manrope,Arial,sans-serif}.td-pa87 h1,.td-pa87 h2,.td-pa87 h3{font-family:"Space Grotesk",Arial,sans-serif}

/* TID00087 R2: keep the new return anchor clear of the responsive fixed header. */
#service-list > #private-assistants{scroll-margin-top:var(--header-offset,160px)}

/* TD-MOTION-003: icon controls keep their existing motion and accessible state. */
.td-party-toggle { min-width:44px; padding:8px; text-decoration:none; cursor:pointer; }
.td-party-toggle svg,.td-story-toggle svg { display:block; margin:auto; }
