/* Launch update 18: consistent previews, clear return paths, tighter spacing. */
/* Keep the close action and return button visible while long content scrolls. */
dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 36px)}
dialog .eyebrow,dialog h2,dialog .dialog-done{flex-shrink:0}
dialog h2{padding-right:24px}
#dialog-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.dialog-close{z-index:2;background:white;border-radius:50%;min-width:42px;min-height:42px}
.dialog-done{align-self:flex-start}
.dialog-figure .seven-art{display:block;width:100%;height:100%;overflow:visible}
.model-return-mobile{display:none}
.stage-return{grid-column:1/-1;margin:0 0 24px!important;line-height:1.4}
.stage-return .text-link{font-size:13px;color:#007575}
#connected-structure,.model-stage-section{scroll-margin-top:110px}
.seven-card{transition:border-color .18s,background-color .18s,box-shadow .18s,transform .18s}
.model-page .seven-card:hover,.model-page .seven-card:focus-visible{background:#E6F6F7;border-color:#009A9A;box-shadow:0 8px 20px #002B5C0A}
.seven-card:focus:not(:focus-visible){outline:none}
.core-detail-card{position:relative;border-top:3px solid #009A9A;background:linear-gradient(155deg,#F3FAFB,white 62%);transition:background-color .18s,border-color .18s,box-shadow .18s}
.core-detail-card:hover,.core-detail-card:focus-within{background:#E6F6F7;border-color:#009A9A;box-shadow:0 8px 20px #002B5C0A}
.core-card-number{display:block;position:absolute;left:20px;top:15px;font-size:10px;letter-spacing:.12em;font-weight:600;color:#007575}
.core-detail-art{width:110px;height:110px;margin:10px auto 22px}
.books-section>.section{padding-top:48px;padding-bottom:48px}
.books-section .section-heading{margin-bottom:20px}
.books-section .connected-heading{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:35px;max-width:none}
.books-section .connected-heading h2{font-size:clamp(38px,3.7vw,50px);line-height:1.08}
.books-section .connected-heading>p{margin:0 0 4px;max-width:460px;font-size:16px}
.books-section .book-display{min-height:475px}
.books-section .featured-book{gap:50px}
.books-section .book-two{margin-top:22px;padding-top:32px}
.books-section .book-two-display{min-height:440px}
.books-section .book-copy h3{font-size:clamp(31px,3.2vw,43px)}
.books-section .book-copy .subtitle{font-size:23px;line-height:1.45;margin-bottom:24px}
.contact-route .contact-email,.contact-route .contact-linkedin{display:inline-flex;align-items:center;gap:10px;width:max-content;max-width:100%;font-size:16px;font-weight:500;line-height:1.5;padding:12px 0}
.contact-route .contact-linkedin{display:flex}
.linkedin-mark{width:23px;height:23px;flex:0 0 23px;color:#0A66C2}
@media(max-width:900px){.books-section .book-display{min-height:430px}.books-section .book-two-display{min-height:395px}.books-section .featured-book{gap:30px}}
@media(max-width:760px){
 .model-page .model-stage-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible}
 .model-page .model-stage-controls :is(button,a){grid-column:span 2;min-width:0;min-height:60px;padding:10px;font-size:12px;border-bottom:1px solid #D9E8F2}
 .model-page .model-stage-controls :is(button,a):nth-child(n+4){grid-column:span 3;border-bottom:0}
 .model-page .model-stage-controls :is(button,a):nth-child(3){border-right:0}
 .model-page .model-stage-controls :is(button,a)>span{font-size:10px;margin-bottom:4px}
 .model-page .structure-top>p:last-child{font-size:13px}
 .model-page .model-stage-section{scroll-margin-top:100px}
 .model-return-mobile:not([hidden]){display:block;position:fixed;z-index:25;bottom:calc(15px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:11px 20px;border:1px solid #A8BCCB;border-radius:24px;background:#FFFFFFF5;color:#002B5C;box-shadow:0 4px 22px #002B5C25;white-space:nowrap;font-size:13px}
 .model-page .footer{padding-bottom:95px}
 .stage-return{margin-bottom:17px!important}
 .about-section .obion-backdrop{font-size:34vw;left:3%;bottom:8px;letter-spacing:-.07em;transform:scaleY(1.1)}
 .about-section .why-question-mark{margin-left:.06em}
 .books-section>.section{padding-block:35px}
 .books-section .connected-heading{display:block;margin-bottom:25px}
 .books-section .connected-heading>p{margin-top:18px;font-size:15px}
 .books-section .book-display{min-height:405px}
 .books-section .book-two{margin-top:25px;padding-top:28px}
 .books-section .book-two-display{min-height:375px}
 .books-section .book-copy .subtitle{font-size:22px}
 dialog[open]{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:42px 22px 20px}
 dialog h2{font-size:29px;line-height:1.15;margin-bottom:18px}
 dialog .eyebrow{font-size:10px;line-height:1.5;margin-bottom:12px;padding-right:25px}
 .dialog-close{top:7px;right:8px}
 .dialog-done{margin-top:15px;font-size:13px;padding:12px 16px}
 .dialog-figure{width:115px;height:115px;margin-bottom:15px}
 .core-detail-art{width:90px;height:90px}
 .core-card-number{left:15px;top:10px}
}
@media(max-width:440px){.core-detail-card{padding-top:28px}.core-detail-art{width:75px;height:75px;margin:0}.books-section .book-preview{width:225px;height:338px}.books-section .book-two-display .book-preview{height:322px}.books-section .book-display{min-height:380px}.books-section .book-two-display{min-height:355px}.books-section .book-copy h3{font-size:32px}}
@media(prefers-reduced-motion:reduce){.core-detail-card,.seven-card{transition:none}}

/* Update 19: separate The Seven artwork and text at phone widths. */
@media(max-width:760px){
 #dialog-content{padding-top:6px}
 .dialog-figure{float:none;clear:both;width:140px;height:140px;margin:8px auto 30px}
 .dialog-figure+p,.dialog-figure+.dialog-learning-lead{clear:both;margin-top:0}
 .seven-card{padding-top:18px;padding-bottom:24px}
 .seven-card>.seven-art{margin-top:18px;margin-bottom:28px;max-width:100%}
 .seven-card>strong{line-height:1.35}
 .seven-card>span:last-child{font-size:12px;line-height:1.75;margin-top:14px}
 .seven-card:last-child{grid-template-columns:120px minmax(0,1fr);column-gap:28px;row-gap:8px}
 .seven-card:last-child>.seven-art{margin:18px 0 0;max-width:120px}
}


/* Update 20: white Seven cards with a moving teal edge. */
.model-page .seven-card{position:relative;overflow:hidden;background:#FFFFFF}
.model-page .seven-card:hover,.model-page .seven-card:focus-visible{
 background:#FFFFFF;border-color:#009A9A;
 box-shadow:inset 0 0 0 1px #009A9A,0 5px 16px #002B5C0A;
 transform:none;
}
.model-page .seven-card::after{
 content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
 opacity:0;transition:opacity .15s;
 background:
  linear-gradient(90deg,#009A9A 10%,#8BD7D4 48%,#009A9A 86%) 0% 0% / 200% 3px no-repeat,
  linear-gradient(180deg,#009A9A 10%,#8BD7D4 48%,#009A9A 86%) 100% 0% / 3px 200% no-repeat,
  linear-gradient(270deg,#009A9A 10%,#8BD7D4 48%,#009A9A 86%) 100% 100% / 200% 3px no-repeat,
  linear-gradient(0deg,#009A9A 10%,#8BD7D4 48%,#009A9A 86%) 0% 100% / 3px 200% no-repeat;
}
.model-page .seven-card:hover::after,.model-page .seven-card:focus-visible::after{
 opacity:1;animation:oai-card-edge 2.4s linear infinite;
}
@keyframes oai-card-edge{
 from{background-position:0% 0%,100% 0%,100% 100%,0% 100%}
 to{background-position:100% 0%,100% 100%,0% 100%,0% 0%}
}
/* Preserve each approved crop inside its information-window image box. */
.dialog-figure{overflow:hidden;isolation:isolate}
.dialog-figure .seven-art{overflow:hidden}
@media(prefers-reduced-motion:reduce){
 .model-page .seven-card::after{transition:none}
 .model-page .seven-card:hover::after,.model-page .seven-card:focus-visible::after{animation:none}
}
