/* All article-style contents panels: readable links and primary title. */
body aside.ar-contents a,body aside.ar-contents .ar-contents-links a{font-size:18px!important;line-height:1.5!important;overflow-wrap:anywhere}
body aside.ar-contents summary,body aside.ar-contents .ci-t{font-size:18px!important;line-height:1.5!important}
/* Mobile contents indicator (option D). Below 1060px only; desktop untouched. */
@media (max-width:1059px){
aside.ar-contents{background:transparent !important;padding:0 !important;border-radius:0 !important}
.ar-contents-fold{background:#173e59 !important;border-color:#173e59 !important}
.ar-contents-fold>summary{color:#fff !important;min-height:44px;position:relative}
.ar-contents-fold>summary .ci-t{display:flex;flex-direction:column;gap:1px}
.ar-contents-fold>summary .ci-t::after{content:attr(data-ci-closed);font:500 13px/18px Manrope,sans-serif;color:#cfe0ea}
.ar-contents-fold[open]>summary .ci-t::after{content:attr(data-ci-open)}
.ar-contents-fold>summary .acc-chev{display:inline-flex !important;flex:none !important;align-items:center !important;justify-content:center !important;width:34px !important;height:34px !important;border-radius:50% !important;background:#efdfae !important;color:#173e59 !important}
.ar-contents-fold>summary .acc-chev svg{display:none !important}
.ar-contents-fold>summary .acc-chev::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.ar-contents-fold[open]>summary .acc-chev::before{transform:translateY(2px) rotate(-135deg)}
.ar-contents-fold nav a{color:#fff !important}
.ar-contents-fold nav{display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:2px !important;justify-content:stretch !important}
.ar-contents-fold nav a{text-align:left !important;display:block !important;width:auto !important;max-width:none !important;margin:0 !important}
.ar-contents-fold nav a:hover,.ar-contents-fold nav a[aria-current="location"]{background:#ffffff1f !important;color:#efdfae !important}
}
@media (prefers-reduced-motion:reduce){.ar-contents-fold>summary .acc-chev::before{transition:none}}

/* Accepted article contents: 18px regular, page-driven scrolling. */
html body #main#main aside.ar-contents.ar-contents{position:static!important;max-height:none!important;overflow:visible!important;height:auto!important}
html body #main#main aside.ar-contents.ar-contents a,html body #main#main aside.ar-contents.ar-contents .ar-contents-links a{font-size:18px!important;font-weight:400!important;line-height:1.5!important;overflow-wrap:anywhere}
html body #main#main aside.ar-contents.ar-contents summary,html body #main#main aside.ar-contents.ar-contents .ci-t{font-size:18px!important;font-weight:500!important;line-height:1.5!important}
html body #main#main aside.ar-contents.ar-contents a[aria-current]{font-weight:400!important}
@media(min-width:1060px){html body #main#main aside.ar-contents.ar-contents{position:sticky!important;top:var(--ar-rail-top,110px)!important;align-self:start!important}}

/* Approved standard article type: 26 October 2026. Existing mixed legacy
   pages additionally use the main-site cap-preserving cascade. */
html.aes-editorial body.article-type-compact #main .ar-body .ar-section p.editorial,
html.aes-editorial body.article-type-compact #main .ar-head p {
 font-size:18px!important;line-height:1.6!important;
}
html.aes-editorial body.article-type-compact #main .ar-head h1 {
 font-size:48px!important;line-height:1.22!important;
 max-width:none!important;text-wrap:balance!important;
}
@media(max-width:1100px){
 html.aes-editorial body.article-type-compact #main .ar-head h1{font-size:40px!important}
}
@media(max-width:760px){
 html.aes-editorial body.article-type-compact #main .ar-head h1{font-size:32px!important}
}

/* Approved author panel: body-size text, Simon 29 October 2026.
   Load after the article and site type assets. No page/body prose changes. */
html body #main#main .ar-author.ar-author,
html body #main#main .ar-author.ar-author :is(p,a,span,time) {
  font-size:18px!important;
  line-height:1.6!important;
}
html body #main#main .ar-author.ar-author {
  display:grid!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  column-gap:14px!important;
  row-gap:0!important;
  align-items:start!important;
}
html body #main#main .ar-author.ar-author>:is(img,a) {
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:start!important;
}
html body #main#main .ar-author.ar-author>div {
  grid-column:2!important;min-width:0;
}
html body #main#main .ar-author.ar-author p {margin:0 0 5px!important;}
html body #main#main .ar-author.ar-author .ar-author-name {font-weight:700!important;}
html body #main#main .ar-author.ar-author .ar-author-post {font-weight:600!important;}
html body #main#main .ar-author.ar-author>.ar-date {grid-column:2!important;}
@media(max-width:760px) {
  html body #main#main .ar-author.ar-author {
    grid-template-columns:76px minmax(0,1fr)!important;
    align-items:center!important;
  }
  html body #main#main .ar-author.ar-author>div {display:contents!important;}
  html body #main#main .ar-author.ar-author>:is(img,a) {grid-row:1!important;}
  html body #main#main .ar-author.ar-author .ar-author-name {grid-column:2!important;grid-row:1!important;}
  html body #main#main .ar-author.ar-author .ar-author-post,
  html body #main#main .ar-author.ar-author .ar-author-role,
  html body #main#main .ar-author.ar-author>.ar-date {grid-column:1 / -1!important;}
}

/* Scoped layout layered after the current production shell. */
body.page-small-pupils main{--article-ink:#142b43}
body.page-small-pupils{--font-display:Manrope,sans-serif;--font-editorial:Manrope,sans-serif}
html body.page-small-pupils #main#main#main#main :is(h1,h2,h3){font-family:Manrope,sans-serif!important;font-weight:600!important;line-height:1.22!important;max-width:none!important;text-wrap:balance}
html body.page-small-pupils #main#main#main#main .ar-section h2{font-size:32px!important}
.page-small-pupils .ar-head{max-width:1260px;margin:0 auto;padding:42px 30px 34px}
.page-small-pupils .ar-opening-split{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:36px;align-items:start}
.page-small-pupils .ar-head-inner{min-width:0}
.page-small-pupils .ar-head .ar-author{margin-top:22px!important}
.page-small-pupils .ar-head>.article-figure{margin:0;width:100%;max-width:472px}
.page-small-pupils .ar-layout{max-width:1260px;margin:0 auto;padding:0 30px 44px;display:grid;grid-template-columns:260px minmax(0,1fr);gap:42px;align-items:start}
.page-small-pupils .ar-body{min-width:0;max-width:850px}
html body.page-small-pupils #main#main#main#main .ar-body .ar-section:not(.ar-references) :is(p,li),.page-small-pupils .ar-head .lead{font-size:18px!important;line-height:1.6!important}
.page-small-pupils .ar-body p{margin:0 0 17px}
.page-small-pupils .ar-body ul{padding-left:24px;margin:0 0 20px}
.page-small-pupils .ar-body li{margin:0 0 10px}
.page-small-pupils .ar-body a:not(.pill){text-decoration:underline!important;text-underline-offset:3px;text-decoration-thickness:1px!important}
.page-small-pupils .ar-section{padding:0!important;margin:0 0 36px!important;scroll-margin-top:116px}
.page-small-pupils .ar-section>:last-child{margin-bottom:0!important}
.page-small-pupils .ar-section h2{margin:0 0 17px!important}
.page-small-pupils .ar-contents a{font-size:18px!important;font-weight:400!important;line-height:1.5}
.page-small-pupils .ar-contents summary{font-size:18px!important;font-weight:500!important}
.page-small-pupils .article-figure{width:min(100%,460px);margin:22px auto 0}
.page-small-pupils .article-figure figcaption{font-size:15px;line-height:1.5;margin-top:10px;color:#344b60}
.page-small-pupils .image-credit{display:block;margin-top:6px;font-size:13px;line-height:1.5}
.page-small-pupils .image-credit a{text-decoration:underline}
.page-small-pupils .media-open{position:relative;display:block;width:100%;border:0;padding:0;border-radius:18px;background:#f6f5ef;overflow:hidden;cursor:zoom-in}
.page-small-pupils .illustration-frame{display:block;overflow:hidden;width:100%;aspect-ratio:3/2;border-radius:18px;background:#f6f5ef}
.page-small-pupils .illustration-frame img{display:block;width:100%;max-width:100%;height:auto;border-radius:18px;object-fit:contain}
.page-small-pupils .media-plus{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;border:1px solid white;border-radius:50%;color:white;background:#142b43;font:24px/1 Arial,sans-serif;pointer-events:none;box-shadow:0 2px 8px #0004}
.page-small-pupils .ar-related{padding:22px;margin:0 0 36px}
.page-small-pupils .ar-related h2{font-size:26px!important;margin:0 0 16px!important}
.page-small-pupils .ar-related a{display:flex;width:fit-content;max-width:100%;margin:0 0 12px;min-height:44px;align-items:center;white-space:normal;text-align:left}
.page-small-pupils .ar-related a:last-child{margin-bottom:0}
html body.page-small-pupils #main#main#main#main .ar-body>.ar-related{padding:16px!important;margin-bottom:28px!important}
.page-small-pupils .ar-references li{font-size:15px!important;line-height:1.55!important;margin-bottom:12px}
.page-small-pupils .local-review{position:relative;padding:9px 20px;text-align:center;background:#142b43;color:#fff;font-size:14px;line-height:1.5}
.page-small-pupils .local-review a{color:white;text-decoration:underline}
.page-small-pupils :is(a,button,summary):focus-visible{outline:3px solid #946614!important;outline-offset:4px}
.article-media-dialog{width:min(1100px,calc(100vw - 28px));max-width:min(1100px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:20px;border:1px solid #c4b48f;border-radius:22px;background:#fcf9f3;color:#142b43;overflow:auto}
.article-media-dialog::backdrop{background:#091729c9}
.article-media-dialog .dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:14px}
.article-media-dialog .dialog-title{margin:0;font-size:20px;font-weight:600}
.article-media-dialog .dialog-close{flex-shrink:0;border:1px solid #c5b58b;border-radius:30px;padding:10px 18px;min-height:44px;background:white;color:#142b43;cursor:pointer;font-size:16px}
.article-media-dialog .dialog-content img{display:block;width:100%;max-height:70dvh;object-fit:contain;border-radius:18px;background:#f6f5ef}
.article-media-dialog .dialog-caption{font-size:15px;line-height:1.5;margin:14px 0 0}
@media(min-width:1060px){.page-small-pupils .ar-contents{position:sticky;top:var(--ar-rail-top,110px);max-height:none!important;overflow:visible!important}.page-small-pupils .ar-contents-links{max-height:none!important;overflow:visible!important}}
@media(max-width:1059px){.page-small-pupils .ar-head{padding:32px 24px}.page-small-pupils .ar-opening-split{display:block}.page-small-pupils .ar-head>.article-figure{margin:24px auto 0;max-width:440px}.page-small-pupils .ar-layout{display:block;padding:0 24px 36px}.page-small-pupils .ar-contents{margin:0 0 30px}.page-small-pupils .ar-body{max-width:none}}
@media(max-width:760px){.page-small-pupils .ar-head{padding:26px 20px}.page-small-pupils .ar-layout{padding:0 20px 30px}.page-small-pupils .ar-section{margin-bottom:32px!important}.page-small-pupils .ar-head>.article-figure{margin-top:22px}.article-media-dialog{padding:14px}.article-media-dialog .dialog-title{font-size:18px}}
@media(max-width:760px){html body.page-small-pupils #main#main#main#main .ar-section h2{font-size:28px!important}}

