 /* ================= Base / Amrut style ================= */
  *{box-sizing:border-box;margin:0;padding:0}
  html,body{min-height:100%}
  body{
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 17px;           /* Amrut base size */
    line-height: 1.65;
    background:#ffffff;
    color:#1f2937;
    padding:16px;
  }
  .container{max-width:980px;margin:0 auto}

  /* ================= Header: blue bg & white font ================= */
  .header{
    margin:0 0 20px;
    background:#132D51;        /* Amrut navy */
    color:#fff;
    border:1px solid #0f2340;  /* subtle edge */
    border-radius:8px;
    padding:16px 18px;
  }
  .header h1{
    font-size: 2rem;           /* readable but compact */
    font-weight: 800;
    letter-spacing:.2px;
  }
  .header p{
    margin-top:4px;
    color:#dbeafe;             /* soft-blue text on navy */
    font-size: .98rem;
  }

  /* ================= Simple Timeline Nav ================= */
  .timeline-nav{display:flex;justify-content:center;align-items:center;gap:10px;margin:10px 0 18px}
  .nav-circle{
    appearance:none;border:1px solid #d1d5db;background:#f9fafb;color:#111827;
    width:72px;height:72px;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;
    font-weight:700;cursor:pointer;font-size:.85rem
  }
  .nav-circle.active{background:#111827;color:#fff;border-color:#111827}
  .nav-circle span:last-child{font-size:.72rem;opacity:.85}
  .nav-arrow{width:22px;height:22px;border-radius:50%;background:#e5e7eb;display:grid;place-items:center;color:#6b7280;font-weight:700}

  /* ================= Mini Article Card ================= */
  .version-card{display:none;border:1px solid #e5e7eb;border-radius:10px}
  .version-card.active{display:block}
  .version-header{
    padding:14px;border-bottom:1px solid #e5e7eb;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between
  }
  .version-title{display:flex;flex-direction:column}
  .version-number{font-size:1.5rem;font-weight:800;color:#111827}
  .version-details{display:flex;gap:12px;font-size:.95rem;color:#374151;flex-wrap:wrap}
  .version-content{padding:16px}
  .section{margin:14px 0}
  .section h3{font-size:1.08rem;margin-bottom:8px;border-bottom:1px solid #e5e7eb;padding-bottom:4px;color:#111827}

  .intro-text{
    background:#f3f4f6;border-left:3px solid #111827;padding:12px;border-radius:6px;
    color:#253047;
  }

  .quick-facts ul, .features ul{
    list-style:disc;padding-left:18px;
    display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px
  }
  .quick-facts li, .features li{
    background:#fff;padding:8px 10px;border-radius:8px;border:1px solid #eef2f7;
    color:#1f2937;font-weight:600
  }

  .comparison-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:12px;margin-top:10px}
  .comparison-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px;margin-top:8px}
  .comparison-item{border:1px solid #f3f4f6;border-radius:6px;padding:8px;background:#fff}
  .accountant-feeling{border:1px dashed #f59e0b;border-radius:8px;padding:12px;margin-top:12px;background:#fffbeb}
  .accountant-feeling h4{margin-bottom:6px;font-size:1rem;color:#92400e}
  .accountant-quote{font-style:italic;color:#78350f}

  /* Buttons */
  .btns{display:flex;gap:8px}
  .btn{
    appearance:none;border:1px solid #d1d5db;background:#f9fafb;color:#111827;padding:6px 12px;border-radius:6px;cursor:pointer;font-weight:700
  }
  .btn.primary{background:#111827;color:#fff;border-color:#111827}
  .btn:hover{filter:brightness(0.98)}
  .btn:focus-visible{outline:3px solid #2563eb;outline-offset:2px}

  /* Mobile tweaks */
  @media (max-width:640px){
    .nav-circle{width:64px;height:64px}
    .version-details{flex-direction:column}
  }

  /* ================= PRINT: only content, deep black ================= */
  /* 1) Show ONLY the active mini-article and hide everything else around it */
  @media print{
    /* Hide entire page, then reveal the content block only */
    body *{ visibility: hidden !important; color-adjust:exact; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    #tally-mini, #tally-mini *{ visibility: visible !important; }
    /* If a specific article is open, show just that */
    #tally-mini .version-card{ display:none !important; }
    #tally-mini .version-card.active{ display:block !important; }
    /* Remove chrome */
    #tally-mini .header, #tally-mini .timeline-nav{ display:none !important; }
    /* Ink-friendly */
    #tally-mini{ position:absolute; left:0; top:0; width:100%; }
    #tally-mini, #tally-mini *{ color:#000 !important; }
    .intro-text, .comparison-box, .accountant-feeling{ background:#fff !important; border-color:#000 !important; }
    .section h3{ border-color:#000 !important; }
    .btns{ display:none !important; }
    @page{ size:A4; margin:12mm; }
  }

  /* 2) During in-browser print preview triggered by button */
  body.printing *{ visibility:hidden !important }
  body.printing #tally-mini, 
  body.printing #tally-mini *{ visibility:visible !important }
  body.printing #tally-mini .header,
  body.printing #tally-mini .timeline-nav{ display:none !important }
  
  /* Force header text to white */
.header {
  background: #132D51 !important; /* Amrut navy */
  color: #fff !important;
  border-radius: 8px;
}

.header h1,
.header p {
  color: #fff !important;
}

/* Optional: tweak subtext shade if you want a lighter contrast */
.header p {
  opacity: 0.85;
}

  
.header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3; /* tighter heading */
  margin-bottom: 4px;
}

.header p {
  font-size: .98rem;
  line-height: 1.4; /* more compact subtitle */
  opacity: 0.85;
}
  
/* 1) Rhythm */
.section { margin: 16px 0; }                 /* was 18px */
.section h3 { margin-bottom: 8px; }          /* was 10px */
.intro-text { padding: 12px 14px; }          /* a bit tighter */

/* 2) Pills */
.quick-facts li, .features li {
  border-color: #e6eaf0;                     /* slightly lighter */
  padding: 9px 10px;                          /* a touch slimmer */
  border-radius: 10px;                        /* a tad softer */
}

/* 3) Comparison heading weight */
.comparison-box > strong {
  display: block;
  font-weight: 800;
  color: #0b5394;
  margin-bottom: 6px;
}

/* 4) Quote breathing room */
.accountant-feeling { padding: 16px 18px; }
.accountant-quote { line-height: 1.75; }
  
.intro-text {
  background: #f0f8ff;
  border-left: 4px solid #0b5394;
  padding: 16px 18px;              /* a bit more breathing room */
  border-radius: 6px;
  color: #1a1a1a;                  /* darker text for better contrast */
  font-size: 17px;                 /* slight bump */
  line-height: 1.9;                /* more comfortable line spacing */
}
  
  
.great-intro {
  background: #fdfdfd;             /* subtle white box feel */
  border-left: 4px solid #0b5394;  /* matches intro-text styling */
  padding: 16px 18px;
  border-radius: 6px;
  color: #1a1a1a;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 14px;
}
.comparison-box {
  background: #f7fbff;
  border: 1px solid #d7eafe;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
}
.comparison-box > strong {
  display: block;
  font-weight: 800;
  color: #0b5394;
  margin-bottom: 8px;
}
.comparison-items .comparison-item {
  line-height: 1.7;
  color: #1a1a1a;
}
.accountant-feeling {
  background: #fff8e6;
  border-left: 6px solid #ff9800;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 18px;
}
.accountant-quote {
  font-style: italic;
  font-size: 16px;
  line-height: 1.85;
  color: #2a2a2a;
}
  
.quick-facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 16px;
  line-height: 1.7;
}

.quick-facts-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  background: #f9fcff;
  color: #1a1a1a;
  vertical-align: middle;
}

.quick-facts-table tr:nth-child(even) td {
  background: #f3f7fc; /* subtle striping */
}

.quick-facts-table td:first-child {
  font-weight: 600;
  color: #0b5394;
}
 
.quick-facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 16px;
  line-height: 1.7;
}

.quick-facts-table th {
  background: #f6f8fa;
  color: #0b5394;
  text-align: left;
  font-weight: 600;
  border: 1px solid #ddd;
  padding: 10px 14px;
  width: 28%;
}

.quick-facts-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  background: #fff;
  color: #1a1a1a;
}
 
.feature-row {
  background: #f9fcff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 6px 0;
  line-height: 1.75;
  font-size: 16px;
}

.feature-row strong {
  color: #0b5394;
  font-weight: 600;
  display: inline-block;
  min-width: 220px; /* keeps heading aligned vertically */
}

  
  /* 🧹 Compact Version Card Layout */
.version-card {
  margin: 0 !important;           /* remove outer margin */
  padding: 0 !important;          /* remove inner padding */
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.version-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.version-title .version-number {
  font-size: 20px;
  font-weight: 700;
  color: #0b5394;
}

.version-details span {
  margin-right: 12px;
  font-size: 14px;
  color: #444;
}

.version-content {
  padding: 12px 16px; /* tighter but still readable */
}

.section {
  margin-bottom: 14px; /* reduced vertical space between sections */
}

.section h3 {
  margin-bottom: 6px; /* tighter heading gap */
}

.feature-row {
  margin: 4px 0; /* reduced gap between feature rows */
  padding: 8px 12px;
}

/* 📰 Justify all article content text */
.version-card,
.version-card .version-content,
.version-card .section,
.version-card p,
.version-card li {
  text-align: justify;
}

/* Optional: Improve word spacing slightly for better readability */
.version-card p,
.version-card li {
  word-spacing: 0.5px;
}
 
  
 /* Make room for arrows */
.post-nav-link{ position:relative; padding-right:34px; padding-left:34px; }

/* NEXT: right arrow */
.post-nav .post-nav-link.next::after{
  content: "\2192";                 /* Unicode → (no entities) */
  position:absolute; right:12px; top:50%;
  transform: translateY(-50%);
  color:#0b5394; font-weight:700; line-height:1;
}

/* PREV: left arrow */
.post-nav .post-nav-link.prev::before{
  content: "\2190";                 /* Unicode ← */
  position:absolute; left:12px; top:50%;
  transform: translateY(-50%);
  color:#0b5394; font-weight:700; line-height:1;
}

/* If you previously added arrow rules on <strong>, remove them or neutralize: */
.post-nav-link strong::before,
.post-nav-link strong::after { content: "" !important; }

/* 🔗 Previous/Next Navigation Box */
.post-nav {
  display: flex;
  justify-content: center;
  background: #f7fbff;
  border: 1px solid #d7eafe;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.post-nav-link {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 6px;
  padding: 12px 18px;
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 500;
  min-width: 200px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.post-nav-link:hover {
  border-color: #0b5394;
  box-shadow: 0 2px 8px rgba(11, 83, 148, 0.15);
  background: #f0f8ff;
}

.post-nav-link strong {
  display: block;
  color: #0b5394;
  font-weight: 700;
  margin-top: 4px;
}

/* Arrows added via CSS — no need for HTML entities */
.post-nav-link.next::after {
  content: "→";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #0b5394;
  font-size: 18px;
}

.post-nav-link.prev::before {
  content: "←";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #0b5394;
  font-size: 18px;
}

.post-nav .kicker {
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #6b7280;
}

 /* ===== Timeline Legend (Amrut compact) ===== */
.timeline-legend{
  margin: 8px 0 16px;
  background: #f7fbff;
  border: 1px solid #d7eafe;
  border-radius: 8px;
  padding: 8px 10px;
}

.legend-list{
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  align-items: center; margin: 0; padding: 0; list-style: none;
  font-size: 14px; line-height: 1.6;
}

.legend-item{
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e6ecf5; border-radius: 6px;
  padding: 6px 10px;
}

.legend-swatch{
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; border: 1px solid rgba(0,0,0,.08);
}

/* Era colors (tweak if you like) */
.era-dos{ background:#6b7280; }   /* Slate gray */
.era-win{ background:#0b5394; }   /* Amrut blue */
.era-ent{ background:#0e9a7b; }   /* Teal/green */

/* Text */
.legend-text strong{ color:#1c1c1c; font-weight:700; }
.legend-text{ color:#2a2a2a; }

/* Mobile */
@media (max-width: 560px){
  .legend-list{ gap: 8px; }
  .legend-item{ padding: 6px 8px; }
}

/* Print: hide legend (optional, keeps print clean) */
@media print{
  .timeline-legend{ display:none !important; }
}
 
 
 /* Wrap with fixed counts */
.timeline-nav{ display:flex; flex-wrap:wrap; gap:12px; }

.nav-arrow{ align-self:center; }

/* Desktop: 4 per row */
@media (min-width: 1024px){
  .nav-circle{ width: calc((100% - 3*12px) / 4); }
  .nav-arrow{ display:none; } /* optional to keep rows clean */
}

/* Tablet: 3 per row */
@media (min-width: 600px) and (max-width: 1023.98px){
  .nav-circle{ width: calc((100% - 2*12px) / 3); }
  .nav-arrow{ display:none; }
}

/* Mobile: 2 per row (ensures last one—8.1—is visible) */
@media (max-width: 599.98px){
  .nav-circle{ width: calc((100% - 12px) / 2); }
  .nav-arrow{ display:none; }
}
.nav-circle{
  aspect-ratio: 1 / 1;
  width: auto;            /* allow responsive widths */
  border-radius: 9999px;  /* keeps the circle */
}

 
/* ✅ Timeline Wrapper Styling */
.timeline-wrap {
  background: #eaf4ff; /* light blue background */
  border-left: 6px solid #0b5394; /* dark blue strip */
  padding: 16px 18px;
  border-radius: 8px;
  margin: 24px 0 32px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: #0b5394;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
  
 /* ✅ Mobile Patch: Compact Timeline Wrapper */
@media (max-width: 768px) {
  .timeline-wrap {
    margin: 12px 0;
    padding: 10px 12px;
    border-left-width: 4px; /* slightly thinner for mobile */
  }

  .timeline-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .timeline-nav {
    gap: 8px; /* reduce spacing between circles */
    flex-wrap: wrap; /* allow wrap on small screens */
    justify-content: center;
  }

  .nav-circle {
    width: 60px;
    height: 60px;
    font-size: 0.7rem;
    line-height: 1.1;
    padding: 4px;
  }

  .nav-arrow {
    display: none; /* hide arrows on mobile to save space */
  }
}
 
  
/* Keep all version cards collapsed by default */
.version-card { display: none; }
.version-card.active { display: block; }
  

/* ✅ Tally Evolution Timeline – Hero Header */

/* Main hero container */
.timeline-hero {
  position: relative;
  background: linear-gradient(180deg, #153b62 0%, #1f4c78 100%);
  color: #fff;
  border-left: 6px solid #efe8d6; /* side strip */
  border-radius: 6px;
  padding: 16px 18px 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  margin-bottom: 12px;
}

/* Heading + subtitle */
.timeline-hero__title {
  margin: 0 0 6px 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.3;
  color: #fff;
}
.timeline-hero__subtitle {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 500;
  color: #e9f2ff;
}

/* Premium badge top-right */
.premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff3cd;
  border: 1px solid #f4b400;
  color: #d32f2f;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  z-index: 2;
}

/* Meta bar (author + dates) */
.timeline-hero__meta {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 6px;
}

/* Links & separators */
.timeline-hero__meta a {
  color: #fff;
  text-decoration: underline;
}
.timeline-hero__meta .sep {
  opacity: 0.9;
}

/* Highlight dates */
.timeline-hero__meta .date {
  background: #fff8d5;
  color: #111;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Responsive: prevent overlap and allow wrapping */
@media (max-width: 768px) {
  .timeline-hero {
    padding-right: 90px; /* space for badge */
  }
  .premium-badge {
    top: 6px;
    right: 6px;
    font-size: 12px;
    padding: 3px 8px;
  }
  .timeline-hero__title {
    font-size: 22px;
  }
  .timeline-hero__subtitle {
    font-size: 16px;
  }
  .timeline-hero__meta {
    flex-direction: column;
    text-align: center;
  }
}


  @media (max-width:600px){
  .figure-caption {
    padding: 8px 10px; /* was probably 12px */
    font-size: 12px;
  }
}
  
  @media (max-width:600px){
  .author-block{font-size:13px;padding:6px 8px;}
}

  
