/* GestPoint Core: WordPress / Elementor / Astra adjustments. The design itself is site.css. */

/* Elementor wraps each block in extra boxes. On the live site they are made "invisible" (display:contents)
   so sticky menus, full-width sections and grids behave exactly like the approved design.
   Inside the Elementor editor they stay visible so each block can be selected. */
body.gp-site:not(.elementor-editor-active) .elementor-location-header,body.gp-site:not(.elementor-editor-active) .elementor-location-footer,body.gp-site:not(.elementor-editor-active) .gp-contents,body.gp-site:not(.elementor-editor-active) .gp-contents > .e-con-inner,body.gp-site:not(.elementor-editor-active) .gp-html,body.gp-site:not(.elementor-editor-active) .gp-html > .elementor-widget-container,body.gp-site:not(.elementor-editor-active) .elementor-widget[data-widget_type^="gp_"],body.gp-site:not(.elementor-editor-active) .elementor-widget[data-widget_type^="gp_"] > .elementor-widget-container,body.gp-site:not(.elementor-editor-active) .gp-sec{ display: contents; }
/* In the editor each section stays a visible block so it can be selected, moved or deleted */
body.gp-site.elementor-editor-active .elementor-widget[data-widget_type^="gp_"]{ position: relative; }
body.gp-site.elementor-editor-active .gp-sec{ display: block; }

/* The page wrapper (<main>) is a normal block, not a flex container */
body.gp-site .e-con.gp-page{ display: block; padding: 0; margin: 0; max-width: none; width: 100%; --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
body.gp-site .gp-page > .e-con-inner{ display: block; max-width: none; padding: 0; }
body.gp-site .elementor-widget.gp-html{ margin: 0; }

/* Editor only: label each block so the team can find sections easily */
body.gp-site.elementor-editor-active .gp-html{ position: relative; outline: 1px dashed rgba(0,169,239,.35); outline-offset: -1px; }
body.gp-site.elementor-editor-active .gp-page-code{ min-height: 40px; background: repeating-linear-gradient(45deg,#F4F7FB,#F4F7FB 10px,#E7F6FE 10px,#E7F6FE 20px); }
body.gp-site.elementor-editor-active .gp-page-code::before{ content: "Page code (styles and scripts for this page). Leave as is."; display: block; padding: 10px 14px; font: 600 12px/1.4 Manrope, sans-serif; color: #1F2A5E; }

/* Astra: full-width canvas, no theme spacing */
body.gp-site.gp-site #content .ast-container,body.gp-site.gp-site .site-content > .ast-container{ max-width: 100%; padding: 0; display: block; }
body.gp-site.gp-site #primary,body.gp-site.gp-site .site-main{ margin: 0; padding: 0; }
body.gp-site.gp-site{ background: #fff; }
body.gp-site.gp-site a:focus{ outline-offset: 2px; }
body.gp-site.gp-site .entry-content > :last-child{ margin-bottom: 0; }

/* Prototype-only controls are never shown on the live site */
body.gp-site .proto-note,body.gp-site .proto-pick,body.gp-site [data-proto-only]{ display: none !important; }

/* ---------- Single article (Theme Builder → Single Post) ---------- */
body.gp-site .gp-ar-wrap{ display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; padding: clamp(40px, 6vw, 80px) var(--gp-gutter); }
body.gp-site .gp-ar-wrap > .elementor-element{ min-width: 0; }
body.gp-site .gp-toc-wrap{ position: sticky; top: 110px; align-self: start; display: grid; gap: 12px; }
body.gp-site .gp-toc-wrap > b{ font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gp-muted); }
body.gp-site #gpToc{ display: grid; gap: 4px; border-left: 2px solid var(--gp-line); }
body.gp-site #gpToc a{ padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; font-weight: 600; color: var(--gp-muted); transition: .3s; }
body.gp-site #gpToc a.on,body.gp-site #gpToc a:hover{ border-color: var(--gp-sky); color: var(--gp-navy); }
@media (max-width: 900px) { body.gp-site .gp-ar-wrap{ grid-template-columns: 1fr; } body.gp-site .gp-toc-wrap{ position: static; } }

body.gp-site .gp-article-body{ font-size: 17px; line-height: 1.8; color: #3A4366; }
body.gp-site .gp-article-body h2{ font-family: var(--gp-display); font-size: clamp(28px, 2.8vw, 36px); line-height: 1.15; color: var(--gp-navy); margin: 1.6em 0 .5em; scroll-margin-top: 110px; font-weight: 600; }
body.gp-site .gp-article-body h2:first-child{ margin-top: 0; }
body.gp-site .gp-article-body h3{ font-size: 19px; color: var(--gp-navy); margin: 1.2em 0 .4em; }
body.gp-site .gp-article-body p{ margin: 0 0 1em; }
body.gp-site .gp-article-body ul,body.gp-site .gp-article-body ol{ margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: 6px; }
body.gp-site .gp-article-body li::marker{ color: var(--gp-sky); }
body.gp-site .gp-article-body a{ color: var(--gp-sky-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body.gp-site .gp-article-body table{ width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
body.gp-site .gp-article-body th,body.gp-site .gp-article-body td{ border: 1px solid var(--gp-line); padding: 10px 12px; text-align: left; vertical-align: top; }
body.gp-site .gp-article-body th{ background: var(--gp-mist); color: var(--gp-navy); }
body.gp-site .gp-article-body details.faq-item{ border: 1px solid var(--gp-line); border-radius: 16px; padding: 14px 18px; margin: 0 0 10px; background: #fff; }
body.gp-site .gp-article-body details.faq-item summary{ cursor: pointer; font-weight: 800; color: var(--gp-navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
body.gp-site .gp-article-body details.faq-item summary::after{ content: "+"; color: var(--gp-sky-ink); font-size: 20px; line-height: 1; }
body.gp-site .gp-article-body details.faq-item[open] summary::after{ content: "×"; }
body.gp-site .gp-article-body details.faq-item p{ margin: 10px 0 0; }

body.gp-site .gp-ar-cta{ display: grid; gap: 16px; margin-top: 32px; }
body.gp-site .gp-ar-advisor{ display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: var(--gp-navy); color: #fff; border-radius: 24px; padding: 22px 26px; }
body.gp-site .gp-ar-advisor b{ font-family: var(--gp-display); font-size: 26px; font-weight: 600; }
body.gp-site .gp-ar-advisor p{ color: rgba(255,255,255,.78); margin: 4px 0 0; font-size: 15px; }
body.gp-site .gp-ar-hero .container,body.gp-site .gp-ar-related .container{ width: 100%; }

/* ---- Article styles from the prototype (hero, cards) ---- */

body.gp-site .crumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:13px;font-weight:700;color:rgba(255,255,255,.75)}body.gp-site .crumbs a:hover{color:#fff}
body.gp-site .ar-hero{position:relative;color:#fff;padding-block:clamp(56px,8vw,120px) clamp(48px,6vw,80px);overflow:hidden}
body.gp-site .ar-bg{position:absolute;inset:0}body.gp-site .ar-bg img{width:100%;height:100%;object-fit:cover;filter:saturate(.8)}
body.gp-site .ar-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,16,44,.94),rgba(12,19,50,.78) 60%,rgba(12,19,50,.5))}
body.gp-site .ar-hero-in{position:relative;display:grid;gap:18px;max-width:900px}
body.gp-site .meta{display:flex;flex-wrap:wrap;gap:10px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--gp-sky-ink)}
body.gp-site .meta.light{color:var(--gp-sky-light)}body.gp-site .meta span+span{color:rgba(255,255,255,.7)}
body.gp-site .ar-h1{font-family:var(--gp-display);font-size:clamp(38px,5vw,66px);line-height:1.04;font-weight:600}
body.gp-site .ar-ex{font-size:clamp(16px,1.3vw,19px);color:rgba(255,255,255,.82);max-width:60ch}
body.gp-site .ar-by{display:flex;gap:12px;align-items:center}
body.gp-site .ar-by b{display:block}body.gp-site .ar-by small{color:rgba(255,255,255,.65);font-size:13px}
body.gp-site .ar-by .avatar{background:rgba(255,255,255,.15);color:#fff}
body.gp-site .ar-wrap{display:grid;grid-template-columns:240px minmax(0,720px);gap:clamp(28px,5vw,72px);justify-content:center;padding-block:clamp(40px,6vw,80px)}
@media (max-width:900px){body.gp-site .ar-wrap{grid-template-columns:1fr}body.gp-site .ar-toc{position:static!important}}
body.gp-site .ar-toc{position:sticky;top:110px;align-self:start;display:grid;gap:12px}
body.gp-site .ar-toc>b,body.gp-site .ar-share b{font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gp-muted)}
body.gp-site .ar-toc nav{display:grid;gap:4px;border-left:2px solid var(--gp-line)}
body.gp-site .ar-toc nav a{padding:6px 0 6px 14px;margin-left:-2px;border-left:2px solid transparent;font-size:14px;font-weight:600;color:var(--gp-muted);transition:.3s}
body.gp-site .ar-toc nav a.on,body.gp-site .ar-toc nav a:hover{border-color:var(--gp-sky);color:var(--gp-navy)}
body.gp-site .ar-share{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}
body.gp-site .ar-share b{width:100%}
body.gp-site .ar-share a,body.gp-site .ar-share button{width:40px;height:40px;border-radius:50%;border:1px solid var(--gp-line);display:grid;place-items:center;color:var(--gp-navy);background:#fff;cursor:pointer}
body.gp-site .ar-share svg{width:16px;height:16px}
body.gp-site .ar-body{display:grid;gap:28px;font-size:17px;line-height:1.8}
body.gp-site .ar-body h2{font-family:var(--gp-display);font-size:clamp(28px,2.8vw,36px);line-height:1.15;scroll-margin-top:110px}
body.gp-site .ar-body p{color:#3A4366}
body.gp-site .ar-body section{display:grid;gap:12px}
body.gp-site .ar-take{background:var(--gp-navy);color:#fff;border-radius:24px;padding:26px;display:grid;gap:12px}
body.gp-site .ar-take b{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gp-sky-light)}
body.gp-site .ar-take ul{margin:0;padding:0;list-style:none;display:grid;gap:10px;font-size:16px}
body.gp-site .ar-take li{display:flex;gap:10px}body.gp-site .ar-take svg{width:20px;height:20px;color:var(--gp-sky-light);flex:none;margin-top:4px}
body.gp-site .ar-cta{display:grid;grid-template-columns:140px 1fr;gap:18px;align-items:center;border:1px solid var(--gp-line);border-radius:24px;padding:16px;font-size:15px}
body.gp-site .ar-cta .photo{aspect-ratio:1;border-radius:16px}
body.gp-site .ar-cta b{font-family:var(--gp-display);font-size:26px;display:block}
body.gp-site .ar-cta p{color:var(--gp-muted);margin:4px 0 10px}
@media (max-width:520px){body.gp-site .ar-cta{grid-template-columns:1fr}}
body.gp-site .rs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
@media (max-width:980px){body.gp-site .rs-grid{grid-template-columns:1fr 1fr}}@media (max-width:620px){body.gp-site .rs-grid{grid-template-columns:1fr}}
body.gp-site .rcard{display:grid;gap:14px;align-content:start}
body.gp-site .rcard .photo{aspect-ratio:3/2;border-radius:20px}body.gp-site .rcard:hover .photo img{transform:scale(1.06)}
body.gp-site .rcard h3{font-family:var(--gp-display);font-size:24px;line-height:1.12}
body.gp-site .rcard p{font-size:14.5px;color:var(--gp-muted)}

body.gp-site .ar-body ul,body.gp-site .ar-body ol{margin:0;padding-left:22px;display:grid;gap:8px;color:#3A4366}
body.gp-site .ar-body li::marker{color:var(--gp-sky-ink);font-weight:800}
body.gp-site .ar-body a{color:var(--gp-sky-ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
body.gp-site .ar-body a.btn{color:#fff;text-decoration:none}
body.gp-site .ar-body strong{color:var(--gp-ink)}
body.gp-site .ar-body table{width:100%;border-collapse:collapse;font-size:15px;display:block;overflow-x:auto}
body.gp-site .ar-body th,body.gp-site .ar-body td{border-bottom:1px solid var(--gp-line);padding:10px 12px;text-align:left;vertical-align:top}
body.gp-site .ar-body th{background:var(--gp-mist);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gp-muted)}
body.gp-site .ar-faq .faqs{margin-top:6px}
body.gp-site .ar-src{font-size:14px;color:var(--gp-muted)}
body.gp-site .ar-disc{font-size:13px;color:var(--gp-muted);font-style:italic;border-top:1px solid var(--gp-line);padding-top:14px}

body.gp-site .ar-take ul{padding-left:0}body.gp-site .ar-take li{color:#fff;list-style:none}
