/* Card interiors wrap by available space, reusing the Bureau card language. */
.mozg-category-card,#home .world-card{display:block;min-width:0;padding:14px;border-radius:16px;overflow:hidden}.mozg-category-card>.capsule-card-inner,#home .world-card>.capsule-card-inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:18px;align-items:center;min-width:0;padding:0;position:static}.capsule-card-inner>*{min-width:0}.capsule-card-media{margin:0;min-width:0}.mozg-category-card .capsule-card-media img,#home .world-card .capsule-card-media img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;padding:0;border-radius:12px}.mozg-category-card .trial-card-copy{min-width:0;padding:6px 4px;align-self:stretch;justify-content:center}.mozg-category-card .trial-card-copy h2{font-size:clamp(24px,2.2vw,28px);line-height:1.18;overflow-wrap:break-word}.mozg-category-card .trial-card-copy p{font-size:16px;line-height:1.5}.mozg-category-card .trial-card-invitation{font-size:14px;line-height:1.5;white-space:normal}.mozg-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#home .world-card .capsule-card-inner>div{min-width:0;padding:8px 6px;position:relative}#home .world-card h3{font-size:clamp(22px,2vw,26px);line-height:1.2;overflow-wrap:break-word}#home .world-card p{font-size:16px;line-height:1.5;padding-right:0}#home .world-card .capsule-card-inner>div>span{position:static;display:block;margin-top:14px;font-weight:750}#home .featured{flex-wrap:wrap;gap:24px}#home .featured>div{min-width:0}#home .square-strip{flex-wrap:wrap;gap:24px}#home .square-strip>div{flex:1 1 320px;min-width:0}
#square .reading-layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:24px;align-items:start}#square .reading-layout>article,#square .reading-layout>.note-card{min-width:0;max-width:none;padding:24px;border:1px solid color-mix(in srgb,var(--ink) 26%,transparent);border-radius:16px;background:color-mix(in srgb,var(--paper) 80%,white)}#square .reading-layout h2{font-size:28px;line-height:1.2;overflow-wrap:break-word}#square .reading-layout .actions{min-width:0}#square .reading-layout .button{width:100%;min-width:0;white-space:normal;overflow-wrap:break-word}#square .hero-art img{border-radius:14px}
@media(max-width:680px){.mozg-category-grid{grid-template-columns:1fr}.mozg-category-card,#home .world-card{padding:12px}.mozg-category-card>.capsule-card-inner,#home .world-card>.capsule-card-inner{gap:16px}#square .reading-layout>article,#square .reading-layout>.note-card{padding:20px}#square .reading-layout h2{font-size:26px}}
/* V5: accepted world palette on native Atlas links; existing card layout stays intact. */
#home .world-card[href="/world/bureau/"]{--atlas-world-ink:var(--bz-bureau);--atlas-world-paper:var(--bz-bureau-light)}
#home .world-card[href="/world/mozg/"]{--atlas-world-ink:var(--bz-mozg);--atlas-world-paper:var(--bz-mozg-light)}
#home .world-card[href="/world/projectorium/"]{--atlas-world-ink:var(--bz-projectorium);--atlas-world-paper:var(--bz-projectorium-light)}
#home .world-card[href="/fantazeria/"]{--atlas-world-ink:var(--bz-fantazeria);--atlas-world-paper:var(--bz-fantazeria-light)}
#home .world-card[href="/world/author/"]{--atlas-world-ink:var(--bz-author);--atlas-world-paper:var(--bz-author-light)}
#home .world-card{color:var(--atlas-world-ink,var(--ink));background:var(--atlas-world-paper,var(--panel));border-color:var(--atlas-world-ink,var(--ink))}
#home .world-card p{color:var(--bz-green)}
#home .world-card[href="/fantazeria/"] p{color:var(--bz-fantazeria)}
#home .world-card:hover{box-shadow:inset 0 0 0 1px currentColor}
#home .world-card:focus-visible{outline:3px solid var(--bz-atlas);outline-offset:5px}

/* Author request: the meaning precedes the full image in ATLAS world cards. */
#home .world-card>.capsule-card-inner{display:flex;flex-direction:column;align-items:stretch;gap:14px;height:100%}
#home .world-card .capsule-card-media{margin-top:auto}

/* Local author-review variant: a consistent title + directional sign. */
#home .world-card h3{display:flex;align-items:center;gap:12px}
#home .world-card h3 .world-card-title{display:block;position:static;inset:auto;min-width:0;margin:0;font:inherit}
#home .world-card h3 .world-card-arrow{display:block;flex:0 0 22px;width:22px;height:22px;margin:0;color:inherit}
/* Staging only. Append after existing card styles if the paired DOM patch is integrated. */
.trial-products .trial-product-card{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.trial-products .trial-product-card>.capsule-card-inner{display:flex;flex-direction:column;align-items:stretch;gap:14px;height:100%;min-width:0}
.trial-products .trial-product-card>.trial-card-copy,.trial-products .trial-product-card .capsule-card-inner>.trial-card-copy{min-width:0;flex:1 0 auto}
.trial-products .trial-product-card>.capsule-card-inner>.capsule-card-media{margin-top:auto}
.trial-products .trial-product-card>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;margin-top:auto}

/* Atlas/Whole reading rhythm; local candidate, shared palette and existing semantics retained.
   Scoped to active Bureau/Mozg/Author. Never alters route visibility or details disclosure. */
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-product-card .canon-card-heading,
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-product-card .canon-card-heading>a{display:flex;align-items:center;gap:12px;min-width:0}
.route:not([hidden]) .trial-product-card .canon-card-title{min-width:0}
.route:not([hidden]) .trial-product-card .canon-card-arrow{display:block;flex:0 0 22px;width:22px;height:22px;color:inherit}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-product-card{border-radius:18px;overflow:hidden}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-product-card>.trial-card-copy{padding:24px}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-card-copy h2{margin:0 0 12px;line-height:1.2}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-card-copy p{margin:0;line-height:1.55;max-width:46ch}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-card-copy .cabinet-card-demo{display:inline-block;margin-top:18px;position:relative;z-index:2}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) :is(.trial-product-details,.accepted-first-question){max-width:1100px;margin:32px auto}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .accepted-first-question{padding:clamp(22px,3vw,40px);border:1px solid color-mix(in srgb,var(--ink) 24%,transparent);border-radius:18px;background:var(--panel)}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .accepted-question{font-size:clamp(24px,2.6vw,34px);line-height:1.3;max-width:30ch}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-details{padding:20px 24px;border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);border-radius:16px;margin:14px 0;background:var(--panel)}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-details>summary{font-weight:650;line-height:1.4;cursor:pointer;padding:4px 0}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-details p{max-width:70ch;line-height:1.65}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-details[open]>summary{margin-bottom:16px}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-semantic-part{border-radius:16px;padding:24px;min-width:0}
.route:not([hidden])[data-world="author"] #author-created{padding:clamp(24px,3vw,40px);border:1px solid color-mix(in srgb,var(--ink) 22%,transparent);border-radius:18px;background:var(--panel)}
.route:not([hidden])[data-world="author"] .author-contact-question a{font-weight:650;text-underline-offset:.2em}
@media(max-width:600px){.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-product-card>.trial-card-copy{padding:20px}.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-details{padding:18px}.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-semantic-part{padding:18px}}


/* Author review: one meaningful sign in the title row, description below. */
.trial-card-copy .canon-card-heading,.trial-product-hero .hero-copy>h1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.trial-card-copy .canon-card-heading>.bz-capsule-sign,.trial-product-hero .hero-copy>h1>.bz-capsule-sign{display:inline-flex;inline-size:28px;block-size:28px;margin:0;flex:0 0 28px}
.trial-card-copy .canon-card-heading .bz-capsule-sign__detail,.trial-product-hero .hero-copy>h1 .bz-capsule-sign__detail{display:none}
.trial-card-copy .canon-card-heading .bz-capsule-sign__main,.trial-product-hero .hero-copy>h1 .bz-capsule-sign__main{inline-size:28px;block-size:28px}
.route:not([hidden]):is([data-world="bureau"],[data-world="mozg"]) .trial-product-card>.trial-card-copy{padding:20px 24px}
.trial-products .trial-card-copy{justify-content:flex-start}

.world-channel-footer{margin-top:40px;padding-top:24px;border-top:1px solid color-mix(in srgb,var(--ink) 22%,transparent);font-size:15px}
@media(max-width:600px){.route:not([hidden]) .trial-semantic-part .trial-semantic-glyph{position:static;display:block;width:30px;height:30px;margin:0 0 12px}.route:not([hidden]) .trial-parts .trial-semantic-map{grid-template-columns:1fr}.route:not([hidden]) .trial-semantic-part{min-width:0;overflow-wrap:break-word}}
/* Same terms presentation as MY BUSINESS; limited to active MOZG offers. */
.route[data-world="mozg"]:not([hidden]) .my-business-terms.mozg-offer-terms{margin:30px 0;padding:28px;border:1px solid currentColor;border-radius:16px;background:var(--panel,var(--bz-sheet))}
.route[data-world="mozg"]:not([hidden]) .mozg-offer-terms h2{font-size:clamp(26px,3vw,34px);line-height:1.2;margin-bottom:20px}
.route[data-world="mozg"]:not([hidden]) .mozg-offer-terms .trial-product-price{margin:0 0 20px}
.route[data-world="mozg"]:not([hidden]) .mozg-offer-terms>p:not(.trial-product-price){font-size:17px;line-height:1.6;max-width:64ch;margin-bottom:22px}
.route[data-world="mozg"]:not([hidden]) .mozg-offer-terms .material-choice{max-width:640px;margin-bottom:24px}
@media(max-width:600px){.route[data-world="mozg"]:not([hidden]) .my-business-terms.mozg-offer-terms{padding:20px}}

.bz-capsule-sign,.trial-card-copy>.bz-capsule-sign,.shared-capsule>div>.bz-capsule-sign{display:inline-flex;inline-size:28px;block-size:28px;gap:0}.bz-capsule-sign__main{inline-size:28px;block-size:28px}.bz-capsule-sign__detail{display:none}
/* Shared action rhythm: reserve real space between an action and its explanation. */
.my-business-terms>.button,.my-business-terms>.trial-cta{display:inline-flex;align-items:center;justify-content:center;margin-block:8px 20px;max-width:100%;white-space:normal;text-align:center;line-height:1.4}
.my-business-terms>.button+p,.my-business-terms>.trial-cta+p{margin-top:0;line-height:1.6;max-width:62ch}
.actions{gap:12px;flex-wrap:wrap}
.actions+p,.button+p.trial-action-hint,.trial-cta+p.trial-action-hint{margin-top:20px}
.trial-product-details>section+details,.trial-product-details>details+section{margin-top:28px}
@media(max-width:600px){.my-business-terms>.button,.my-business-terms>.trial-cta{width:100%;min-height:48px}.my-business-terms{overflow-wrap:break-word}}

/* Author-approved place signature; secondary to the invitation and links. */
.site-footer .footer-origin{min-width:0;display:grid;gap:8px}.site-footer .footer-origin p{margin:0;line-height:1.5}.site-footer .footer-origin .footer-place{font-size:13px;letter-spacing:.025em;opacity:.8}@media(max-width:600px){.site-footer .footer-origin{flex-basis:100%}}

/* Keep standalone actions clear of the surrounding copy. */
.route[data-world="author"] .author-inquiry-path > .author-contact-question,
.route .trial-product-hero .hero-copy > p.capsule-demo-action {
  margin-block: 20px;
}
.route .my-business-terms > p + :is(.button, .trial-cta) {
  margin-block-start: 20px;
}
.route p + .actions,
.route p + :is(.button, .trial-cta) {
  margin-block-start: 20px;
}
.route .actions + p {
  margin-block-start: 20px;
}
/* Surface depth follows the role of each element. */
:root {
  --bz-depth-card: 0 1px 2px rgb(23 62 52 / 6%), 0 7px 20px rgb(23 62 52 / 8%);
  --bz-depth-price: 0 2px 10px rgb(23 62 52 / 6%);
  --bz-depth-menu: 0 8px 28px rgb(23 62 52 / 18%);
}
:is(.world-card, .capsule-card, .trial-card, .mozg-category-card) {
  box-shadow: var(--bz-depth-card);
}
.route .my-business-terms {
  box-shadow: var(--bz-depth-price);
}
.site-menu.terminal-menu:not([hidden]) {
  box-shadow: var(--bz-depth-menu);
}
/* Bureau: outline the light cards against the warm surface. */
#bureau .trial-product-card {
  border-color: #ab8376;
  box-shadow: 0 2px 4px rgb(89 43 32 / 10%), 0 9px 24px rgb(89 43 32 / 13%);
}
#product-my-business .capsule-demo-action > .cabinet-product-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 52px;
  margin: 0;
  max-width: 100%;
  padding: 12px 24px;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  vertical-align: top;
}
/* Shared Bureau offer terminal. */
:is(#product-bureau-project, #product-my-business) .my-business-terms {
  padding: clamp(22px, 5vw, 48px);
  border-block-start: 4px solid var(--bz-bureau);
}
:is(#product-bureau-project, #product-my-business) .my-business-terms > h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
}
:is(#product-bureau-project, #product-my-business) .trial-product-price > strong {
  display: block;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
}
:is(#product-bureau-project, #product-my-business) .my-business-terms > .trial-cta {
  min-height: 54px;
  padding: 12px 24px;
  font-size: 17px;
}
/* Separate card surfaces from each world's canvas without changing text colors. */
.route[data-world] :is(.world-card, .capsule-card, .mozg-category-card, .trial-product-card) {
  border-color: color-mix(in srgb, currentColor 44%, transparent);
}
.route[data-world="mozg"] .mozg-category-grid {
  background: color-mix(in srgb, var(--bz-mozg-light) 90%, var(--bz-mozg) 10%);
  border-radius: 18px;
}
.route[data-world="mozg"] .mozg-category-card {
  background: var(--panel, #fffdf7);
}
/* Applied work: give the sign and arrow their own space at narrow widths. */
#mozg-applied a.applied-product-card:is([href="/product-digital-tool/"], [href="/product-solution-improvement/"]) .trial-card-copy {
  min-inline-size: 0;
  padding: clamp(16px, 4vw, 30px);
}
#mozg-applied a.applied-product-card:is([href="/product-digital-tool/"], [href="/product-solution-improvement/"]) .canon-card-heading {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 10px;
  font-size: clamp(20px, 4.8vw, 29px);
  line-height: 1.15;
}
#mozg-applied a.applied-product-card:is([href="/product-digital-tool/"], [href="/product-solution-improvement/"]) .canon-card-title {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#mozg-applied a.applied-product-card:is([href="/product-digital-tool/"], [href="/product-solution-improvement/"]) .canon-card-arrow {
  inline-size: 20px;
  block-size: 20px;
  margin: 2px 0 0;
}
#mozg-applied a.applied-product-card:is([href="/product-digital-tool/"], [href="/product-solution-improvement/"]) .trial-card-copy > p {
  margin: 10px 0 0;
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.5;
}

/* Applied work: give the sign and arrow their own space at narrow widths. */
:is(#mozg-applied, .route)[data-world="mozg"] :is(.trial-product-card, .mozg-category-card, .capsule-card) .trial-card-copy {
  min-inline-size: 0;
  padding: clamp(16px, 4vw, 30px);
}
:is(#mozg-applied, .route)[data-world="mozg"] :is(.trial-product-card, .mozg-category-card, .capsule-card) .canon-card-heading {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 10px;
  font-size: clamp(20px, 4.8vw, 29px);
  line-height: 1.15;
}
:is(#mozg-applied, .route)[data-world="mozg"] :is(.trial-product-card, .mozg-category-card, .capsule-card) .canon-card-title {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
:is(#mozg-applied, .route)[data-world="mozg"] :is(.trial-product-card, .mozg-category-card, .capsule-card) .canon-card-arrow {
  inline-size: 20px;
  block-size: 20px;
  margin: 2px 0 0;
}
:is(#mozg-applied, .route)[data-world="mozg"] :is(.trial-product-card, .mozg-category-card, .capsule-card) .trial-card-copy > p {
  margin: 10px 0 0;
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.5;
}

:is(#mozg-applied, .route)[data-world="mozg"] :is(.trial-product-card, .mozg-category-card, .capsule-card) .canon-card-heading:not(:has(> .bz-capsule-sign)) {
  grid-template-columns: minmax(0, 1fr) 20px;
}


/* World names in the connections lists use the destination palette. */
.mozg-world-connections dt > a[href="/"], .route[data-world] :is(dl, .author-work-connections) a[href="/"] { color: var(--bz-atlas); }
.mozg-world-connections dt > a[href="/world/bureau/"], .route[data-world] :is(dl, .author-work-connections) a[href="/world/bureau/"] { color: var(--bz-bureau); }
.mozg-world-connections dt > a[href="/world/mozg/"], .route[data-world] :is(dl, .author-work-connections) a[href="/world/mozg/"] { color: var(--bz-mozg); }
.mozg-world-connections dt > a[href="/world/projectorium/"], .route[data-world] :is(dl, .author-work-connections) a[href="/world/projectorium/"] { color: var(--bz-projectorium); }
.mozg-world-connections dt > a[href="/world/fantazeria/"], .route[data-world] :is(dl, .author-work-connections) a[href="/world/fantazeria/"] { color: var(--bz-fantazeria); }
.mozg-world-connections dt > a[href="/world/square/"], .route[data-world] :is(dl, .author-work-connections) a[href="/world/square/"] { color: var(--bz-square); }
.mozg-world-connections dt > a[href="/world/author/"], .route[data-world] :is(dl, .author-work-connections) a[href="/world/author/"] { color: var(--bz-author); }
.mozg-world-connections dt > a[href="/fantazeria/"], .route[data-world] :is(dl, .author-work-connections) a[href="/fantazeria/"] { color: var(--bz-fantazeria); }
