/* Page-only styles for /blog/tally-to-erp-migration-playbook/ (prefix ttp-). Shared look: etc.css, kit-*.css, p-bblog.css. */
.ttp-hero .hero__grid { align-items: start; }
:root { --ttp1: #236EB4; --ttp2: #0E7C6B; --ttp3: #5B4BC4; --ttp4: #B4560F; --ttp5: #2B7A0B; --ttp6: #0F2742; }

/* hero: 13-week wall calendar */
.ttp-cal { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; }
.ttp-cal__k { margin: 0; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.ttp-cal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ttp-w { border-radius: 10px; padding: 10px 10px 9px; color: #fff; display: grid; gap: 2px; min-height: 58px; position: relative; }
.ttp-w b { font: 700 13px/1 var(--font-ui); letter-spacing: .04em; }
.ttp-w span { font: 500 12.5px/1.25 var(--font-ui); }
.ttp-w--p1, .ttp-dot--p1, .ttp-tab--p1[aria-selected="true"] { background: var(--ttp1); }
.ttp-w--p2, .ttp-dot--p2, .ttp-tab--p2[aria-selected="true"] { background: var(--ttp2); }
.ttp-w--p3, .ttp-dot--p3, .ttp-tab--p3[aria-selected="true"] { background: var(--ttp3); }
.ttp-w--p4, .ttp-dot--p4, .ttp-tab--p4[aria-selected="true"] { background: var(--ttp4); }
.ttp-w--p5, .ttp-dot--p5, .ttp-tab--p5[aria-selected="true"] { background: var(--ttp5); }
.ttp-w--p6, .ttp-dot--p6, .ttp-tab--p6[aria-selected="true"] { background: var(--ttp6); }
.ttp-w:nth-child(13) { grid-column: span 4; min-height: 0; }
.ttp-cal__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 13px/1.3 var(--font-ui); color: var(--muted); }
.ttp-cal__legend li { display: flex; align-items: center; gap: 6px; }
.ttp-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ttp-cal__foot { margin: 0; font: 500 13px/1.5 var(--font-ui); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ttp-w { animation: ttp-pin .5s ease-out both; }
  .ttp-w:nth-child(n) { animation-delay: calc(var(--i, 0) * 60ms); }
}
@keyframes ttp-pin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* signature: phase wall */
.ttp-wall { display: grid; gap: 22px; }
.ttp-wall__tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ttp-wall__tab { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; font: 600 14px/1.3 var(--font-ui); color: var(--ink); min-height: 44px; transition: box-shadow .15s, transform .15s; }
.ttp-wall__tab b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ttp-wall__tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ttp-wall__tab[aria-selected="true"] { color: #fff; border-color: transparent; }
.ttp-wall__tab[aria-selected="true"] b { color: #fff; }
.ttp-wall__tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ttp-wall__panel h3 { margin: 0 0 14px; font-size: 21px; color: var(--ink); }
.ttp-weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.ttp-wk { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--ttp1); border-radius: 14px; padding: 18px 20px; }
#ttp-wp2 .ttp-wk { border-top-color: var(--ttp2); } #ttp-wp3 .ttp-wk { border-top-color: var(--ttp3); }
#ttp-wp4 .ttp-wk { border-top-color: var(--ttp4); } #ttp-wp5 .ttp-wk { border-top-color: var(--ttp5); }
#ttp-wp6 .ttp-wk { border-top-color: var(--ttp6); }
.ttp-wk__n { margin: 0 0 4px; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ttp-wk h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.ttp-wk ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.ttp-wk__who { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font: 600 13px/1.4 var(--font-ui); color: var(--ink); }
.ttp-wall.is-js .ttp-wall__panel[hidden] { display: none; }
.ttp-wall:not(.is-js) .ttp-wall__panel { display: block; margin-bottom: 26px; }

/* clean-up flips */
.ttp-flips { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* history columns */
.ttp-hist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.ttp-hist__col { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.ttp-hist__col--must { border-left: 5px solid var(--ttp5); }
.ttp-hist__col--maybe { border-left: 5px solid var(--ttp4); }
.ttp-hist__col--stay { border-left: 5px solid #64748B; }
.ttp-hist__k { margin: 0 0 10px; font: 700 13px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ttp-hist ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }

/* parallel checks */
.ttp-steps { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }

/* cutover run-sheet */
.ttp-run { list-style: none; padding: 0 !important; margin: 18px 0; display: grid; gap: 0 !important; border-left: 3px solid var(--line); }
.ttp-run li { position: relative; padding: 0 0 18px 26px; }
.ttp-run li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.ttp-run__t { display: block; font: 700 13px/1.3 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--blue-d); margin-bottom: 2px; }

/* planner */
.ttp-plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 20px; }
.ttp-plan__in { display: grid; gap: 14px; }
.ttp-plan__f { display: grid; gap: 8px; font: 600 14px/1.3 var(--font-ui); color: var(--ink); border: 0; padding: 0; margin: 0; }
.ttp-plan__f legend { padding: 0; margin-bottom: 8px; }
.ttp-plan__f input[type="date"] { font: 500 15px/1.2 var(--font-ui); padding: 10px 12px; border: 1px solid #94A3B8; border-radius: 8px; color: var(--ink); max-width: 240px; min-height: 44px; }
.ttp-chk { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; font: 500 14.5px/1.35 var(--font-ui); color: var(--text); cursor: pointer; }
.ttp-chk input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.ttp-plan__out { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; }
.ttp-plan__k { margin: 0; font: 700 12px/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.ttp-plan__list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font: 500 14.5px/1.45 var(--font-ui); color: var(--text); }
.ttp-plan__list b { color: var(--ink); }
.ttp-plan__go { margin: 0; font: 700 16px/1.4 var(--font-ui); color: var(--ink); }
.ttp-plan__go:empty, .ttp-plan__extra:empty { display: none; }
.ttp-plan__extra { margin: 0; padding-left: 20px; display: grid; gap: 6px; font: 500 14px/1.45 var(--font-ui); color: #7A3E0C; }
.ttp-plan__note { margin: 0; font: 500 13px/1.5 var(--font-ui); color: var(--muted); }
.ttp-plan .btn { justify-self: start; }

@media (max-width: 1100px) { .ttp-wall__tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .ttp-hist { grid-template-columns: 1fr; }
  .ttp-wall__tabs { grid-template-columns: repeat(2, 1fr); }
  .ttp-cal__grid { grid-template-columns: repeat(3, 1fr); }
  .ttp-w:nth-child(13) { grid-column: span 3; }
}
