/* Extranet Systems interactive tools.
   All rules are scoped under #xt so nothing leaks into the site theme, and
   theme utility classes (Bootstrap .card/.container etc.) cannot restyle the
   tool. Palette and type are the site's own: Sora, teal #3a9f9f, #111820. */
#xt {
  --teal: #3a9f9f;
  --teal-soft: #258b9f;
  --dark: #111820;
  --tint: #f7f9fb;
  --tint-2: #e9f5f5;
  --amber: #f6ad55;
  --ink: #1a1d20;
  --ink-soft: #414951;
  --line: #d3e7eb;
  font-family: "Raleway", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}
#xt * { box-sizing: border-box; }
#xt a { color: var(--teal); }
#xt .xt-wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }
#xt section { padding: 56px 0; border: 0; margin: 0; }
#xt h1, #xt h2, #xt h3 { font-family: "Urbanist", "Sora", sans-serif; color: var(--ink); margin: 0; }
#xt h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 14px; }
#xt p { margin: 0; }

/* hero */
#xt .xt-hero { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); padding: 60px 0 48px; }
#xt .xt-hero .xt-wrap { display: grid; gap: 40px; grid-template-columns: 1.25fr 1fr; align-items: center; }
#xt .xt-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; max-width: 21ch; }
#xt .xt-hero img { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 4/3; }
#xt .xt-lead { color: var(--ink-soft); max-width: 60ch; margin-top: 18px; font-size: 1.08rem; }
#xt .xt-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#xt .xt-pill { border: 1px solid var(--line); background: #fff; border-radius: 100px; padding: 7px 16px; font-size: .88rem; color: var(--ink-soft); }

/* cards */
#xt .xt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
#xt .xt-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; display: flex; flex-direction: column; }
#xt .xt-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
#xt .xt-card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 18px; }
#xt .xt-card a.go { display: inline-block; margin-top: auto; align-self: flex-start; background: var(--teal); color: #fff; text-decoration: none; padding: 11px 26px; border-radius: 100px; font-weight: 600; font-size: .95rem; }
#xt .xt-card a.go:hover { background: var(--teal-soft); }
#xt .xt-soft { background: var(--tint); }

/* quiz */
#xt .quiz { max-width: 760px; margin-inline: auto; }
#xt .q-progress { height: 8px; background: var(--tint-2); border-radius: 100px; overflow: hidden; margin-bottom: 28px; }
#xt .q-progress i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 100px; transition: width .3s; }
#xt .q-step { display: none; }
#xt .q-step.xt-active { display: block; }
#xt .q-step .domain { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
#xt .q-step h3 { font-size: 1.35rem; margin: 10px 0 22px; }
#xt .q-opt { display: block; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
#xt .q-opt:hover { border-color: var(--teal); background: var(--tint); }
#xt .q-opt b { display: block; font-size: 1rem; }
#xt .q-opt span { color: var(--ink-soft); font-size: .9rem; }
#xt .q-nav { display: flex; justify-content: space-between; margin-top: 10px; }
#xt .q-back { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font: inherit; }

/* results + gate */
#xt .score-wrap { text-align: center; padding: 12px 0 4px; }
#xt .score-ring { width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), var(--tint-2) 0); }
#xt .score-ring i { width: 132px; height: 132px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; }
#xt .score-ring b { font-family: "Urbanist", "Sora", sans-serif; font-size: 2.4rem; }
#xt .score-label { font-family: "Urbanist", "Sora", sans-serif; font-size: 1.3rem; }
#xt .score-label small { display: block; color: var(--ink-soft); font-family: "Raleway", "Inter", sans-serif; font-size: .95rem; margin-top: 6px; }
#xt .bars { max-width: 560px; margin: 26px auto 0; text-align: left; }
#xt .bar-row { margin-bottom: 14px; }
#xt .bar-row label { font-size: .9rem; font-weight: 600; display: flex; justify-content: space-between; }
#xt .bar { height: 9px; background: var(--tint-2); border-radius: 100px; overflow: hidden; margin-top: 5px; }
#xt .bar i { display: block; height: 100%; background: var(--teal); border-radius: 100px; }
#xt .bar.warn i { background: var(--amber); }

#xt .gate { background: var(--tint); border: 1px solid var(--line); border-radius: 20px; padding: 32px; max-width: 640px; margin: 34px auto 0; }
#xt .gate h3 { margin-bottom: 6px; }
#xt .gate p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
#xt .gate form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
#xt .gate input, #xt .gate select { font: inherit; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; width: 100%; background: #fff; }
#xt .gate .full { grid-column: 1 / -1; }
#xt .gate .consent { display: flex; gap: 9px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
#xt .gate .consent input { width: auto; margin-top: 4px; }
#xt .gate button { grid-column: 1 / -1; font: inherit; font-weight: 700; background: var(--teal); color: #fff; border: 0; border-radius: 100px; padding: 14px; cursor: pointer; font-size: 1rem; }
#xt .gate button:hover { background: var(--teal-soft); }
#xt .gate .err { color: #c0392b; font-size: .88rem; grid-column: 1 / -1; display: none; }

#xt .report { display: none; }
#xt .report.xt-show { display: block; }
#xt .rec { border-left: 4px solid var(--teal); background: var(--tint); border-radius: 0 14px 14px 0; padding: 18px 22px; margin-bottom: 14px; }
#xt .rec.warn { border-left-color: var(--amber); }
#xt .rec b { font-family: "Urbanist", "Sora", sans-serif; display: block; margin-bottom: 4px; }
#xt .rec p { font-size: .93rem; color: var(--ink-soft); }

/* cta band */
#xt .xt-cta { background: var(--teal); color: #fff; border-radius: 20px; padding: 44px 36px; text-align: center; }
#xt .xt-cta h2 { color: #fff; }
#xt .xt-cta p { color: #e9f5f5; max-width: 56ch; margin: 8px auto 22px; }
#xt .xt-cta a { display: inline-block; background: var(--dark); color: #fff; text-decoration: none; padding: 14px 34px; border-radius: 100px; font-weight: 700; margin: 4px 8px; }
#xt .xt-cta a.ghost { background: transparent; border: 2px solid rgba(255,255,255,.35); }

/* article prose (insights). Tool pages place every element explicitly, which
   is why the base rules zero the margins; long-form articles need a reading
   rhythm instead, so everything inside .art gets it back. */
#xt .art { line-height: 1.75; }
#xt .art > :first-child { margin-top: 0; }
#xt .art p { margin: 0 0 1.2em; color: var(--ink-soft); }
#xt .art > p:first-of-type { font-size: 1.12rem; }
#xt .art h2 { margin: 1.8em 0 .6em; font-weight: 600; }
#xt .art h3 { margin: 1.5em 0 .5em; font-size: 1.2rem; font-weight: 600; }
#xt .art ul, #xt .art ol { margin: 0 0 1.2em; padding-left: 1.5em; color: var(--ink-soft); }
#xt .art li { margin: .4em 0; }
#xt .art li::marker { color: var(--teal); font-weight: 700; }
#xt .art a { text-decoration: underline; text-underline-offset: 3px; }
#xt .art strong { color: var(--ink); }
#xt .art blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--teal); background: var(--tint); border-radius: 0 12px 12px 0; }
#xt .art blockquote p:last-child { margin-bottom: 0; }
#xt .art table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95em; }
#xt .art th, #xt .art td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
#xt .art th { background: var(--tint-2); font-family: "Urbanist", "Sora", sans-serif; color: var(--ink); }
#xt .art img { max-width: 100%; border-radius: 14px; }

/* article page branding: the hero banner overlaps into the body so the two
   bands read as one page, and the accents echo the site's teal/amber pair */
#xt .art-hero { background: linear-gradient(180deg, #fff 0%, var(--tint-2) 100%); padding-bottom: 0; }
#xt .art-hero svg { margin-bottom: -64px; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(17, 24, 32, .12); }
#xt .art-body { padding-top: 118px; }
#xt .art-crumbs { display: flex; gap: 10px; align-items: center; font-family: "Urbanist", "Sora", sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
#xt .art-crumbs a { color: var(--teal); text-decoration: none; }
#xt .art-crumbs a:hover { text-decoration: underline; }
#xt .art-crumbs .sep { color: var(--amber); }
#xt .art-crumbs span:last-child { color: var(--ink-soft); }
#xt .art-byline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }
#xt .art-byline .dot { color: var(--amber); font-weight: 700; }
#xt .art h2 { position: relative; padding-bottom: 12px; }
#xt .art h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--amber)); }
#xt .art-brief { background: var(--tint-2); border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0; padding: 16px 22px; margin: 0 0 1.8em; }
#xt .art-brief p { margin: 0; font-size: 1.02rem; }
#xt .art-faq { background: var(--tint); border: 1px solid var(--line); border-radius: 20px; padding: 30px 34px; margin-top: 2.4em; }
#xt .art-faq h2 { margin-top: 0; }
#xt .art-faq h3 { color: var(--teal-soft); }
#xt .art-related h2 { text-align: center; margin-bottom: 28px; }

@media (max-width: 820px) {
  #xt .xt-hero .xt-wrap { grid-template-columns: 1fr; }
  #xt .xt-hero img { aspect-ratio: 16/9; }
  #xt .gate form { grid-template-columns: 1fr; }
  #xt .art-hero svg { margin-bottom: -30px; }
  #xt .art-body { padding-top: 76px; }
}
