/* A format identity follows the content into listings, hubs, and the reading view. */
.ac-format-news{--ac-type:#215a94;--ac-type-soft:#edf5fc;--ac-type-line:#c4d9ed;--ac-type-ink:#183650;}
.ac-format-guide{--ac-type:#694594;--ac-type-soft:#f4effa;--ac-type-line:#daccE8;--ac-type-ink:#38224f;}
.ac-format-tutorial{--ac-type:#08736e;--ac-type-soft:#eaf7f4;--ac-type-line:#bcded8;--ac-type-ink:#154741;}
.ac-format-troubleshooting{--ac-type:#8e590c;--ac-type-soft:#fff6e5;--ac-type-line:#ead4a7;--ac-type-ink:#584015;}
.ac-format-example{--ac-type:#a14e35;--ac-type-soft:#fff1e9;--ac-type-line:#ebcdbe;--ac-type-ink:#603324;}
.ac-format-template{--ac-type:#4d51a0;--ac-type-soft:#f0f1ff;--ac-type-line:#ccceed;--ac-type-ink:#303365;}
.ac-format-reference{--ac-type:#4d6476;--ac-type-soft:#edf2f5;--ac-type-line:#cbd7df;--ac-type-ink:#2c414f;}
.ac-format-tool{--ac-type:#26714e;--ac-type-soft:#edf7ef;--ac-type-line:#c0dfca;--ac-type-ink:#214c34;}
.ac-format-prompt,.ac-prompt{--ac-type:#93416e;--ac-type-soft:#fcf0f7;--ac-type-line:#e6c5d9;--ac-type-ink:#5c2844;}
/* Headers visibly identify the format, without relying on color alone. */
body[class*="ac-format-"] .entry-hero-container-inner,body[class*="ac-format-"] .ac-page-hero{background:var(--ac-type-soft);border-bottom:1px solid var(--ac-type-line);}
body[class*="ac-format-"] .entry-header .entry-title,body[class*="ac-format-"] .ac-page-hero h1{color:var(--ac-type-ink);}
.ac-format-kicker{display:flex;align-items:center;gap:9px;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--ac-type);margin:0 0 16px;}
.ac-format-mark{display:block;width:9px;height:9px;background:var(--ac-type);border-radius:2px;}
.entry-header:has(.ac-format-kicker) .entry-taxonomies{display:none;}
body[class*="ac-format-"] .ac-reading-trail a,body[class*="ac-format-"] .ac-page-hero .ac-eyebrow{color:var(--ac-type);}
body.ac-format-news .entry-hero .entry-title{font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-.025em;font-size:clamp(34px,4.5vw,58px);line-height:1.1;max-width:1050px;}
body.ac-format-news .entry-hero .hero-container.site-container{max-width:1100px;}
body.single-post.ac-format-news:not(:has(.mak-article-body--toc)) .entry-hero .hero-container.site-container,body.single-post.ac-format-example:not(:has(.mak-article-body--toc)) .entry-hero .hero-container.site-container{max-width:1100px;}
body.single-post.ac-format-news:not(:has(.mak-article-body--toc)) .entry-content{max-width:1100px;}
body.ac-format-tutorial .entry-hero-container-inner{border-bottom:4px solid var(--ac-type-line);}
body.ac-format-troubleshooting .entry-hero .entry-title{max-width:950px;font-size:clamp(32px,4vw,50px);}
body.ac-format-example .entry-hero .entry-title{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:clamp(34px,4.5vw,58px);line-height:1.15;}
body.single-post.ac-format-example:not(:has(.mak-article-body--toc)) :is(.entry-hero .hero-container.site-container,.entry-content){max-width:1100px;}
body.ac-format-template .entry-hero-container-inner{background:#292b51;}
body.ac-format-template .entry-header :is(.entry-title,.entry-meta,.entry-meta a,.aboutcodex-reading-time,.ac-format-kicker,.ac-reading-trail,.ac-reading-trail a){color:#eef0ff;}
body.ac-format-template .ac-format-mark{background:#a8aeef;}
body.ac-format-reference .entry-hero .entry-title{font-size:clamp(32px,3.5vw,44px);letter-spacing:-.025em;}
body.ac-format-reference .entry-hero .entry-header{padding-block:26px;}
body.ac-format-tool .entry-hero-container-inner,body.ac-format-tool .ac-page-hero{background:#214c3a;}
body.ac-format-tool .entry-header :is(.entry-title,.entry-meta,.entry-meta a,.aboutcodex-reading-time,.ac-format-kicker,.ac-reading-trail,.ac-reading-trail a),body.ac-format-tool .ac-page-hero :is(h1,.ac-eyebrow,.ac-page-hero__lede){color:#effaf0;}
body.ac-format-tool .ac-format-mark{background:#a9dcb6;}
body.single-ac_resource .entry-header{max-width:900px;margin:0 auto 32px;padding:32px;background:var(--ac-type-soft);border-top:3px solid var(--ac-type);border-radius:6px;}
body.single-ac_resource .entry-header .entry-title{font-size:clamp(30px,3.5vw,44px);line-height:1.15;text-align:left;margin:0;}
body.single-ac_resource.ac-format-tool .entry-header{background:#214c3a;}
body.single-ac_resource.ac-format-template .entry-header{background:#292b51;}
/* News reads as a brief; guides have chapters; tutorials follow an ordered rail. */
.ac-format-story{counter-reset:ac-section;min-width:0;}
.ac-format-intro>p:first-child{font-size:21px;line-height:1.6;margin-top:0;}
.ac-format-section{counter-increment:ac-section;min-width:0;}
.ac-format-section__body>p{font-size:18px;line-height:1.8;max-width:74ch;}
.ac-format-section__body :is(pre,figure){max-width:100%;}
.ac-format-section h2.wp-block-heading{font-size:29px;line-height:1.25;letter-spacing:-.025em;}
.ac-format-story a:not(.wp-element-button){color:var(--ac-type);text-decoration-color:var(--ac-type-line);text-underline-offset:4px;text-decoration-thickness:1px;}
.ac-story--news .ac-format-intro{max-width:940px;padding-left:24px;border-left:3px solid var(--ac-type);margin-bottom:36px;}
.ac-story--news .ac-format-section{display:grid;grid-template-columns:205px minmax(0,1fr);gap:36px;padding:28px 0;border-top:1px solid var(--ac-type-line);}
.ac-story--news .ac-format-section>h2{font:650 18px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0;color:var(--ac-type);}
.ac-story--news .ac-format-section__body>p:first-child{margin-top:0;}
.ac-story--news .ac-format-section__body>p:last-child{margin-bottom:0;}
.ac-story--news .ac-format-section--support{padding:26px;background:var(--ac-type-soft);border:1px solid var(--ac-type-line);border-radius:3px;}
.ac-story--guide .ac-format-section{margin:38px 0 0!important;padding-top:28px;border-top:1px solid var(--ac-type-line);}
.ac-story--guide .ac-format-section h2.wp-block-heading{color:var(--ac-type-ink);margin-top:0;}
.ac-story--guide .ac-format-section h2.wp-block-heading::before{content:'CHAPTER ' counter(ac-section,decimal-leading-zero);display:block;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;color:var(--ac-type);margin-bottom:12px;}
.ac-story--guide .ac-reader-section--closing,.ac-story--guide .ac-working-check{background:var(--ac-type-soft);border-color:var(--ac-type-line);}
.ac-story--tutorial .ac-format-section{position:relative;border-left:2px solid var(--ac-type-line);padding:4px 0 22px 46px;margin:34px 0 0 18px;}
.ac-story--tutorial .ac-format-section>h2{margin-top:0;color:var(--ac-type-ink);}
.ac-story--tutorial .ac-format-section:not(.ac-format-section--support)::before{content:counter(ac-section,decimal-leading-zero);position:absolute;left:-18px;top:0;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--ac-type-soft);border:1px solid var(--ac-type-line);color:var(--ac-type);font:12px ui-monospace,SFMono-Regular,Menlo,monospace;}
.ac-story--tutorial .ac-format-section--support{border:0;border-top:1px solid var(--ac-type-line);padding:24px;margin-left:0;background:var(--ac-type-soft);}
.ac-story--tutorial .ac-format-section--support h2{font-size:22px;}
.ac-story--tutorial .ac-format-section--numbered::before{content:'→';}
.ac-story--guide .ac-format-section--support h2.wp-block-heading::before{content:'FURTHER READING';}
/* Troubleshooting becomes a set of expandable diagnostic sections. */
.ac-story--troubleshooting .ac-format-section{margin:18px 0;border:1px solid var(--ac-type-line);border-radius:8px;background:#fff;overflow:hidden;}
.ac-story--troubleshooting .ac-format-section>summary{cursor:pointer;list-style:none;padding:22px 60px 22px 24px;position:relative;background:var(--ac-type-soft);}
.ac-story--troubleshooting summary::-webkit-details-marker{display:none;}
.ac-story--troubleshooting summary::after{content:'+';position:absolute;right:24px;top:20px;font-size:25px;line-height:1;color:var(--ac-type);}
.ac-story--troubleshooting details[open]>summary::after{content:'−';}
.ac-story--troubleshooting .ac-format-section>summary h2{font-size:23px;color:var(--ac-type-ink);margin:0;}
.ac-story--troubleshooting .ac-format-section__body{padding:2px 24px 12px;}
.ac-story--troubleshooting summary:focus-visible{outline:2px solid var(--ac-type);outline-offset:-4px;}
/* Case studies give images, captions, and evidence space to breathe. */
.ac-story--example .ac-format-section{padding:32px 0;border-top:1px solid var(--ac-type-line);}
.ac-story--example .ac-format-section>h2{font-family:Georgia,'Times New Roman',serif;font-size:34px;color:var(--ac-type-ink);margin-top:0;}
.ac-story--example figure{background:var(--ac-type-soft);padding:14px;border:1px solid var(--ac-type-line);border-radius:6px;margin-block:28px;}
.ac-story--example figure img{width:100%;height:auto;}
.ac-story--example figcaption{color:var(--ac-type);font-size:13px;line-height:1.6;}
/* Templates are workbenches, references are dictionaries, tools are spec sheets. */
.ac-story--template{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.ac-story--template .ac-format-intro,.ac-story--template .ac-format-section--1{grid-column:1/-1;}
.ac-story--template .ac-format-section{padding:24px;background:var(--ac-type-soft);border:1px solid var(--ac-type-line);border-radius:8px;}
.ac-story--template .ac-format-section h2{margin-top:0;color:var(--ac-type-ink);font-size:24px;}
.ac-story--template .wp-block-code{background:#252744;color:#f0f0ff;border:1px solid #444775;border-radius:7px;font-size:14px;}
.ac-story--reference .ac-format-section{display:grid;grid-template-columns:170px minmax(0,1fr);gap:28px;padding:22px 0;border-top:1px solid var(--ac-type-line);}
.ac-story--reference .ac-format-section>h2{font-size:17px;color:var(--ac-type);margin:0;}
.ac-story--reference .ac-format-section__body>p{font-size:16px;line-height:1.7;margin-top:0;}
.ac-story--reference .ac-format-section--support{padding:20px;background:var(--ac-type-soft);}
.ac-story--tool{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
.ac-story--tool .ac-format-intro{grid-column:1/-1;}
.ac-story--tool .ac-format-section{padding:22px;border:1px solid var(--ac-type-line);border-radius:8px;background:var(--ac-type-soft);}
.ac-story--tool .ac-format-section h2{font-size:20px;margin-top:0;color:var(--ac-type-ink);}
.ac-story--tool .ac-format-section__body>p{font-size:15px;line-height:1.7;}
.ac-story--tool :is(.ac-format-section--action,.ac-format-section--support){grid-column:1/-1;}
.ac-story--tool .ac-format-section--action{background:#214c3a;color:#edf9ef;}
.ac-story--tool .ac-format-section--action :is(h2,a){color:#edf9ef;}
.ac-format-section--action a{font-weight:650;}
/* The same format identity appears in every shared content card and author row. */
.ac-list-card[class*="ac-format-"]{border-color:var(--ac-type-line);border-top:3px solid var(--ac-type);}
.ac-list-card[class*="ac-format-"] .ac-badge,.ac-writer-row[class*="ac-format-"] .ac-badge{color:var(--ac-type);background:var(--ac-type-soft);border-color:var(--ac-type-line);}
.ac-list-card.ac-format-news{border-radius:3px;}
.ac-list-card.ac-format-news :is(h2,h3){font-family:Georgia,'Times New Roman',serif;letter-spacing:-.02em;}
.ac-list-card.ac-format-guide{background:linear-gradient(135deg,var(--ac-type-soft),#fff 75%);}
.ac-list-card.ac-format-tutorial{border-top-width:1px;border-left:4px solid var(--ac-type);border-radius:5px;}
.ac-list-card.ac-format-troubleshooting{background:#fffcf5;border-radius:8px;}
.ac-list-card.ac-format-example{border-top:0;border-bottom:4px solid var(--ac-type);}
.ac-list-card.ac-format-template{border-style:dashed;border-top-style:solid;}
.ac-list-card.ac-format-reference{border-top-width:1px;border-radius:3px;background:#f8fafb;}
.ac-list-card.ac-format-tool .ac-resource-facts dt{color:var(--ac-type);}
.ac-writer-row[class*="ac-format-"] .ac-writer-row__open{color:var(--ac-type);border-color:var(--ac-type-line);background:var(--ac-type-soft);}
.ac-next-read .ac-list-card[class*="ac-format-"]{border-top-color:var(--ac-type);}
body[class*="ac-format-"] .ac-archive-heading{border-color:var(--ac-type-line);}
body[class*="ac-format-"] .ac-archive-heading h1{color:var(--ac-type-ink);}
.ac-library--index .ac-list-card[class*="ac-format-"]{border:0;border-bottom:1px solid var(--ac-type-line);border-radius:0;background:transparent;}
.ac-library--index .ac-card-action{color:var(--ac-type);background:var(--ac-type-soft);border-color:var(--ac-type-line);}
/* Article Kit and interactive surfaces borrow their format palette. */
body[class*="ac-format-"] .mak-key-moments{border-color:var(--ac-type-line);border-top-color:var(--ac-type);}
body[class*="ac-format-"] .mak-key-moments__num,body[class*="ac-format-"] .mak-toc__link.is-active{background:var(--ac-type-soft);color:var(--ac-type);border-color:var(--ac-type-line);}
body[class*="ac-format-"] .mak-toc__link.is-active{box-shadow:inset 2px 0 var(--ac-type);}
body[class*="ac-format-"] .mak-toc__card{border-color:var(--ac-type-line);}
body[class*="ac-format-"] .mak-toc__toggle,body[class*="ac-format-"] .mak-toc__link{color:var(--ac-type-ink);}
body[class*="ac-format-"] .ac-page-hero{border-top:3px solid var(--ac-type);}
.ac-prompt{border:1px solid var(--ac-type-line);border-left:4px solid var(--ac-type);background:#fff;}
.ac-prompt h3{color:var(--ac-type-ink);border-color:var(--ac-type-line);}
.ac-prompt .ac-prompt-fields{background:var(--ac-type-soft);}
.ac-prompt button{background:var(--ac-type);border-color:var(--ac-type);}
.ac-prompt pre{background:#3b2336;color:#fff1fa;}
body.ac-format-tool .ac-builder-preview{background:#edf7ef;border-color:#c0dfca;}
@media(max-width:1000px){body[class*="ac-format-"] .mak-toc__card{background:var(--ac-type-soft);}.ac-story--news .ac-format-section{grid-template-columns:170px minmax(0,1fr);gap:26px;}.ac-story--tool{grid-template-columns:1fr;}.ac-story--tool .ac-format-section{grid-column:1;}}
@media(max-width:767px){
.ac-format-intro>p:first-child{font-size:19px;}.ac-format-kicker{font-size:10px;margin-bottom:12px;}.ac-format-section__body>p{font-size:17px;}.ac-format-section h2.wp-block-heading{font-size:26px;}
.ac-story--news .ac-format-section,.ac-story--reference .ac-format-section{display:block;padding:22px 0;}.ac-story--news .ac-format-section>h2,.ac-story--reference .ac-format-section>h2{font-size:20px;margin:0 0 14px;}.ac-story--news .ac-format-section--support,.ac-story--reference .ac-format-section--support{padding:20px;}.ac-story--news .ac-format-intro{padding-left:18px;}
.ac-story--tutorial .ac-format-section{padding-left:30px;margin-left:14px;}.ac-story--tutorial .ac-format-section:not(.ac-format-section--support)::before{width:28px;height:28px;left:-15px;font-size:10px;}.ac-story--tutorial .ac-format-section--support{margin-left:0;padding:20px;}
.ac-story--troubleshooting .ac-format-section>summary{padding:20px 48px 20px 20px;}.ac-story--troubleshooting .ac-format-section>summary h2{font-size:21px;}.ac-story--troubleshooting summary::after{right:18px;}.ac-story--troubleshooting .ac-format-section__body{padding-inline:20px;}
.ac-story--example .ac-format-section>h2{font-size:29px;}.ac-story--example figure{padding:8px;}.ac-story--template{display:block;}.ac-story--template .ac-format-section{padding:20px;margin:20px 0;}.ac-story--reference .ac-format-section__body>p{font-size:16px;}
}
