/* =========================================================================
   InfoTrust Guides — front-end styles
   Everything is scoped under .itg so it can't collide with the theme,
   Elementor, or other plugins. No header/footer here (the theme owns those).
   ========================================================================= */

.itg{
  --navy:#1e2b4d; --brand-blue:#0c6dc7;
  --orange:#f26722; --orange-d:#d9571b;
  --blue:#2263cf; --blue-d:#1a53b8; --blue-soft:#e9f0fb;
  --secondary-color:#1e2b4d; --text:#48546a; --muted:#7a8598;
  --line:#e6eaf1; --line-2:#eef1f6;
  --bg-soft:#f5f8fc; --bg-soft2:#eef4fb;
  --badge-bg:#e9f0fb; --badge-text:#33507f;
  --teal1:#0e7f9d;
  --good:#2263cf; --warn:#9aa3b2;
  --radius:14px;
  --shadow:0 1px 2px rgba(24,39,75,.04),0 8px 28px rgba(24,39,75,.06);
  --shadow-sm:0 1px 2px rgba(24,39,75,.05),0 4px 14px rgba(24,39,75,.05);
  --sticky-top:3rem;         /* adjust to clear your theme's sticky header */

  color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.68;
}
.itg *{box-sizing:border-box;}
.itg h1,.itg h2,.itg h3,.itg h4{font-family:'Poppins','Inter',sans-serif; color:var(--secondary-color); line-height:1.2; margin:0;}
.itg a{color:var(--blue); text-decoration:none; font-weight:600;}
.itg a:hover{color:var(--blue-d); text-decoration:underline;}
.itg-body > p{margin:0 0 1.15em;}
.itg img{max-width:100%; height:auto;}

/* reading progress */
.itg-progress{position:fixed; top:0; left:0; height:3px; width:0; background:var(--orange); z-index:9999; transition:width .18s ease;}

/* ---------- Shell / layout ---------- */
.itg-shell{max-width:1300px; margin:0 auto; padding:0 28px; display:grid; grid-template-columns:270px 1fr; gap:5rem; align-items:start;}
.itg-content{padding: 4rem 0 20px; min-width:0;}

/* ---------- Sidebar / TOC ---------- */
.itg-sidebar{position:sticky; top:var(--sticky-top); padding: 4rem 0; align-self:start;}
.itg-eyebrow{font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:0 0 4px 14px;}
.itg-toc{ display: flex; flex-direction: column; gap: .5rem; list-style:none; margin:14px 0 0; padding:0;}
.itg-toc-link{display:flex; gap:13px; align-items:flex-start; padding:11px 14px; color:var(--navy);
  font-weight:600; font-size:14.5px; line-height:1.35; border-left:3px solid transparent;}
.itg-toc-link:hover{background:var(--bg-soft); text-decoration:none !important;}
.itg-toc-link .itg-num{flex:0 0 22px; height:22px; border-radius:50%; background:var(--bg-soft2); color:var(--muted);
  font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; transition:.15s;}
.itg-toc-link.is-active{background:var(--blue-soft); border-left-color:var(--blue); color:var(--blue-d);}
.itg-toc-link.is-active .itg-num{background:var(--blue); color:#fff;}
.itg-toc-link.is-done .itg-num{background:#d6e6d2; color:#3d7a37;}

/* mobile toggle (hidden on desktop) */
.itg-toc-toggle{display:none;}

/* ---------- Article header ---------- */
.itg-badge{display:inline-block; background:var(--badge-bg); color:var(--badge-text); font-size:11.5px; font-weight:700;
  letter-spacing:.11em; text-transform:uppercase; padding:7px 14px; border-radius:999px;}
.itg-pagemeta{font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--blue); margin:0 0 14px;}
.itg-title{font-size:clamp(30px,4vw,44px); font-weight:700; letter-spacing:-.5px; margin:18px 0 16px; margin-bottom: 1rem !important;}
.itg-section-title{font-size:clamp(24px,2.6vw,30px); font-weight:600; letter-spacing:-.3px; margin:6px 0 18px;}
h1.itg-section-title {
margin-bottom: 1rem;
}
.itg-subtitle{font-size:19px; color:var(--muted); max-width:46ch; margin:0 0 26px; line-height:1.5;}

.itg-author{display:flex; align-items:center; gap:13px; margin-bottom:30px;}
.itg-avatar{width:46px; height:46px; flex:0 0 46px; border-radius:50%; background:var(--blue-soft); color:var(--blue-d);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; font-family:'Poppins'; overflow:hidden;}
.itg-avatar img{width:100%; height:100%; object-fit:cover; border-radius:50%; display:block;}
.itg-who{font-size:14px; line-height:1.4;}
.itg-who b{color:var(--secondary-color);}
.itg-who .itg-sub{color:var(--muted);}

.itg-hero{border-radius:18px; overflow:hidden; margin:6px 0 34px; box-shadow:var(--shadow); background:var(--teal1);}
.itg-hero img{display:block; width:100%;}

/* ---------- Body typography ----------
   Baseline: at least 1rem of vertical space between things in the body. */
.itg-body{font-size:17px;}
.itg-body > * + *{margin-top:1rem;}
.itg-body h2{font-size:clamp(24px,2.6vw,30px); font-weight:600; margin:2.25rem 0 1rem; letter-spacing:-.3px;}
.itg-body h3{font-size:20px; font-weight:600; margin:2rem 0 1rem;}
.itg-body ul{margin:1rem 0 1.5rem; padding-left:20px;}
.itg-body li{margin:.5rem 0;}
.itg-body strong,.itg-body b{color:var(--secondary-color);}
.itg-section-head{margin:40px 0 16px;}
.itg-section-head h2{margin-bottom:8px; font-size: 1.5rem;}
.itg-section-head p{color:var(--muted); margin:0;}
.itg-inside{margin-top:44px;}

/* ---------- Overview cards ---------- */
.itg-guide-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:14px 0 8px;}
.itg-guide-card{display:block; border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:#fff;
  transition:.16s; color:inherit; box-shadow:var(--shadow-sm);}
.itg-guide-card:hover{text-decoration:none !important; border-color:#c9d6ec; transform:translateY(-2px); box-shadow:var(--shadow);}
.itg-gc-top{display:flex; align-items:center; gap:11px; margin-bottom:10px;}
.itg-gc-num{width:30px; height:30px; border-radius:8px; background:var(--blue-soft); color:var(--blue-d);
  font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; font-family:'Poppins';}
.itg-guide-card h3{margin:0; font-size:17px;}
.itg-guide-card p{font-size:14px; color:var(--text); margin:0 0 12px;}
.itg-go{font-size:13.5px; color:var(--blue); font-weight:600;}

/* ---------- Tables ---------- */
.itg-table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); margin:20px 0 26px; box-shadow:var(--shadow-sm);}
.itg-table{border-collapse:collapse; width:100%; font-size:14.5px; min-width:520px;}
.itg-table thead th{background:var(--bg-soft); text-align:left; font-family:'Poppins'; font-weight:600; color:var(--secondary-color);
  padding:14px 18px; font-size:13.5px; border-bottom:1px solid var(--line);}
.itg-table tbody td{padding:14px 18px; border-bottom:1px solid var(--line-2); vertical-align:top;}
.itg-table tbody tr:last-child td{border-bottom:none;}
.itg-table tbody tr:hover{background:#fafcff;}
.itg-rowhead{font-weight:700; color:var(--secondary-color); white-space:nowrap;}
.itg-pick{color:var(--blue); font-weight:700;}
.itg-rate{font-weight:600;}
.itg-rate.is-strong{color:var(--good); font-weight:700;}
.itg-rate.is-adequate{color:var(--text); font-weight:600;}
.itg-rate.is-limited{color:var(--warn); font-weight:600; font-style:italic;}
.itg-sc-tools{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin:6px 0 4px;}
.itg-sc-count{font-size:14px; font-weight:600; color:var(--blue-d);}
.itg-sc-note{font-size:15px;}
.itg-switch{display:inline-flex; align-items:center; gap:9px; font-size:14px; color:var(--text); cursor:pointer; user-select:none;}
.itg-switch input{position:absolute; opacity:0;}
.itg-track{width:40px; height:22px; border-radius:999px; background:#d4dbe6; position:relative; transition:.18s;}
.itg-track::after{content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.18s;}
.itg-switch input:checked + .itg-track{background:var(--blue);}
.itg-switch input:checked + .itg-track::after{transform:translateX(18px);}
.itg-plain{margin:1rem 0 1.5rem; padding-left:20px;}
.itg-plain li{margin:.5rem 0;}

/* ---------- Rubric cards ---------- */
.itg-rubric-card{border:1px solid var(--line); border-radius:16px; padding:28px 30px; margin:1.5rem 0; box-shadow:var(--shadow-sm); background:#fff;}
.itg-rc-head{display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:1.25rem;}
.itg-rc-head h3{margin:0; font-size:20px;}
.itg-weight{flex:0 0 auto; background:var(--bg-soft); border:1px solid var(--line); color:var(--muted); font-size:12px; font-weight:600;
  padding:5px 12px; border-radius:999px; white-space:nowrap;}
.itg-rc-label{font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 0 .5rem;}
.itg-rc-label.is-strong{color:var(--blue);}
.itg-rc-body p{margin:0 0 1rem;}
/* clear separation between the "what we look at" intro and the comparison columns */
.itg-rc-cols{display:grid; grid-template-columns:1fr 1fr; gap:1.5rem 2.25rem; margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--line-2);}
.itg-rc-cols p{font-size:14.5px; margin:0;}
.itg-rc-cols .itg-rc-label{margin:0 0 .5rem;}
.itg-ask{margin-top:1.5rem; background:var(--bg-soft); border-radius:10px; padding:16px 18px; font-size:14px; font-style:italic; color:var(--text);}
.itg-ask b{font-style:normal; color:var(--secondary-color);}

/* ---------- Optional prose components (callouts, boxes, steps, cards) ----------
   Available for section content authored as Custom HTML / patterns. ---------- */
.itg-callout{border:1px solid var(--line); background:var(--bg-soft); border-radius:var(--radius); padding:22px 24px; margin:24px 0;}
.itg-callout.split{display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;}
.itg-callout .itg-label{font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:12px;}
.itg-callout .itg-box-note{padding:13px 0; border-top:1px solid var(--line); font-size:14.5px;}
.itg-callout .itg-box-note:first-of-type{border-top:none; padding-top:0;}
.itg-disclosure{background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); padding:18px 22px; font-style:italic; font-size:14.5px; color:var(--muted); margin:22px 0;}
.itg-tool-box,.itg-cta-box{background:linear-gradient(160deg,#eaf2fd,#f4f8fe 60%,#fdf3ee); border:1px solid #dce7f7; border-radius:18px; padding:38px 30px; text-align:center; margin:14px 0 30px;}
.itg-tool-box .itg-label{font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--blue); margin-bottom:10px;}
.itg-tool-box h3,.itg-cta-box h3{font-size:25px; margin:0 auto 12px; color:var(--secondary-color);}
.itg-tool-box p,.itg-cta-box p{max-width:52ch; margin:0 auto 22px; color:var(--text);}
.itg-btn{display:inline-block; border-radius:999px; font-weight:600; font-family:'Poppins'; cursor:pointer; border:none; padding:13px 28px; font-size:15px; transition:.15s; text-decoration: none !important; }
.itg-btn-orange{ color:#fff !important; box-shadow:0 6px 16px rgba(242,103,34,.28);}
.itg-btn-orange:hover{background:var(--orange-d); color:#fff; text-decoration:none; transform:translateY(-1px);}
.itg-btn-white{background:#fff; color:var(--navy); box-shadow:var(--shadow-sm); border:1px solid var(--line);}
.itg-btn-white:hover{color:var(--blue-d); text-decoration:none; transform:translateY(-1px); box-shadow:var(--shadow);}
.itg-steps{list-style:none; margin:16px 0 22px; padding:0;}
.itg-steps li{display:flex; align-items:center; gap:14px; padding:9px 0; font-size:16px; color:var(--secondary-color); font-weight:500;}
.itg-steps .itg-n{flex:0 0 30px; height:30px; border-radius:50%; background:var(--blue); color:#fff; font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center; font-family:'Poppins';}
.itg-feature-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:16px 0 26px;}
.itg-feature-card{border:1px solid var(--line); border-radius:var(--radius); padding:24px 22px; box-shadow:var(--shadow-sm); background:#fff;}
.itg-feature-card h4{font-size:17px; margin:0 0 12px; color:var(--secondary-color);}
.itg-feature-card p{font-size:14px; margin:0; color:var(--text);}

/* ---------- Prev / Next ---------- */
.itg-pager{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:48px 0 20px; border-top:1px solid var(--line); padding-top:30px;}
.itg-pager a{display:flex; flex-direction:column; gap:4px; padding:18px 22px; border:1px solid var(--line); border-radius:var(--radius);
  color:var(--secondary-color); transition:.16s; box-shadow:var(--shadow-sm); background:#fff;}
.itg-pager a:hover{text-decoration:none; border-color:#c9d6ec; transform:translateY(-2px); box-shadow:var(--shadow);}
.itg-pager a.itg-next{text-align:right; align-items:flex-end;}
.itg-pager .itg-dir{font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted);}
.itg-pager .itg-lbl{font-family:'Poppins'; font-weight:600; font-size:17px; color:var(--secondary-color);}
.itg-pager a:hover .itg-lbl{color:var(--blue-d);}
.itg-pager .itg-spacer{visibility:hidden;}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .itg-shell{grid-template-columns:1fr; gap:0; padding:0 20px;}
  .itg-sidebar{position:static; padding:0; border-bottom:1px solid var(--line); margin:0 -20px;}
  .itg-toc-toggle{display:flex; align-items:center; justify-content:space-between; width:100%; padding:16px 20px; cursor:pointer;
    font-family:'Poppins'; font-weight:600; color:var(--navy); background:var(--bg-soft); border:none; font-size:16px;}
  .itg-caret{transition:.2s;}
  .itg-sidebar.is-open .itg-caret{transform:rotate(180deg);}
  .itg-toc-wrap{display:none; padding:10px 14px 18px;}
  .itg-sidebar.is-open .itg-toc-wrap{display:block;}
  .itg-eyebrow{display:none;}
  .itg-content{padding:26px 0;}
  .itg-guide-grid,.itg-feature-grid,.itg-rc-cols,.itg-pager{grid-template-columns:1fr;}
}
