/* AGL post template v1 (Nov 2026). Restyles single posts (single.php) only: every selector is
   scoped to .post-header or .post-content_container, which only posts print. Loaded on every
   page because Barba swaps pages without reloading the head. Same approach as the Essential
   Auto post restyle (Nov 2): one CSS layer, no template rebuild. */

:root{--ap-ink:#1a1a1a;--ap-text:#33373d;--ap-muted:#5f6673;--ap-line:#e3e7ee;--ap-tint:#f6f8f5;--ap-green:#86ca69;--ap-link:#2f7a1c;--ap-chip:#eef6ea}

/* hero band */
.post-header{background:var(--ap-tint)!important;border-bottom:1px solid var(--ap-line)}
.post-header .post-header-wrap{max-width:1360px;margin:0 auto;padding:56px 32px 64px;gap:48px;align-items:center;box-sizing:border-box;width:100%}
.post-header .post-header-left,.post-header .post-header-right{width:auto;flex:1 1 0;min-width:0}
.post-header .post-header-left{display:flex;flex-direction:column;gap:16px}
.post-header .post-cat a{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ap-link);background:var(--ap-chip);padding:5px 12px;border-radius:999px;text-decoration:none}
.post-header h1{font-size:clamp(36px,3.4vw,52px);line-height:1.08;letter-spacing:-.01em;color:var(--ap-ink);margin:0}
.post-header .post-date{font-size:14px;color:var(--ap-muted)}
.post-header .featured-image-banner{height:auto!important;margin:0}
.post-header .featured-image-banner img{width:100%;height:auto!important;aspect-ratio:16/9;object-fit:cover;border-radius:14px;display:block}

/* three columns: contents, article, quote form */
.post-header{margin-bottom:0!important}
.post-header+.news,.post-header~.news{margin-top:0!important;padding-top:0!important}
.news .news__wrap,.news .news__content{width:100%}
.post-content_container{max-width:1360px;margin:0 auto;padding:56px 32px 24px;box-sizing:border-box;gap:40px;align-items:flex-start}
.post-content_container .news-left-sidebar{flex:0 0 210px;width:210px!important;position:sticky;top:110px}
.post-content_container .news-middle-content{flex:1 1 auto;min-width:0;max-width:700px;width:auto!important}
.post-content_container .news-right-sidebar{flex:0 0 320px;width:320px!important;margin-left:auto}

/* contents list */
.post-content_container .bd_toc_container{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
.post-content_container .bd_toc_header_title,.post-content_container .bd_toc_header{font-size:14px!important;font-weight:700!important;letter-spacing:0!important;color:var(--ap-ink)!important;padding:0 0 12px!important}
.post-content_container .bd_toc_content{border-left:2px solid var(--ap-line);padding-left:14px!important}
.post-content_container .bd_toc_content a,.post-content_container .bd_toc_content li{font-size:14px!important;line-height:1.45!important;color:var(--ap-muted)!important}
.post-content_container .bd_toc_content li{margin:0 0 10px!important}
.post-content_container .bd_toc_content a:hover,.post-content_container .bd_toc_content .active>a{color:var(--ap-ink)!important}

/* article */
.post-content_container .news-middle-content{color:var(--ap-text)}
.post-content_container .news-middle-content p,.post-content_container .news-middle-content li{font-size:17px!important;line-height:1.75!important;color:var(--ap-text)}
.post-content_container .news-middle-content>p{margin:0 0 22px}
.post-content_container .news-middle-content>p.agl-updated{display:block!important;width:fit-content!important;max-width:100%;font-size:13px!important;line-height:1.4!important;font-weight:600;color:var(--ap-link)!important;background:var(--ap-chip);padding:5px 12px;border-radius:999px;margin:0 0 20px}
.post-content_container .news-middle-content>p.agl-updated+p,.post-content_container .news-middle-content>p:first-child:not(.agl-updated){font-size:19px!important;line-height:1.7!important;color:var(--ap-ink)}
.post-content_container .news-middle-content h2{font-size:34px!important;line-height:1.15!important;letter-spacing:-.005em;color:var(--ap-ink)!important;margin:52px 0 16px!important}
.post-content_container .news-middle-content h3{font-size:21px!important;line-height:1.35!important;color:var(--ap-ink)!important;margin:34px 0 10px!important}
.post-content_container .news-middle-content h2+h3{margin-top:18px!important}
.post-content_container .news-middle-content a{color:var(--ap-link)!important;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.post-content_container .news-middle-content a:hover{color:var(--ap-ink)!important}
.post-content_container .news-middle-content ul,.post-content_container .news-middle-content ol{margin:0 0 22px;padding-left:24px}
.post-content_container .news-middle-content li{margin:0 0 8px}
.post-content_container .news-middle-content img{border-radius:12px;height:auto;max-width:100%}

/* tables */
.post-content_container .news-middle-content .wp-block-table{margin:8px 0 24px;overflow-x:auto}
.post-content_container .news-middle-content table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--ap-line);border-radius:12px;overflow:hidden;font-size:15px}
.post-content_container .news-middle-content th,.post-content_container .news-middle-content td{border:0!important;border-bottom:1px solid var(--ap-line)!important;padding:12px 14px!important;text-align:left;vertical-align:top;font-size:15px!important;line-height:1.5!important;color:var(--ap-text)}
.post-content_container .news-middle-content thead th{background:var(--ap-tint);color:var(--ap-ink);font-weight:700}
.post-content_container .news-middle-content tr:last-child td{border-bottom:0!important}
.post-content_container .news-middle-content td+td,.post-content_container .news-middle-content th+th{border-left:1px solid var(--ap-line)!important}

/* FAQ (Yoast block) */
.post-content_container .schema-faq{margin:8px 0 24px}
.post-content_container .schema-faq-section{border-top:1px solid var(--ap-line);padding:18px 0}
.post-content_container .schema-faq-section:last-child{border-bottom:1px solid var(--ap-line)}
.post-content_container .schema-faq-question{display:block;font-size:18px;line-height:1.4;font-weight:700;color:var(--ap-ink);margin:0 0 6px}
.post-content_container .schema-faq-answer{margin:0!important}

/* quote form card and share */
.post-content_container .news-right-sidebar .sharethis-inline-share-buttons{margin-bottom:16px}
.post-content_container .side-contact{background:#fff!important;border:1px solid var(--ap-line);border-top:3px solid var(--ap-green);border-radius:14px;padding:24px!important;box-shadow:none!important;text-align:left!important}
.post-content_container .side-contact .title{font-size:24px!important;line-height:1.15;font-weight:800;color:var(--ap-ink);text-align:left!important;margin:0 0 6px}
.post-content_container .side-contact .description{font-size:14px!important;line-height:1.55;color:var(--ap-muted);text-align:left!important;margin:0 0 18px}
.post-content_container .side-contact .form__inputs{display:block!important;margin:0!important}
.post-content_container .side-contact .form__input{width:100%!important;max-width:none!important;margin:0 0 14px!important;padding:0!important;display:block!important}
.post-content_container .side-contact .form__label{font-size:12px!important;font-weight:700;letter-spacing:.04em;color:var(--ap-ink);margin:0 0 6px!important}
.post-content_container .side-contact .wpcf7-form-control-wrap{display:block!important;width:100%!important}
.post-content_container .side-contact input.wpcf7-form-control,.post-content_container .side-contact select{width:100%!important;height:46px;font-size:15px!important;border:1px solid #cfd5df!important;border-radius:8px!important;background:#fff!important;color:var(--ap-ink);padding:0 14px!important;margin:0!important;box-sizing:border-box}
.post-content_container .side-contact input.wpcf7-form-control:focus,.post-content_container .side-contact select:focus{border-color:var(--ap-link)!important;outline:none}
.post-content_container .side-contact .form__select{height:46px}
.post-content_container .side-contact .form__select-icon{height:46px;width:46px}
.post-content_container .side-contact .form__bottom{margin-top:6px}
.post-content_container .side-contact .wpcf7-submit{width:100%!important}

/* tablet: contents list hidden, form below the article */
@media (max-width:1100px){
.post-content_container{flex-wrap:wrap;gap:32px}
.post-content_container .news-left-sidebar{display:none}
.post-content_container .news-middle-content,.post-content_container .news-right-sidebar{flex:1 1 100%;width:100%!important;max-width:720px;margin:0 auto;position:static}
}
@media (max-width:991px){
.post-header .post-header-wrap{flex-direction:column;align-items:stretch;gap:28px}
}

/* phone */
@media (max-width:767px){
.post-header .post-header-wrap{padding:28px 20px 32px;gap:20px}
.post-header h1{font-size:34px}
.post-content_container{padding:28px 20px 16px}
.post-content_container .news-middle-content p,.post-content_container .news-middle-content li{font-size:16.5px!important;line-height:1.72!important}
.post-content_container .news-middle-content>p.agl-updated+p,.post-content_container .news-middle-content>p:first-child:not(.agl-updated){font-size:18px!important}
.post-content_container .news-middle-content h2{font-size:28px!important;margin:42px 0 14px!important}
.post-content_container .news-middle-content h3{font-size:19px!important;margin:28px 0 8px!important}
.post-content_container .news-middle-content th,.post-content_container .news-middle-content td{font-size:14px!important;padding:10px!important}
}
