
/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Variables ── */
.tg-wrap *{box-sizing:border-box;margin:0;padding:0;}
.tg-wrap{
  --gold:       #C9A84C;
  --gold-light: #EDD98A;
  --gold-pale:  #FDF8EC;
  --gold-deep:  #9A7220;
  --dark:       #1C1C1C;
  --navy:       #2D3748;
  --mid:        #606060;
  --light:      #F8F7F4;
  --white:      #FFFFFF;
  --rule:       #E8E4DC;
  --radius:     6px;
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
}

/* ── Hero ── */
.tg-hero{
  background: linear-gradient(135deg,#1a1208 0%,#2c1f00 40%,#1a1208 100%);
  border-radius: 12px;
  padding: 56px 40px 48px;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.tg-hero::before{
  content:'';
  position:absolute;inset:0;
  background: repeating-linear-gradient(
    45deg,
    transparent,transparent 40px,
    rgba(201,168,76,0.04) 40px,rgba(201,168,76,0.04) 41px
  );
}
.tg-hero-badge{
  display:inline-block;
  background: var(--gold);
  color: #1a1208 !important;
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:11px;letter-spacing:3px;
  padding:5px 14px;border-radius:20px;
  margin-bottom:20px;text-transform:uppercase;
}
.tg-hero h1{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:800;font-size:clamp(32px,5vw,54px);line-height:1.05;
  color:#ffffff !important;margin-bottom:16px;letter-spacing:-0.5px;
}
.tg-hero h1 span{color:var(--gold) !important;}
.tg-hero-sub{
  font-family:'Source Serif 4',serif;
  font-style:italic;font-size:16px;
  color:#ffffff !important;
  max-width:540px;margin:0 auto 32px;line-height:1.6;
}
.tg-hero-rule{
  width:60px;height:2px;
  background:var(--gold);margin:0 auto 28px;
}
.tg-hero-meta{
  font-size:12px;color:#dddddd !important;
  letter-spacing:1.5px;text-transform:uppercase;
}

/* ── TOC ── */
.tg-toc{
  background:var(--gold-pale);
  border:1px solid var(--gold-light);
  border-left:4px solid var(--gold);
  border-radius:var(--radius);
  padding:28px 32px;
  margin-bottom:48px;
}
.tg-toc-title{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:13px;letter-spacing:2px;
  color:var(--gold-deep);text-transform:uppercase;
  margin-bottom:16px;
}
.tg-toc-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:6px 24px;
  list-style:none;
}
.tg-toc-grid li a{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;
  color:var(--navy);font-size:14px;font-weight:500;
  padding:5px 0;
  transition:color .2s;
}
.tg-toc-grid li a:hover{color:var(--gold-deep);}
.tg-toc-grid li a .tg-num{
  min-width:24px;height:24px;
  background:var(--gold);color:#1a1208;
  border-radius:50%;
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:11px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.tg-toc-grid li a:hover .tg-num{background:var(--gold-deep);color:var(--white);}

/* ── Jump bar ── */
.tg-jumpbar{
  display:flex;flex-wrap:wrap;gap:8px;
  margin-bottom:48px;
  padding:16px 20px;
  background:var(--dark);
  border-radius:var(--radius);
}
.tg-jumpbar a{
  display:inline-block;
  background:rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.8);
  text-decoration:none;font-size:12px;font-weight:500;
  padding:6px 12px;border-radius:20px;
  border:1px solid rgba(201,168,76,0.2);
  transition:all .2s;
  letter-spacing:0.3px;
}
.tg-jumpbar a:hover{
  background:var(--gold);color:#1a1208;
  border-color:var(--gold);
}

/* ── Chapter header ── */
.tg-chapter{
  margin:56px 0 28px;
  scroll-margin-top:80px;
}
.tg-chapter-inner{
  border-left:4px solid var(--gold);
  padding-left:20px;
}
.tg-chapter-label{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:11px;letter-spacing:3px;
  color:var(--gold);text-transform:uppercase;
  margin-bottom:6px;display:block;
}
.tg-chapter h2{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:800;font-size:clamp(22px,3.5vw,30px);
  color:var(--dark);line-height:1.1;margin-bottom:6px;
}
.tg-chapter-sub{
  font-family:'Source Serif 4',serif;
  font-style:italic;font-size:15px;color:var(--mid);
}
.tg-chapter-rule{
  height:1px;background:linear-gradient(90deg,var(--gold) 0%,var(--gold-light) 40%,transparent 100%);
  margin:16px 0 24px;border:none;
}

/* ── Section headings ── */
.tg-wrap h3{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:19px;letter-spacing:0.3px;
  color:var(--dark);margin:28px 0 10px;
}
.tg-wrap h4{
  font-family:'DM Sans',sans-serif;
  font-weight:600;font-size:14px;
  color:var(--gold-deep);text-transform:uppercase;letter-spacing:1px;
  margin:20px 0 8px;
}

/* ── Body text ── */
.tg-wrap p{
  font-family:'Source Serif 4',serif;
  font-size:16px;line-height:1.75;
  color:var(--navy);margin-bottom:14px;
}

/* ── Lists ── */
.tg-wrap ul,.tg-wrap ol{
  margin:0 0 16px 0;padding:0;list-style:none;
}
.tg-wrap ul li,.tg-wrap ol li{
  font-family:'DM Sans',sans-serif;
  font-size:15px;line-height:1.6;color:var(--navy);
  padding:5px 0 5px 22px;
  position:relative;
  border-bottom:1px solid var(--rule);
}
.tg-wrap ul li:last-child,.tg-wrap ol li:last-child{border-bottom:none;}
.tg-wrap ul li::before{
  content:'';position:absolute;left:0;top:13px;
  width:8px;height:8px;
  background:var(--gold);border-radius:50%;
}
.tg-wrap ol{counter-reset:li;}
.tg-wrap ol li{counter-increment:li;}
.tg-wrap ol li::before{
  content:counter(li);position:absolute;left:0;top:5px;
  width:18px;height:18px;
  background:var(--gold);color:#1a1208;
  border-radius:50%;font-size:10px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  font-family:'Barlow Condensed',sans-serif;
}

/* ── Tables ── */
.tg-table-wrap{
  overflow-x:auto;margin:16px 0 24px;
  border-radius:var(--radius);
  box-shadow:0 1px 6px rgba(0,0,0,0.07);
}
.tg-table-wrap table{
  width:100%;border-collapse:collapse;
  font-family:'DM Sans',sans-serif;font-size:14px;
}
.tg-table-wrap thead tr{background:var(--dark);}
.tg-table-wrap thead th{
  color:var(--white);font-weight:600;font-size:12px;
  letter-spacing:0.8px;text-transform:uppercase;
  padding:12px 14px;text-align:left;
  border:none;
}
.tg-table-wrap thead th:first-child{
  border-left:3px solid var(--gold);
}
.tg-table-wrap tbody tr:nth-child(even){background:var(--gold-pale);}
.tg-table-wrap tbody tr:nth-child(odd){background:var(--white);}
.tg-table-wrap tbody tr:hover{background:rgba(201,168,76,0.12);}
.tg-table-wrap tbody td{
  padding:10px 14px;color:var(--navy);
  border-bottom:1px solid var(--rule);
  vertical-align:top;line-height:1.5;
}
.tg-table-wrap tbody td strong{color:var(--dark);}

/* ── Callout / blockquote ── */
.tg-callout{
  background:var(--gold-pale);
  border-left:4px solid var(--gold);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:18px 22px;margin:24px 0;
  position:relative;
}
.tg-callout::before{
  content:'!';
  position:absolute;left:-14px;top:18px;
  width:26px;height:26px;
  background:var(--gold);color:#1a1208;
  border-radius:50%;
  font-family:'Barlow Condensed',sans-serif;
  font-weight:800;font-size:14px;
  display:flex;align-items:center;justify-content:center;
  line-height:1;text-align:center;padding-top:1px;
}
.tg-callout-title{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:14px;letter-spacing:1px;
  color:var(--gold-deep);text-transform:uppercase;
  margin-bottom:6px;
}
.tg-callout p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;line-height:1.65;
  color:#4A3800;margin:0;
}

/* ── Warning callout ── */
.tg-callout.tg-warn{
  background:#fff8f0;border-left-color:#e67e22;
}
.tg-callout.tg-warn::before{background:#e67e22;}
.tg-callout.tg-warn .tg-callout-title{color:#b45309;}
.tg-callout.tg-warn p{color:#5c3a0a;}

/* ── Pro/con two-col ── */
.tg-proscons{
  display:grid;grid-template-columns:1fr 1fr;
  gap:0;margin:16px 0 24px;
  border:1px solid var(--rule);border-radius:var(--radius);
  overflow:hidden;
}
.tg-proscons-col{padding:0;}
.tg-proscons-col-hd{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:12px;letter-spacing:2px;
  text-transform:uppercase;padding:10px 16px;
}
.tg-proscons-col:first-child .tg-proscons-col-hd{
  background:#1a3a1a;color:#5cb85c;
}
.tg-proscons-col:last-child .tg-proscons-col-hd{
  background:#3a1a1a;color:#e05c5c;
}
.tg-proscons-col ul{margin:0;padding:8px 0;}
.tg-proscons-col ul li{
  font-size:13px;padding:6px 16px 6px 32px;
  border-bottom:1px solid var(--rule);
}
.tg-proscons-col ul li::before{width:6px;height:6px;top:12px;}
.tg-proscons-col:first-child ul li::before{background:#5cb85c;}
.tg-proscons-col:last-child ul li::before{background:#e05c5c;}
.tg-proscons-col ul li:last-child{border-bottom:none;}
@media(max-width:600px){
  .tg-proscons{grid-template-columns:1fr;}
}

/* ── Checklist ── */
.tg-checklist{
  background:var(--light);
  border:1px solid var(--rule);
  border-radius:var(--radius);
  padding:16px 20px;margin:16px 0 24px;
}
.tg-checklist li{
  padding-left:28px;border-bottom-color:transparent;
  font-size:14px;
}
.tg-checklist li::before{
  content:'✓';
  background:none;border-radius:0;
  width:auto;height:auto;
  color:var(--gold);font-weight:700;font-size:13px;
  top:6px;left:4px;
}

/* ── Step list ── */
.tg-steps{list-style:none;margin:0 0 24px;}
.tg-steps li{
  display:flex;gap:14px;align-items:flex-start;
  padding:10px 0;border-bottom:1px solid var(--rule);
}
.tg-steps li:last-child{border-bottom:none;}
.tg-steps li::before{display:none;}
.tg-step-date{
  min-width:130px;
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:13px;
  color:var(--gold-deep);background:var(--gold-pale);
  border:1px solid var(--gold-light);
  border-radius:4px;padding:3px 8px;
  text-align:center;flex-shrink:0;
}
.tg-step-desc{
  font-family:'DM Sans',sans-serif;
  font-size:14px;color:var(--navy);line-height:1.5;
}

/* ── Tip list (bullet points styled differently) ── */
.tg-tips{list-style:none;margin:0 0 24px;padding:0;}
.tg-tips li{
  font-family:'DM Sans',sans-serif;
  font-size:14px;line-height:1.6;color:var(--navy);
  padding:6px 0 6px 22px;
  position:relative;
  border-bottom:1px solid var(--rule);
}
.tg-tips li:last-child{border-bottom:none;}
.tg-tips li::before{
  content:'›';
  position:absolute;left:0;top:5px;
  color:var(--gold);font-weight:700;font-size:16px;
}

/* ── Back to top button ── */
.tg-back-top{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--dark);color:var(--gold);
  text-decoration:none;font-size:13px;font-weight:600;
  font-family:'DM Sans',sans-serif;
  padding:9px 18px;border-radius:20px;
  margin:32px 0 8px;
  transition:background .2s;
  letter-spacing:0.3px;
}
.tg-back-top:hover{background:var(--gold);color:#1a1208;}

/* ── CTA ── */
.tg-cta{
  background:linear-gradient(135deg,#1a1208,#2c1f00);
  border-radius:10px;
  padding:36px 32px;
  text-align:center;
  margin:48px 0;
}
.tg-cta h3{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:800;font-size:24px;color:var(--white);
  margin-bottom:8px;
}
.tg-cta p{
  font-family:'DM Sans',sans-serif;
  font-size:14px;color:rgba(255,255,255,0.90);
  margin-bottom:20px;
}
.tg-btn{
  display:inline-block;
  background:var(--gold);color:#1a1208;
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:15px;letter-spacing:1px;
  text-transform:uppercase;
  text-decoration:none;
  padding:13px 28px;border-radius:6px;
  transition:background .2s,transform .1s;
}
.tg-btn:hover{background:var(--gold-light);transform:translateY(-1px);}

/* ── Final word ── */
.tg-final{
  background:var(--gold-pale);
  border:1px solid var(--gold-light);
  border-top:4px solid var(--gold);
  border-radius:var(--radius);
  padding:32px 36px;margin-top:56px;text-align:center;
}
.tg-final p{
  font-family:'Source Serif 4',serif;
  font-size:17px;color:var(--navy);margin-bottom:12px;
}
.tg-final .tg-final-sign{
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;font-size:18px;color:var(--gold-deep);
  letter-spacing:0.5px;
}
.tg-footer-rule{
  height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);
  border:none;margin:48px 0 16px;
}
.tg-footer-note{
  font-family:'DM Sans',sans-serif;
  font-size:12px;color:var(--mid);text-align:center;
  letter-spacing:1px;text-transform:uppercase;
}

/* ── Responsive ── */
@media(max-width:700px){
  .tg-hero{padding:36px 20px 32px;}
  .tg-toc{padding:20px;}
  .tg-chapter{margin:40px 0 20px;}
  .tg-wrap p,.tg-wrap ul li,.tg-wrap ol li{font-size:15px;}
}