/* The blog archive uses the theme footer and its configured links. */
body footer:has(.aj-footer-explore){background:#0c1421;color:#f7f9ff}
body footer:has(.aj-footer-explore) .wrap{width:90%;max-width:78rem;box-sizing:border-box;margin:auto;padding:3rem 0;display:grid;grid-template-columns:2fr 1fr 1fr;align-items:start;gap:1rem 2rem}
body footer:has(.aj-footer-explore) .wrap>strong{grid-column:1;grid-row:1;font-size:1.7rem}
body footer .aj-footer-explore{grid-column:2;grid-row:1;display:grid}
body footer:has(.aj-footer-explore) .wrap>div:first-of-type{grid-column:3;grid-row:1}
body footer:has(.aj-footer-explore) .wrap ul{display:grid;gap:0;margin:0;padding:0;list-style:none}
body footer:has(.aj-footer-explore) a{display:inline-flex;align-items:center;min-height:44px;color:#f7f9ff;text-underline-offset:.2em}
body footer:has(.aj-footer-explore) .wrap>a{grid-column:1/-1;border-top:1px solid #556174}
body footer:has(.aj-footer-explore) :focus-visible{outline:3px solid #76ceff;outline-offset:2px}
@media(max-width:700px){
body footer:has(.aj-footer-explore) .wrap{grid-template-columns:1fr 1fr;padding:2rem 0;gap:1rem}
body footer:has(.aj-footer-explore) .wrap>strong{grid-column:1/-1}
body footer .aj-footer-explore{grid-column:1;grid-row:2}
body footer:has(.aj-footer-explore) .wrap>div:first-of-type{grid-column:2;grid-row:2}
}

body{--as-ink:#16182a;--as-link:#233fba;--as-card:#e9e9f7;--as-heading:system-ui,-apple-system,"Segoe UI",sans-serif;background:white;color:var(--as-ink);font-family:var(--as-heading)}
body header.mast{background:#fff;color:#15172b;border-bottom:1px solid #e4e6ef}
header.mast nav a,header.mast summary{color:#15172b;font-weight:600}
header.mast .desktop a{text-decoration:none}header.mast nav a:hover{text-decoration:underline}
#main :where(h1,h2,h3){font-family:var(--as-heading);line-height:1.16;letter-spacing:-.025em}
#main>.wrap>.intro,.story>h1{background:linear-gradient(110deg,#e2e5ff,#f5eaf1);border-radius:1rem;padding:clamp(1.25rem,4vw,4rem);color:#15172b}
#main>.wrap>.intro h1,.story>h1{font-size:clamp(2rem,3.4vw,3.25rem)}
.story{max-width:49rem;margin-inline:auto}.story>.byline{font-size:.9rem}.story>figure img{display:block;width:auto;max-width:100%;max-height:22rem;margin-inline:auto;object-fit:contain}
.story>aside,.story .post-navigation{background:#f0f2fc;border-radius:1rem;padding:1.4rem}.story .entry{line-height:1.67}
#main .wrap .card{background:var(--as-card);border:0;border-radius:1rem;overflow:hidden;color:var(--as-ink)}
#main .wrap .card :is(h2,h3) a{color:inherit;text-decoration:none}
#main .wrap .card a:hover{text-decoration:underline}
#main .topics a{display:inline-flex;align-items:center;min-height:44px;padding:.4rem 1rem;border:1px solid var(--as-link);border-radius:.7rem;background:white;color:var(--as-link);text-decoration:none}
body.post-type-archive-artsians_tool .intro{display:flow-root}
body.post-type-archive-artsians_tool .directory-banner{display:block;width:min(100%,46rem);height:auto;margin:2rem auto 0}
body.post-type-archive-artsians_tool #main section{margin-block:clamp(2.5rem,6vw,6rem)}
body.post-type-archive-artsians_tool #main .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
body.post-type-archive-artsians_tool .card{position:relative;padding:clamp(1rem,2vw,2rem) clamp(1rem,2vw,2rem) 4rem;min-height:13rem}
body.post-type-archive-artsians_tool .card h3 a:after{content:"→";position:absolute;bottom:1rem;right:1rem;background:white;color:var(--as-link);border-radius:50%;padding:.6rem .85rem}
body.post-type-archive-artsians_tool .card h3 a:before{content:"";position:absolute;inset:0}
body.post-type-archive-artsians_tool .card:focus-within{outline:3px solid var(--as-link)}
@media(prefers-reduced-motion:no-preference){#main .wrap .card{transition:transform .18s ease,box-shadow .18s ease}@media(hover:hover){#main .wrap .card:hover{transform:translateY(-3px);box-shadow:0 .6rem 1.5rem #18255717}}}
@media(max-width:900px){body.post-type-archive-artsians_tool #main .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.post-type-archive-artsians_tool #main .grid{grid-template-columns:1fr}.story>h1{padding:1.2rem}.story>figure{margin-inline:0}}

.aj-home-button{display:inline-flex;align-items:center;min-height:44px;border-radius:2rem;background:#173caa;color:white!important;padding:.45rem 1.4rem;font-weight:650;text-decoration:none}
.aj-feature-tool{display:grid;grid-template-columns:1.35fr 1fr;align-items:center;gap:2rem;padding:clamp(1.5rem,4vw,4rem);border-radius:1.2rem;background:linear-gradient(120deg,#e6e6fa,#f3e8f6)}
.aj-example{padding:2rem;background:white;border-radius:1rem}.aj-example strong{font-size:1.45rem}
.home .wrap .card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.single-post #main .story>h1{max-width:none;border-radius:0;margin-bottom:0;padding-bottom:1rem}
.single-post #main .story>.byline{margin-top:0;padding:0 clamp(1.25rem,4vw,4rem) 1.6rem;background:linear-gradient(110deg,#e2e5ff,#f5eaf1)}
.single-post .comment-form-comment label{display:block}.single-post .comment-form-comment textarea{width:100%;box-sizing:border-box}
@media(max-width:700px){.aj-feature-tool{grid-template-columns:1fr}}

body .aj-ribbon{display:flex;align-items:center;justify-content:center;gap:clamp(.75rem,4vw,4rem);padding:.65rem 1rem;text-align:center;font-weight:700;background:linear-gradient(100deg,#911eb1,#000096);color:white}
.aj-ribbon a,.aj-bottom a{display:inline-flex;align-items:center;min-height:42px;border-radius:99px;padding:.45rem 1.25rem;background:#ffc322;color:#10103e;text-decoration:none}
body .mast .bar{max-width:100rem;min-height:4.6rem;padding-block:.55rem;justify-content:flex-start;gap:clamp(1rem,4vw,4rem)}
body .mast nav{margin-left:auto}.mast .brand img,.mast .custom-logo-link img{max-width:12rem;height:auto}
.aj-report{color:#181923;background:white}.aj-report-head{background:linear-gradient(110deg,#cddafe,#fae8e4);padding:clamp(2rem,4vw,4rem) 5%}
.aj-report-head>div{margin:auto;max-width:52rem}.aj-report-head nav,.aj-report-head p{font-size:.9rem}
.aj-report-head h1{font-size:clamp(2.15rem,3.6vw,4rem);line-height:1.12;margin:1.4rem 0}
.aj-report-grid{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(0,3fr) minmax(12rem,1.15fr);gap:clamp(1.25rem,3vw,3rem);max-width:100rem;width:90%;margin:2.5rem auto 5rem}
.aj-report-body{min-width:0}.aj-report-body .entry{font-size:1.1rem;line-height:1.65}.aj-report-body .entry img,.aj-resources img{max-width:100%;height:auto}
.aj-author,.aj-resources{align-self:start;font-size:.95rem;line-height:1.5}.aj-author strong,.aj-resources strong{display:block;border-bottom:1px solid #ccc;padding-bottom:.5rem}.aj-resources figure{margin:0 0 1.5rem}
.aj-report-body>aside,.aj-report-body .post-navigation{padding:1.4rem;background:#eff3ff;border-radius:1rem;margin-block:2rem}
.aj-bottom{background:linear-gradient(#000096,#000 85%);text-align:center;color:white;padding:clamp(3rem,6vw,6rem) 1rem}
.aj-bottom h2{color:white;margin:0 0 1rem}.aj-bottom a{background:#1345d7;color:white}
body footer:has(.aj-footer-explore){background:#000}
body.home #main .intro,body.single-artsians_tool #main .story>h1{background:#000096;color:white}
body.home #main .intro :is(h1,p,.kicker){color:white}body.home #main .intro .aj-home-button{background:white;color:#102b86!important}
@media(max-width:950px){.aj-report-grid{display:flex;flex-direction:column}.aj-report-body{width:100%;order:0}.aj-author{order:1}.aj-resources{order:2}.aj-resources figure{max-width:18rem}}
@media(max-width:450px){.aj-ribbon{font-size:.8rem}.aj-ribbon a{padding:.3rem .65rem}}

/* Keep the working input surface immediately below the page title. */
body.single-artsians_tool #main .aj-calculator{width:min(92%,70rem);max-width:none;margin:1.5rem auto 4rem}
body.single-artsians_tool #main .aj-calculator>h1{padding:clamp(1rem,3vw,2.5rem) 0 .5rem;margin:0;background:none;color:#141526;font-size:clamp(2rem,4vw,3.2rem)}
.aj-calculator .artsians-tool{margin-block:1rem;padding:clamp(1rem,3vw,2rem);background:#f3f4fd;border-radius:1rem}
.aj-calculator .at-interface{background:white;border-radius:.8rem;padding:clamp(.75rem,2vw,1.5rem)}
.aj-calculator .at-interface button[type=submit],.aj-feature-tool a.aj-home-button{background:#b7360e;color:#fff;border-radius:.6rem;font-weight:700}
.aj-calculator .at-interface :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.aj-calculator .entry details{margin-block:.75rem}.aj-calculator .entry summary{cursor:pointer}
.aj-tool-icon{display:inline-block;font-size:1.35rem;color:#505774}
body.post-type-archive-artsians_tool #main>.wrap>.intro{padding:clamp(1.5rem,4vw,4rem) 0 1rem;background:none;border:0}
body.post-type-archive-artsians_tool #main .aj-feature-tool{margin-block:1rem 3rem}
body.post-type-archive-artsians_tool .topics{display:flex;justify-content:center;flex-wrap:wrap;gap:.65rem}
.aj-calculator :focus-visible,.aj-feature-tool :focus-visible{outline:3px solid #2655d9;outline-offset:3px}
