/* Keep the opening in normal flow before and after the shared layout mounts. */
@media(min-width:801px){
body .ay-project-top > .ay-approved-hero--godbot{height:auto!important;min-height:0!important}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 48px;padding:32px!important}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]) > :is(.ay-approved-hero__meta,.ay-approved-hero__title,.ay-approved-hero__lead,.ay-approved-hero__date,.ay-approved-hero__media){position:static!important;inset:auto!important;width:auto!important;max-width:100%!important;margin:0!important;transform:none!important}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]) > .ay-approved-hero__meta{grid-column:1/-1}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]) > .ay-approved-hero__title{grid-column:1;grid-row:2}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]) > .ay-approved-hero__lead{grid-column:2;grid-row:2}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]) > .ay-approved-hero__date{grid-column:2;white-space:normal!important}
body .ay-project-top > .ay-approved-hero--godbot:not([data-opening-shell]) > .ay-approved-hero__media{grid-column:1/-1;justify-self:end;width:62%!important}
body .ay-project-top > .ay-approved-hero--godbot [data-opening-row]{height:auto!important;min-height:min-content;align-items:start}
body .ay-project-top > .ay-approved-hero--godbot [data-opening-lead-column]{min-width:0;height:auto!important}
body .ay-project-top > .ay-approved-hero--godbot [data-opening-native]{position:relative!important;top:auto!important;bottom:auto!important;transform:none!important;margin-top:48px!important;clear:both}
}

/* Reading measure for history, canon and archive; media retains its grid. */
html body .ay-project-top :is(.ay-godbot-history-network__intro,.ay-godbot-history-network__layers,.ay-godbot-history-network__layers dd,.ay-godbot-authorial-canon__intro,.ay-godbot-authorial-canon__note,.ay-godbot-archive-reader__intro,.ay-godbot-archive-reader__copy,.ay-godbot-archive-reader__secondary p){box-sizing:border-box;min-width:0!important;max-width:54ch!important;white-space:normal!important;overflow-wrap:break-word;line-height:1.55!important}
html body .ay-project-top .ay-godbot-history-network__layers dt{margin-bottom:8px!important}
html body .ay-project-top .ay-godbot-history-network__layers dd{margin:0 0 24px!important}
html body .ay-project-top :is(.ay-godbot-authorial-canon__statements,.ay-godbot-authorial-canon__law){min-width:0!important;max-width:100%!important}
html body .ay-project-top :is(.ay-godbot-authorial-canon__statements,.ay-godbot-authorial-canon__law) p{max-width:28ch!important;white-space:normal!important;overflow-wrap:break-word}

.gb-graph-poster{position:relative;justify-content:flex-end!important;padding:28px!important;isolation:isolate}
.gb-graph-poster>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;z-index:-1}
.gb-graph-poster>button{position:relative;background:#efefea!important}

/* Shared 12-column frame for the project reading sections. */
html body .ay-project-top{--gb-grid-gap:24px}
html body .ay-project-top #seven-module .seven-bridge{column-gap:24px;padding:40px 0!important}
html body .ay-project-top #seven-module .seven-reading{margin-top:20px}
html body .ay-project-top #seven-module .seven-workspace{gap:24px;padding-top:24px}
html body .ay-project-top #seven-module .seven-panel{gap:24px}
html body .ay-project-top :is(.ay-godbot-history-network,.ay-godbot-authorial-canon,.ay-godbot-archive-reader){padding-top:24px!important;padding-bottom:32px!important;margin-top:0!important;margin-bottom:0!important}
html body .ay-project-top .ay-godbot-authorial-canon__statements p{border:0!important;padding:0!important;margin:0 0 12px!important}
html body .ay-project-top .ay-godbot-authorial-canon__law{padding-top:16px!important;margin-top:0!important}
@media(min-width:901px){
html body .ay-project-top :is(.ay-godbot-history-network,.ay-godbot-authorial-canon,.ay-godbot-archive-reader){display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:24px!important;align-items:start}
html body .ay-project-top :is(.ay-godbot-history-network,.ay-godbot-authorial-canon,.ay-godbot-archive-reader)>.ay-project-lower__bar{grid-column:1/-1!important;margin:0!important}
html body .ay-project-top .ay-godbot-history-network>h2{grid-column:1/4!important;margin:0!important}
html body .ay-project-top :is(.ay-godbot-history-network__intro,.ay-godbot-archive-reader__intro){grid-column:4/-1!important;margin:0!important}
html body .ay-project-top :is(.ay-godbot-history-network__frame,.ay-godbot-archive-reader__frame){grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:24px!important;margin:0!important}
html body .ay-project-top :is(.ay-godbot-history-network__selector,.ay-godbot-archive-reader__selector){grid-column:1/4!important;width:auto!important;min-width:0!important}
html body .ay-project-top :is(.ay-godbot-history-network__panel,.ay-godbot-archive-reader__panel){grid-column:4/-1!important;min-width:0!important;width:auto!important;margin:0!important;column-gap:24px!important}
html body .ay-project-top .ay-godbot-history-network__cta{grid-column:4/-1!important;margin:0!important}
html body .ay-project-top .ay-godbot-authorial-canon__intro{grid-column:1/4!important;grid-row:2!important;margin:0!important}
html body .ay-project-top .ay-godbot-authorial-canon__statements{grid-column:4/10!important;grid-row:2!important;margin:0!important;padding:0!important;border:0!important}
html body .ay-project-top .ay-godbot-authorial-canon__law{grid-column:4/10!important;grid-row:3!important}
html body .ay-project-top .ay-godbot-authorial-canon__sign{grid-column:10/-1!important;grid-row:2/4!important;margin:0!important;width:min(100%,180px)!important;justify-self:start}
html body .ay-project-top .ay-godbot-authorial-canon__sign img{width:100%!important;height:auto!important}
}
@media(max-width:900px){
html body .ay-project-top :is(.ay-godbot-history-network__frame,.ay-godbot-archive-reader__frame){gap:24px!important}
html body .ay-project-top :is(.ay-godbot-history-network,.ay-godbot-authorial-canon,.ay-godbot-archive-reader){row-gap:20px!important}
}

/* Evidence follows the same left-aligned frame as the reading sections. */
html body .ay-project-top #project-materials{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:16px 24px!important;margin:24px 0 0!important;padding:20px 0 24px!important}
html body .ay-project-top #project-materials>.ay-project-lower__bar{grid-column:1/-1!important;display:flex!important;justify-content:space-between!important;margin:0!important;padding:0!important;border:0!important;gap:24px!important}
html body .ay-project-top #project-materials>.ay-godbot-documentation-group__intro{grid-column:4/-1!important;margin:0!important;max-width:54ch!important}
html body .ay-project-top #project-materials .ay-godbot-documentation-group{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:16px 24px!important;margin:8px 0 0!important;padding:0!important;border:0!important}
html body .ay-project-top #project-materials .ay-godbot-documentation-group__label{grid-column:1/4!important;margin:0!important;padding:0!important;border:0!important}
html body .ay-project-top #project-materials .ay-godbot-evidence-grid{grid-column:4/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;margin:0!important;padding:0!important}
html body .ay-project-top #project-materials .ay-godbot-evidence{grid-column:auto!important;grid-row:auto!important;order:0!important;margin:0!important;padding:0!important;border:0!important;min-width:0!important}
html body .ay-project-top #project-materials .ay-godbot-evidence img{width:100%!important;height:180px!important;min-height:0!important;max-height:180px!important;object-fit:contain!important;object-position:left center!important;margin:0!important}
html body .ay-project-top #project-materials figcaption{display:block!important;margin:8px 0 0!important;padding:0!important;text-align:left!important}
html body .ay-project-top #project-materials figcaption :is(h3,p){margin:6px 0 0!important}
html body .ay-project-top #project-materials :is(.godbot-research__cta,.gb-materials-link){grid-column:4/-1!important;display:block!important;justify-self:start!important;max-width:100%!important;width:auto!important;min-height:32px!important;height:auto!important;margin:0!important;padding:8px 0!important;border:0!important;text-align:left!important}
@layer ay-typography-v1{html body .ay-project-top #project-materials :is(.godbot-research__cta,.gb-materials-link){font-family:'Source Sans 3',sans-serif!important;font-size:12px!important;line-height:16px!important;--ay-type-size:12px;--ay-type-leading:16px}}
@media(max-width:900px){html body .ay-project-top #project-materials .ay-godbot-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){html body .ay-project-top #project-materials,html body .ay-project-top #project-materials .ay-godbot-documentation-group{display:block!important}html body .ay-project-top #project-materials .ay-godbot-evidence-grid{display:grid!important;grid-template-columns:1fr!important}html body .ay-project-top #project-materials>.ay-project-lower__bar{display:block!important}html body .ay-project-top #project-materials :is(.ay-godbot-documentation-group__intro,.ay-godbot-documentation-group,.ay-godbot-documentation-group__label){margin:0 0 16px!important}}

/* One compact reading instruction: label left, instruction in the content column. */
html body .ay-project-top #seven-module .seven-bridge{display:block!important;padding:20px 0!important}
html body .ay-project-top #seven-module .seven-reading{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;margin:0!important;align-items:baseline}
html body .ay-project-top #seven-module .seven-reading>p:first-child{grid-column:1/4;margin:0!important}
html body .ay-project-top #seven-module .seven-reading>p+p{grid-column:4/-1;margin:0!important}
@media(max-width:600px){html body .ay-project-top #seven-module .seven-reading{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px}html body .ay-project-top #seven-module .seven-reading>p:first-child{grid-column:1}html body .ay-project-top #seven-module .seven-reading>p+p{grid-column:2}}

/* Matching entry controls for the route and the world map. */
html body .ay-project-top :is(#most-entry [data-most-open],[data-gb-graph-start]){appearance:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px!important;border:1px solid #6b5e57!important;border-radius:0;background:transparent!important;color:#302c29!important;text-align:left;cursor:pointer}
html body .ay-project-top .godbot-research__graph-foot{justify-content:flex-start!important}
html body .ay-project-top :is(#most-entry [data-most-open],[data-gb-graph-start]):focus-visible{outline:2px solid #064cff;outline-offset:3px}
@layer ay-typography-v1{html body .ay-project-top :is(#most-entry [data-most-open],[data-gb-graph-start]){font-family:'Source Sans 3',sans-serif!important;font-size:16px!important;line-height:20px!important;font-weight:400!important;--ay-type-size:16px;--ay-type-leading:20px}}

html body .ay-project-top #seven-module .seven-section-label{margin:0 0 20px!important;padding:0!important}
@layer ay-typography-v1{html body .ay-project-top #seven-module .seven-section-label{font-family:'Source Sans 3',sans-serif!important;font-size:12px!important;line-height:16px!important;--ay-type-size:12px;--ay-type-leading:16px}}

html body .ay-project-top #seven-module .seven-reading>p:only-child{grid-column:4/-1;margin:0!important}
@media(max-width:600px){html body .ay-project-top #seven-module .seven-reading>p:only-child{grid-column:1/-1}}

/* Keep section boundaries; avoid stacked dividers within the same block. */
html body .ay-project-top #most-entry{border-bottom:0!important}
html body .ay-project-top #seven-module :is(.seven-selector,.seven-entries,.seven-entries li,.seven-copy h2){border-top:0!important;border-bottom:0!important}
html body .ay-project-top .gb-engineering :is(.ay-godbot-history-network__layers dt,.ay-godbot-quantum-threshold__sequence){border-top:0!important}
html body .ay-project-top .godbot-research__graph{border:0!important}
