/* PROMISE Insights template — reusable, no-code article system.
   Loads only on the Insights hub and its article children (see promise_is_insights_page()
   in functions.php). Reuses global .subnav/.reveal/.eyebrow/.btn-light/.tlink from style.css
   instead of redefining them, so nothing here leaks into the shared header/footer.
   Article bodies are ordinary block-editor content (see promise_insights_single_content()),
   so selectors below target the natural output of core blocks, not hand-authored markup. */

.iwrap{max-width:820px;margin:0 auto;padding:0 24px}
.iwrap a{color:var(--mid)}
.iwrap a:hover{text-decoration:underline}

/* hero (PHP-generated from post fields) */
.ihero{position:relative;background:var(--green);color:#fff;overflow:hidden;padding:132px 0 58px}
.ihero:before{content:"";position:absolute;inset:0;
background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
background-size:46px 46px;opacity:.5}
.ihero:after{content:"";position:absolute;right:-120px;top:-120px;width:460px;height:460px;
border-radius:50%;background:radial-gradient(circle,var(--acc),transparent 68%);opacity:.55}
.ihero .ghost{position:absolute;right:-40px;bottom:-70px;width:340px;height:340px;opacity:.09;z-index:1}
.ihero .iwrap{position:relative;z-index:2}
.crumb{font-size:13px;color:#bfe0cd;margin-bottom:20px;letter-spacing:.01em}
.crumb a{color:#bfe0cd}
.ihero .eyebrow{color:#9fe0ba}
.ihero h1{font-size:40px;line-height:1.14;font-weight:700;margin:14px 0 18px;max-width:14ch;color:#fff}
.ihero .stand{font-size:19px;color:#eaf4ee;font-weight:400;line-height:1.55;max-width:60ch;margin:0}
.ihero .rt{margin-top:22px;font-size:13px;color:#bfe0cd}
@media(max-width:640px){.ihero h1{font-size:30px}.ihero .stand{font-size:17px}}

/* article body — the block editor's natural output, read as one 720px column.
   (Sections are no longer hand-wrapped per H2; scroll-margin on the heading
   is kept for potential deep-linking even though the sub-nav itself is gone.) */
article{max-width:720px;margin:0 auto;padding:16px 24px 8px}
article > *:first-child{margin-top:0}
article h2{font-size:27px;line-height:1.2;color:var(--green);font-weight:700;margin:38px 0 14px;scroll-margin-top:90px}
article h3{font-family:'Montserrat',sans-serif;font-size:20px;color:var(--green);font-weight:700;margin:24px 0 10px}
article > p,article > ul,article > ol{margin:0 0 16px}

ul.checks{list-style:none;margin:6px 0 20px;padding:0}
ul.checks li{position:relative;padding-left:32px;margin-bottom:12px}
ul.checks li:before{content:"";position:absolute;left:0;top:3px;width:20px;height:20px;
background:var(--tint);border-radius:5px;
-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
background-color:var(--green)}
ul.checks li strong{color:var(--green)}

/* core Table block, or a Table block tagged with the "tbl" custom CSS class */
article .wp-block-table table,table.tbl{width:100%;border-collapse:collapse;margin:6px 0 22px;font-size:15px}
article .wp-block-table th,table.tbl th{background:var(--green);color:#fff;text-align:left;padding:11px 13px;font-weight:600;
font-family:'Montserrat',sans-serif;font-size:14px}
article .wp-block-table td,table.tbl td{padding:11px 13px;border-bottom:1px solid var(--line);vertical-align:top}
article .wp-block-table tr td:first-child,table.tbl tr td:first-child{font-weight:600;color:var(--green)}
article .wp-block-table tr:nth-child(even) td,table.tbl tr:nth-child(even) td{background:#fafcfb}

/* a Group block tagged with the "callout" custom CSS class */
.callout{background:var(--tint);border-left:4px solid var(--green);border-radius:0 8px 8px 0;
padding:16px 20px;margin:8px 0 22px;font-size:16px}
.callout .lab{display:block;font-family:'Montserrat',sans-serif;font-weight:700;font-size:12px;
letter-spacing:.1em;text-transform:uppercase;color:var(--green);margin-bottom:6px}
.callout>*:last-child{margin-bottom:0}

/* a Group block tagged with the "iband" custom CSS class — solid green full-bleed
   band, breaking out of the 820px article column via viewport-relative margins
   regardless of nesting depth. No inner wrapper required: padding alone keeps the
   text column at the same ~820px reading width on wide viewports. */
.iband{position:relative;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
margin-top:34px;margin-bottom:34px;background:var(--green);color:#fff;overflow:hidden;
padding:40px max(24px,calc(50vw - 410px))}
.iband:before{content:"";position:absolute;inset:0;
background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:44px 44px;opacity:.4}
.iband>*{position:relative;z-index:2}
.iband .eyebrow{color:#9fe0ba}
.iband h2,.iband h3{color:#fff;margin-top:8px}
.iband p{color:#eaf4ee}
.iband a{color:#fff;text-decoration:underline}

/* Rank Math FAQ block, styled and made collapsible to match the site's FAQ
   accordions elsewhere (toggle behaviour added in theme.js) */
#rank-math-faq{margin:38px 0 8px}
#rank-math-faq .rank-math-list{list-style:none;margin:10px 0 0;padding:0}
#rank-math-faq .rank-math-list-item{border-bottom:1px solid var(--line)}
#rank-math-faq .rank-math-question{list-style:none;cursor:pointer;padding:18px 40px 18px 0;margin:0;position:relative;
font-family:'Montserrat',sans-serif;font-weight:600;font-size:17px;color:var(--black)}
#rank-math-faq .rank-math-question:after{content:"+";position:absolute;right:6px;top:15px;font-size:24px;font-weight:400;
color:var(--green);line-height:1}
#rank-math-faq .rank-math-list-item.is-open .rank-math-question:after{content:"\2212"}
#rank-math-faq .rank-math-answer{display:none;margin:0 0 18px;color:var(--grey)}
#rank-math-faq .rank-math-answer p{margin:0}
#rank-math-faq .rank-math-list-item.is-open .rank-math-answer{display:block}

/* related (auto-pulled by topic category) */
.related{background:var(--paper);border-radius:10px;padding:22px 24px;margin:26px 0}
.related .eyebrow{color:var(--mid)}
.related ul{margin:10px 0 0;padding-left:0;list-style:none}
.related li{margin:8px 0}

/* references — a Group block tagged with the "refs" custom CSS class */
.refs{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}
.refs h3{color:var(--grey);font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin-top:0}
.refs ol{color:var(--grey);font-size:13.5px;line-height:1.6;padding-left:20px;margin:10px 0 0}
.refs li{margin-bottom:8px}
.inote{color:var(--grey);font-size:13.5px;margin-top:8px}

/* closing CTA band (fixed template chrome) */
.icta{background:var(--green);color:#fff;text-align:center;padding:52px 24px;margin-top:36px;position:relative;overflow:hidden}
.icta:after{content:"";position:absolute;left:-100px;bottom:-120px;width:360px;height:360px;border-radius:50%;
background:radial-gradient(circle,var(--acc),transparent 68%);opacity:.5}
.icta h2{color:#fff;position:relative;z-index:2;margin:0 0 8px;font-size:26px}
.icta p{color:#dbeee3;position:relative;z-index:2;margin:0 0 22px}

/* hub article grid — auto-populated from published Articles-category posts */
.igrid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin:36px 0 60px}
.icard{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px;display:flex;flex-direction:column}
.icard h3{font-size:19px;line-height:1.3;color:var(--green);margin:8px 0 10px;font-family:'Montserrat',sans-serif;font-weight:700}
.icard p{color:var(--grey);font-size:15px;margin:0 0 16px;flex:1}
@media(max-width:900px){.igrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.igrid{grid-template-columns:1fr}}

/* topic-filter/sort toolbar — hidden until insights-hub.js confirms every
   piece it needs is present and wires it up (progressive enhancement, same
   pattern as html.js-reveal in style.css/theme.js); with no JS the toolbar
   never appears and the grid above renders every card, unfiltered. */
.itools{display:none;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.itools.is-active{display:flex}
.itools.is-active + .igrid{margin-top:24px}
@media(max-width:640px){.itools{flex-direction:column;align-items:flex-start;gap:14px}}

.ichips{display:flex;flex-wrap:wrap;gap:8px}
.ichip{font-family:'Montserrat',sans-serif;font-weight:600;font-size:12px;color:var(--mid);background:var(--tint);
padding:7px 14px;border-radius:20px;border:1.5px solid transparent;cursor:pointer;transition:.2s}
.ichip:hover{background:#dfeee5}
.ichip.active{background:var(--green);color:#fff}
.ichip:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.isort{display:flex;align-items:center;gap:8px}
.isort label{font-family:'Montserrat',sans-serif;font-weight:600;font-size:12px;color:var(--grey)}
.isort-select{font-family:'Inter',sans-serif;font-size:13px;color:var(--green);background:#fff;
border:1.5px solid var(--line);border-radius:20px;padding:7px 30px 7px 14px;cursor:pointer}
.isort-select:focus-visible{outline:2px solid var(--green);outline-offset:2px}

.iloadmore-wrap{display:none;justify-content:center;margin:-20px 0 40px}
.iloadmore-wrap.is-active{display:flex}
.iloadmore{font-family:'Montserrat',sans-serif;font-weight:600;font-size:14px;color:var(--green);
background:#fff;border:1.5px solid var(--green);border-radius:3px;padding:12px 30px;cursor:pointer;transition:.2s}
.iloadmore:hover{background:var(--tint)}
.iloadmore:focus-visible{outline:2px solid var(--green);outline-offset:2px}
