/* ============================================================
   Telos Insights — editorial design system
   Namespaced: every selector is prefixed .ti- so nothing here
   can affect the homepage or any non-blog page.
   Loads AFTER styles.css; relies only on global :root tokens.
   ============================================================ */

/* ---------- Page frame & reading progress ---------- */
.ti-post { background: var(--paper); }
.ti-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.ti-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mid), var(--deep));
  transition: width 0.15s linear;
}

/* ---------- Hero ---------- */
.ti-hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(139, 201, 225, 0.28), transparent 60%),
    linear-gradient(180deg, #FDFCFA 0%, #F5F2EC 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 52px;
}
.ti-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
/* Breadcrumb: styled via both the .ti-breadcrumb class and the platform's
   data-blog-breadcrumb hook, so any platform-generated breadcrumb gets the
   same polished treatment without depending on generated class names. */
.ti-breadcrumb,
[data-blog-breadcrumb] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 26px;
  max-width: 100%;
  min-width: 0;
}
.ti-breadcrumb a,
[data-blog-breadcrumb] a { color: var(--mid); text-decoration: none; border-bottom: 1px solid transparent; white-space: nowrap; }
.ti-breadcrumb a:hover, .ti-breadcrumb a:focus-visible,
[data-blog-breadcrumb] a:hover, [data-blog-breadcrumb] a:focus-visible { border-bottom-color: var(--mid); }
.ti-breadcrumb .sep,
[data-blog-breadcrumb] .sep { margin: 0 12px; color: var(--sky-dk); flex: none; }
.ti-breadcrumb [aria-current], .ti-breadcrumb .current,
[data-blog-breadcrumb] [aria-current] { color: var(--deep); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ti-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ti-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--sky-dk);
  flex-shrink: 0;
}
.ti-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  color: var(--deep);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.ti-deck {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}
.ti-byline { display: flex; align-items: center; gap: 14px; }
.ti-byline-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(16, 74, 126, 0.18);
  flex-shrink: 0;
}
.ti-byline-name { font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.ti-byline-meta { font-size: 13px; color: var(--slate); letter-spacing: 0.03em; }
.ti-hero-visual {
  position: relative;
  margin: 0;
}
.ti-hero-visual::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  background: var(--light);
  border-radius: var(--radius);
  z-index: 0;
}
/* Self-contained layered document illustration (no image dependency) */
.ti-hero-art {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  background:
    radial-gradient(420px 260px at 82% 8%, rgba(139, 201, 225, 0.35), transparent 65%),
    linear-gradient(155deg, #EAF3F0 0%, #DCEAF2 55%, #CFE2EE 100%);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}
.ti-hero-sheet {
  position: absolute;
  display: block;
  border-radius: 10px;
}
.ti-hero-sheet-back {
  left: 8%;
  top: 12%;
  width: 52%;
  height: 74%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(16, 74, 126, 0.10);
  transform: rotate(-7deg);
  box-shadow: 0 10px 24px rgba(16, 74, 126, 0.10);
}
.ti-hero-sheet-mid {
  right: 7%;
  top: 9%;
  width: 46%;
  height: 62%;
  background: #FDFCF9;
  border: 1px solid rgba(16, 74, 126, 0.12);
  transform: rotate(4deg);
  box-shadow: 0 14px 30px rgba(16, 74, 126, 0.16);
  padding: 9% 7%;
  box-sizing: border-box;
}
.ti-hero-sheet-mid .ti-hero-line { opacity: 0.55; }
.ti-hero-sheet-front {
  left: 14%;
  bottom: 7%;
  width: 60%;
  height: 66%;
  background: #fff;
  border: 1px solid rgba(16, 74, 126, 0.14);
  border-top: 4px solid var(--sky-dk);
  box-shadow: 0 22px 44px rgba(12, 58, 99, 0.22);
  padding: 7% 8%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 7%;
}
.ti-hero-topic {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--light);
  border: 1px solid rgba(16, 74, 126, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 2%;
  white-space: nowrap;
}
.ti-hero-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #D7E2EA;
}
.ti-hero-line-title { width: 78%; height: 10px; background: var(--sky-dk); opacity: 0.65; }
.ti-hero-line-mid { width: 88%; }
.ti-hero-line-short { width: 56%; }
.ti-hero-rows {
  display: flex;
  flex-direction: column;
  gap: 8%;
  flex: 1;
  min-height: 0;
  margin-top: 2%;
}
.ti-hero-row {
  display: block;
  flex: 1;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(100, 170, 196, 0.16), rgba(100, 170, 196, 0.05));
  border: 1px solid rgba(16, 74, 126, 0.08);
}
.ti-hero-check {
  position: absolute;
  right: 6%;
  bottom: 10%;
  width: clamp(38px, 4.4vw, 54px);
  height: clamp(38px, 4.4vw, 54px);
  border-radius: 50%;
  background: var(--deep);
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(12, 58, 99, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ti-hero-check-mark {
  width: 38%;
  height: 58%;
  border: solid #fff;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) translate(6%, -8%);
}
.ti-hero-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(12, 58, 99, 0.25);
  border: 1px solid rgba(16, 74, 126, 0.15);
  max-width: calc(100% - 36px);
}

/* ---------- Editorial shell: main + sticky rail ---------- */
.ti-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}
.ti-main { min-width: 0; }
.ti-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 14px;
}
.ti-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 2px 12px rgba(16, 74, 126, 0.06);
  max-height: calc(100vh - 130px);
  overflow: auto;
}
.ti-toc-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 12px;
}
.ti-toc ul { list-style: none; margin: 0; }
.ti-toc li { margin-bottom: 2px; }
.ti-toc a {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ti-toc a:hover, .ti-toc a:focus-visible { color: var(--deep); background: var(--light); }
.ti-toc a.ti-toc-active {
  color: var(--deep);
  font-weight: 600;
  border-left-color: var(--deep);
  background: var(--light);
}
.ti-rail-help {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-ink) 100%);
  border-radius: var(--radius);
  padding: 24px 22px;
  color: #fff;
}
.ti-rail-help h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  color: #fff;
  margin-bottom: 8px;
}
.ti-rail-help p { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }
.ti-rail-help a {
  display: inline-block;
  background: #fff;
  color: var(--deep);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease;
}
.ti-rail-help a:hover, .ti-rail-help a:focus-visible { background: var(--light); }

/* ---------- Prose base ---------- */
.ti-body { font-size: 17px; line-height: 1.75; color: var(--ink); }
.ti-body > p { margin-bottom: 22px; max-width: 70ch; }
.ti-body > ul, .ti-body > ol { margin: 0 0 22px 24px; max-width: 68ch; }
.ti-body > li { margin-bottom: 8px; }
.ti-body a { color: var(--mid); text-decoration: underline; text-decoration-color: rgba(100, 170, 196, 0.5); text-underline-offset: 2px; }
.ti-body a:hover { color: var(--deep); }
.ti-body strong { color: var(--deep); }
.ti-lede {
  font-family: var(--serif);
  font-size: 20.5px;
  line-height: 1.6;
  color: var(--deep);
  margin-bottom: 24px;
}
.ti-section { margin: 56px 0; }
.ti-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.22;
  color: var(--deep);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
  scroll-margin-top: 110px;
}
.ti-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--deep);
  margin: 0 0 10px;
}
.ti-h2-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 24px;
}

/* ---------- Scannable card grids ---------- */
.ti-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 36px;
}
.ti-cards-2 { grid-template-columns: repeat(2, 1fr); }
.ti-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--sky-dk);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: 0 2px 12px rgba(16, 74, 126, 0.06);
}
.ti-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--deep);
}
.ti-card-icon svg { width: 20px; height: 20px; display: block; }
.ti-card h3 { font-size: 18px; margin-bottom: 8px; }
.ti-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Choose-your-situation module ---------- */
.ti-situation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 28px 0 14px;
}
.ti-situation-card {
  text-align: left;
  font-family: var(--sans);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(16, 74, 126, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}
.ti-situation-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-dk); }
.ti-situation-card:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.ti-situation-card[aria-pressed="true"] {
  border-color: var(--deep);
  background: var(--light);
  box-shadow: inset 0 0 0 1px var(--deep), var(--shadow);
}
.ti-situation-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ti-situation-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--light);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ti-situation-icon svg { width: 22px; height: 22px; display: block; }
.ti-situation-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}
/* Card body rows are block-level so each part — title, best-for text,
   caution box, action link — always occupies its own clean row. The card
   children are <span>s in the generated markup; without display: block the
   caution box's background wraps across line boxes and collides with
   neighboring text, and vertical margins between rows are ignored. */
.ti-situation-title { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--deep); line-height: 1.3; margin-bottom: 8px; }
.ti-situation-best { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 10px; }
.ti-situation-best strong { color: var(--deep); font-weight: 600; }
.ti-situation-caution {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #7A5321;
  background: #FBF3EA;
  border-left: 2px solid #E0B678;
  padding: 8px 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}
.ti-situation-action {
  display: flex;
  width: fit-content;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--deep);
  align-items: center;
  gap: 6px;
}
.ti-situation-action::after { content: "\2192"; transition: transform 0.2s ease; }
.ti-situation-card:hover .ti-situation-action::after,
.ti-situation-card:focus-visible .ti-situation-action::after { transform: translateX(3px); }
.ti-situation-hint { font-size: 13.5px; color: var(--slate); margin-bottom: 30px; }

/* ---------- Artifact (template / worksheet / brief) ---------- */
.ti-artifact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 48px;
  overflow: hidden;
}
.ti-artifact[hidden] { display: none; }
.ti-artifact-head {
  background: linear-gradient(150deg, var(--deep) 0%, var(--deep-ink) 100%);
  color: #fff;
  padding: 26px 32px 22px;
}
.ti-artifact-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}
.ti-artifact-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}
.ti-artifact-purpose { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); max-width: 68ch; margin-bottom: 0; }
.ti-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 32px;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}
.ti-toolbar-note { font-size: 12.5px; color: var(--slate); margin-left: auto; }
.ti-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--deep);
  background: var(--deep);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ti-btn:hover { background: var(--deep-ink); transform: translateY(-1px); }
.ti-btn:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.ti-btn-ghost { background: transparent; color: var(--deep); }
.ti-btn-ghost:hover { background: var(--light); transform: translateY(-1px); }
.ti-artifact-body { padding: 32px; }
.ti-artifact-risk {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 32px 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ti-artifact-risk::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid #C89A5B;
  background: #FBF3EA;
}
.ti-artifact-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 16px 32px 22px;
  font-size: 12.5px;
  color: var(--slate);
}

/* Designed document internals (showcase forms) */
.ti-doc { font-family: var(--sans); color: var(--ink); }
.ti-doc-section { margin-bottom: 26px; }
.ti-doc-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--light);
  margin-bottom: 14px;
}
.ti-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.ti-field { display: flex; flex-direction: column; gap: 4px; }
.ti-field-full { grid-column: 1 / -1; }
.ti-field label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.ti-field input[type="text"], .ti-field input[type="date"], .ti-field textarea, .ti-field select {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 1.5px solid var(--sky-dk);
  border-radius: 3px;
  padding: 9px 10px;
  width: 100%;
}
.ti-field textarea { min-height: 74px; resize: vertical; }
.ti-field input:focus, .ti-field textarea:focus, .ti-field select:focus {
  outline: 2px solid var(--sky-dk);
  outline-offset: 1px;
  background: #fff;
}
.ti-field-help { font-size: 12px; color: var(--slate); }
.ti-boxes { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ti-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.ti-fieldset legend { padding: 0; margin-bottom: 6px; }
.ti-boxes-col { flex-direction: column; align-items: flex-start; gap: 10px; }
.ti-q-list { margin: 0 0 12px; padding-left: 20px; }
.ti-q-list li { font-size: 14.5px; line-height: 1.6; margin-bottom: 6px; color: var(--ink); }
.ti-q-list li:last-child { margin-bottom: 0; }
.ti-box { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink); }
.ti-box input[type="checkbox"], .ti-box input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--sky-dk);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.ti-box input[type="radio"] { border-radius: 50%; }
.ti-box input[type="checkbox"]:checked, .ti-box input[type="radio"]:checked { background: var(--deep); border-color: var(--deep); }
.ti-box input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ti-box input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3.5px;
  border-radius: 50%;
  background: #fff;
}
.ti-box input:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.ti-doc-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--slate);
  background: var(--warm);
  border-left: 3px solid var(--sky-dk);
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.ti-sig-row { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 6px; }
.ti-sig { flex: 1 1 200px; }
.ti-sig .ti-sig-line { border-bottom: 1.5px solid var(--ink); height: 30px; margin-bottom: 5px; }
.ti-sig span { font-size: 12px; color: var(--slate); }

/* Print serialization target (filled by blog-editorial.js) */
.ti-print-doc {
  display: none;
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 11.5pt;
  line-height: 1.55;
  color: #000;
}

/* ---------- Enough / pause panels ---------- */
.ti-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 36px; }
.ti-panel { border-radius: var(--radius); padding: 28px 26px 22px; }
.ti-panel-enough { background: #EEF4EF; border: 1px solid #CFE0D4; }
.ti-panel-pause { background: #FBF3EA; border: 1px solid #EAD9C3; }
.ti-panel h3 { font-size: 20px; margin-bottom: 12px; }
.ti-panel-enough h3 { color: var(--pine); }
.ti-panel-pause h3 { color: #8A5A22; }
.ti-panel ul { margin-left: 20px; margin-bottom: 0; }
.ti-panel li { margin-bottom: 8px; font-size: 15px; line-height: 1.55; }
.ti-panel-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ti-panel-enough .ti-panel-tag { background: rgba(74, 107, 87, 0.14); color: var(--pine); }
.ti-panel-pause .ti-panel-tag { background: rgba(138, 90, 34, 0.12); color: #8A5A22; }

/* ---------- Checklist ---------- */
.ti-check {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(16, 74, 126, 0.07);
  padding: 30px 30px 22px;
  margin: 28px 0 36px;
}
.ti-check h3 { font-size: 21px; color: var(--deep); margin-bottom: 6px; }
.ti-check-list { list-style: none; margin: 16px 0 0; }
.ti-check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.6;
}
.ti-check-list li:last-child { border-bottom: none; }
.ti-check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--sky-dk);
  border-radius: 3px;
}
.ti-check-list strong { color: var(--deep); }

/* ---------- Numbered process steps ---------- */
.ti-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 36px; counter-reset: ti-step; }
/* Two-column step variant (used where four steps read better larger);
   collapses to one column on small screens like the base grid. */
.ti-steps-2 { grid-template-columns: repeat(2, 1fr); }
.ti-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 18px;
  box-shadow: 0 2px 12px rgba(16, 74, 126, 0.07);
}
.ti-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  margin-bottom: 14px;
}
.ti-step h3 { font-family: var(--serif); font-size: 19px; color: var(--deep); margin-bottom: 10px; }
.ti-step p, .ti-step li { font-size: 15px; color: var(--ink-soft); }
.ti-step ul { margin-left: 18px; margin-bottom: 0; }
.ti-step li { margin-bottom: 6px; }

/* ---------- Comparison matrix ---------- */
.ti-table-wrap { overflow-x: auto; margin: 26px 0 36px; }
.ti-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; background: #fff; }
.ti-table th {
  text-align: left;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 2px solid var(--sky-dk);
  padding: 12px 14px;
  background: var(--light);
}
.ti-table td { border-bottom: 1px solid var(--line); padding: 14px; vertical-align: top; line-height: 1.6; }
.ti-table td:first-child { font-family: var(--serif); font-style: italic; color: var(--slate); white-space: nowrap; }

/* ---------- Pull quote ---------- */
.ti-quote {
  border-left: 3px solid var(--sky-dk);
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0 36px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  color: var(--deep);
}
.ti-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-top: 12px; }

/* ---------- Mid-article help callout ---------- */
.ti-callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--mid);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 40px 0;
  box-shadow: 0 2px 12px rgba(16, 74, 126, 0.06);
}
.ti-callout-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light);
  color: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ti-callout-icon svg { width: 20px; height: 20px; }
.ti-callout h3 { font-size: 18px; margin-bottom: 6px; }
.ti-callout p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 12px; }
.ti-callout a { font-weight: 600; color: var(--deep); }

/* ---------- Final CTA ---------- */
.ti-cta {
  background: linear-gradient(150deg, var(--deep) 0%, var(--deep-ink) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  margin: 52px 0;
  position: relative;
  overflow: hidden;
}
.ti-cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(139, 201, 225, 0.12);
}
.ti-cta h3 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 27px; margin-bottom: 14px; }
.ti-cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; max-width: 60ch; }
.ti-cta .btn { position: relative; z-index: 1; }

/* ---------- FAQ ---------- */
.ti-faq { margin: 28px 0 36px; }
.ti-faq-item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.ti-faq-item h3 { margin: 0; }
.ti-faq-item h3 button {
  all: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 500;
  color: var(--deep);
  padding: 16px 4px;
}
.ti-faq-item h3 button:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.ti-faq-item h3 button::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--sky-dk);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.ti-faq-item h3 button[aria-expanded="true"]::after { transform: rotate(45deg); }
.ti-faq-answer { padding: 0 4px 18px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 70ch; }
.ti-faq-answer[hidden] { display: none; }

/* ---------- Author / related / disclaimer ---------- */
.ti-author {
  display: flex;
  gap: 20px;
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 56px;
}
.ti-author-photo { width: 84px; height: 110px; object-fit: cover; object-position: top; border-radius: var(--radius); flex-shrink: 0; }
.ti-author-name { font-family: var(--serif); font-size: 20px; color: var(--deep); }
.ti-author-role { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); margin: 3px 0 10px; }
.ti-author-bio { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.ti-related { margin-top: 64px; }
.ti-related-heading { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--deep); margin-bottom: 20px; }
.ti-disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 44px;
}
/* Numbered goal-example list (performance goals guide) */
.ti-goal-list { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: tigoal; }
.ti-goal-list li { position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.62; color: var(--ink-soft); counter-increment: tigoal; }
.ti-goal-list li:last-child { border-bottom: none; }
.ti-goal-list li::before { content: counter(tigoal); position: absolute; left: 0; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--sky-dk)); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ti-goal-list strong { color: var(--deep); }
/* Wrap-first table variant: lets long first-column examples flow normally
   instead of the default single-line treatment. */
.ti-table--wrap td:first-child { white-space: normal; }

/* Plain prose lists inside article sections (check-ins, mistakes, escalations) */
.ti-section > ul { margin: 0 0 22px 24px; max-width: 68ch; }
.ti-section > ul > li { margin-bottom: 8px; }

@media print {
  .ti-goal-list li::before { color: var(--deep); background: none; border: 1px solid var(--line); }
}

/* ---------- Related card grid (platform-filled) ---------- */
.ti-related .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .ti-shell { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .ti-rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .ti-toc { flex: 1 1 320px; }
  .ti-rail-help { flex: 1 1 260px; }
  .ti-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ti-hero-visual { max-width: 560px; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  /* Tablet: render tables like desktop — fit the container, let header cells wrap */
  .ti-table { min-width: 0; }
  .ti-table th { white-space: normal; overflow-wrap: break-word; }
  .ti-table td:first-child { white-space: normal; }
}
@media (max-width: 760px) {
  .ti-breadcrumb, [data-blog-breadcrumb] { row-gap: 4px; margin-bottom: 20px; }
  .ti-breadcrumb .sep, [data-blog-breadcrumb] .sep { margin: 0 8px; }
  .ti-hero { padding: 40px 0 44px; }
  .ti-shell { padding-top: 40px; padding-bottom: 72px; }
  .ti-rail { flex-direction: column; }
  .ti-situation, .ti-cards, .ti-cards-2, .ti-panels, .ti-steps, .ti-steps-2 { grid-template-columns: 1fr; }
  .ti-cards { grid-template-columns: 1fr; }
  .ti-situation-card { padding: 18px 18px 16px; }
  .ti-situation-top { gap: 10px; margin-bottom: 10px; }
  .ti-situation-title { font-size: 18px; }
  .ti-artifact-head, .ti-artifact-body { padding: 22px 20px; }
  .ti-toolbar { padding: 12px 20px; }
  .ti-artifact-risk { margin: 0 20px; }
  .ti-artifact-foot { padding: 14px 20px 18px; }
  .ti-field-grid { grid-template-columns: 1fr; }
  .ti-cta { padding: 32px 24px; }
  .ti-related .blog-grid { grid-template-columns: 1fr; }
  .ti-author { flex-direction: column; }
}

/* ---------- Motion restraint ---------- */
@media (prefers-reduced-motion: reduce) {
  .ti-progress-bar { transition: none; }
  .ti-situation-card, .ti-btn, .ti-situation-action::after { transition: none; }
  .ti-situation-card:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .ti-progress, .ti-rail, .ti-toolbar, .ti-related, .ti-author,
  .ti-cta, .ti-callout, .ti-hero-visual, .ti-breadcrumb, [data-blog-breadcrumb],
  .site-header, .site-footer, .nav-toggle { display: none !important; }
  .ti-post { background: #fff; }
  .ti-hero { background: #fff; border-bottom: none; padding: 0 0 18px; }
  .ti-hero-inner { display: block; }
  .ti-shell { display: block; padding: 0; }
  .ti-body { font-size: 12pt; line-height: 1.5; }
  .ti-body h2 { font-size: 17pt; }
  .ti-artifact { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .ti-artifact-head { background: #fff; color: #000; border-bottom: 2px solid #000; padding: 12px 0; }
  .ti-artifact-head h3, .ti-artifact-kicker { color: #000; }
  .ti-artifact-purpose { color: #333; }
  .ti-situation, .ti-cards, .ti-panels, .ti-steps, .ti-steps-2 { display: block; }
  .ti-situation-card, .ti-card, .ti-panel, .ti-step, .ti-check { break-inside: avoid; box-shadow: none; }
  a { color: #000 !important; text-decoration: none !important; }
  /* Single-artifact print mode: blog-editorial.js serializes the artifact
     (labels + entered values + checked controls) into .ti-print-doc */
  body.ti-printing .ti-print-doc { display: block !important; position: static; }
  body.ti-printing > *:not(.ti-print-doc) { display: none !important; }
  .ti-print-doc .ti-print-doc-title {
    font-family: var(--serif);
    font-size: 15pt;
    margin: 0 0 2pt;
  }
  .ti-print-doc .ti-print-doc-meta {
    font-size: 9pt;
    color: #444;
    margin: 0 0 14pt;
  }
}

/* ---------- Secondary email CTA ---------- */
.ti-rail-email {
  display: block !important;
  background: none !important;
  padding: 0 !important;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ti-rail-email:hover, .ti-rail-email:focus-visible { background: none !important; color: #fff !important; }
.ti-cta-email {
  display: inline-block;
  margin-left: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
  z-index: 1;
}
.ti-cta-email:hover, .ti-cta-email:focus-visible { color: #fff; }

/* ============================================================
   Phrases-to-avoid table (termination article): never overflow,
   overlap, or run off the page at any responsive width. Below 640px
   the two-column matrix stacks into bordered cards instead of
   scrolling horizontally.
   ============================================================ */
/* Desktop + tablet: balanced two-column comparison. Fixed layout gives
   both columns practical widths (45% / 55%) and lets every left-column
   sentence wrap normally, so rows stay compact with no empty areas and
   no cramped right column. */
#phrases .ti-table { table-layout: fixed; }
#phrases .ti-table th:first-child { width: 45%; }
#phrases .ti-table th:last-child { width: 55%; }
#phrases .ti-table td { overflow-wrap: anywhere; }
#phrases .ti-table td:first-child { white-space: normal; }
@media (max-width: 640px) {
  #phrases .ti-table-wrap { overflow-x: visible; margin: 20px 0 28px; }
  #phrases .ti-table { min-width: 0; display: block; background: transparent; border-collapse: collapse; }
  #phrases .ti-table thead { display: none; }
  #phrases .ti-table tbody { display: block; }
  #phrases .ti-table tr { display: block; background: #fff; border: 1px solid var(--line); margin: 0 0 14px; }
  #phrases .ti-table td { display: block; width: 100%; border-bottom: 0; padding: 12px 14px; vertical-align: top; }
  #phrases .ti-table td:first-child {
    white-space: normal;
    font-family: var(--sans);
    font-style: normal;
    font-weight: 600;
    background: var(--light);
    border-bottom: 1px solid var(--line);
  }
  #phrases .ti-table td:last-child { border-bottom: 0; }
}

/* Print / PDF: keep the phrases comparison as a fully visible two-column
   table — no horizontal clipping, no stacked cards, no rows split across
   pages. */
@media print {
  #phrases .ti-table-wrap { overflow: visible; }
  #phrases .ti-table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    display: table;
    background: #fff;
  }
  #phrases .ti-table thead { display: table-header-group; }
  #phrases .ti-table th:first-child { width: 45%; }
  #phrases .ti-table th:last-child { width: 55%; }
  #phrases .ti-table tbody { display: table-row-group; }
  #phrases .ti-table tr {
    display: table-row;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #phrases .ti-table td {
    display: table-cell;
    width: auto;
    border-bottom: 1px solid #ccc;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #phrases .ti-table td:first-child {
    white-space: normal;
    background: #f4f6f8;
  }
}
