/* C-20261107-18: posting-time guide. Shared mobile table/button/image handling
   remains owned by css/blog-mobile.css and js/blog-mobile.js. */
.tj-page {
  --pd-accent: #7b3f5b;
  --pd-accent-dark: #55283d;
  --pd-green: #185a50;
  --tj-blue: #244d6d;
  --tj-sand: #f5eee2;
}
.tj-page .pd-hero {
  background:
    radial-gradient(circle at 92% 4%, rgba(36, 77, 109, .12), transparent 25rem),
    linear-gradient(145deg, #fff 0%, #fff 55%, #f5eee8 100%);
}
.tj-page .pd-hero h1 {
  max-width: 940px;
  word-break: auto-phrase;
  overflow-wrap: normal;
}
.tj-title-phrase { white-space: nowrap; }
.tj-page .pd-heading,
.tj-page .hr-subheading,
.tj-page .tj-scenario h3 {
  word-break: auto-phrase;
  overflow-wrap: normal;
}
.tj-page .pd-reading > p:not([class]) {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.9;
}
.tj-page .pd-hero-photo img {
  aspect-ratio: 900 / 230;
  object-fit: cover;
  object-position: center 59%;
}
.tj-page section[id],
.tj-page [id].tj-anchor { scroll-margin-top: 88px; }

.tj-index {
  border-block: 1px solid #e5ddd4;
  background: #fff;
}
.tj-index__inner {
  display: grid;
  gap: 17px;
  padding-block: 20px;
}
.tj-index__group { min-width: 0; }
.tj-index__group + .tj-index__group {
  padding-top: 15px;
  border-top: 1px solid #eee7df;
}
.tj-index__label {
  margin: 0 0 9px;
  color: var(--pd-accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.tj-index__scenes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tj-index__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tj-index__scenes a,
.tj-index__toc a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d8c8cf;
  border-radius: 11px;
  background: #fbf7f8;
  color: #4f2638;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.tj-index__toc a {
  min-height: 36px;
  padding-inline: 14px;
  border-color: #cddbd7;
  background: #f3f8f6;
  color: #185a50;
}
.tj-index__scenes a:hover,
.tj-index__scenes a:focus-visible,
.tj-index__toc a:hover,
.tj-index__toc a:focus-visible {
  border-color: var(--pd-accent);
  background: #f4e9ed;
  outline: none;
}

.tj-evidence-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0;
}
.tj-evidence-key article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--pd-line);
  border-top: 4px solid var(--tj-blue);
  border-radius: 13px;
  background: #fff;
}
.tj-evidence-key article:nth-child(2) { border-top-color: #9b7440; }
.tj-evidence-key article:nth-child(3) { border-top-color: var(--pd-green); }
.tj-evidence-key span {
  display: block;
  color: var(--pd-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}
.tj-evidence-key strong {
  display: block;
  margin-top: 4px;
  color: var(--pd-ink);
  font-size: 17px;
  line-height: 1.45;
}
.tj-evidence-key p {
  margin: 6px 0 0;
  color: var(--pd-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tj-diagram { width: min(100%, 860px); }
.tj-diagram img { display: block; width: 100%; height: auto; }
.tj-photo-wide { width: min(100%, 760px); }
.tj-photo-wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.tj-photo-portrait { width: min(100%, 390px); }
.tj-photo-portrait img {
  max-height: 500px;
  object-fit: contain;
  object-position: center top;
}
.tj-photo-dashboard { width: min(100%, 560px); }
.tj-photo-dashboard img {
  max-height: 500px;
  object-fit: contain;
  object-position: center;
}

.tj-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 24px 0;
}
.tj-scenario {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(23, 32, 51, .05);
}
.tj-scenario__tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eee9df;
  color: #5c4c35;
  font-size: 11px;
  font-weight: 900;
}
.tj-scenario h3 {
  margin: 8px 0 6px;
  color: var(--pd-ink);
  font-size: 19px;
  line-height: 1.45;
}
.tj-scenario p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 14px;
  line-height: 1.75;
}
.tj-scenario strong { color: var(--pd-accent-dark); }

.tj-callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--pd-green);
  border-radius: 0 12px 12px 0;
  background: #eef7f4;
  color: #294b45;
  font-size: 15px;
  line-height: 1.8;
}
.tj-callout strong { color: #163f38; }
.tj-warning {
  border-left-color: #9b7440;
  background: #fff8e8;
  color: #5b492d;
}
.tj-source-note {
  margin: 14px 0;
  color: var(--pd-muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.tj-source-note a { color: var(--pd-accent-dark); font-weight: 800; }

.tj-page .pd-mini-table caption {
  padding: 11px 14px;
  background: #222d42;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
}
.tj-page .pd-mini-table thead th { background: #eee9df; }
.tj-page .pd-mini-table tbody th { min-width: 8.5em; }
.tj-record-table { min-width: 1060px; }
.tj-record-table th:first-child { width: 5.2em; }
.tj-compact-table { min-width: 720px; }
.tj-page .pd-mini-table td,
.tj-page .pd-mini-table th { overflow-wrap: anywhere; }

.tj-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.tj-metric-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--pd-line);
  border-radius: 14px;
  background: #fff;
}
.tj-metric-grid strong {
  display: block;
  color: var(--pd-ink);
  font-size: 18px;
}
.tj-metric-grid span {
  display: block;
  margin-top: 5px;
  color: var(--pd-muted);
  font-size: 13px;
  line-height: 1.7;
}

.tj-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.tj-checklist li {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--pd-line);
  border-radius: 13px;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}
.tj-checklist li::before {
  content: "✓";
  position: absolute;
  top: 13px;
  left: 15px;
  color: var(--pd-green);
  font-weight: 900;
}

.tj-sources {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.tj-sources li {
  padding: 13px 15px;
  border: 1px solid var(--pd-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
}
.tj-sources a { color: var(--pd-accent-dark); font-weight: 800; overflow-wrap: anywhere; }
.tj-sources span { display: block; margin-top: 3px; color: var(--pd-muted); font-size: 12px; }

.tj-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0 24px;
}
.tj-download p { flex: 1 1 280px; margin: 0; color: var(--pd-muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 700px) {
  .tj-page .pd-hero h1 { font-size: 25px; line-height: 1.2; }
  .tj-page .pd-hero-photo { margin-block: 8px; }
  .tj-page .pd-hero-photo figcaption { display: none; }
  .tj-page .pd-hero__answer { margin-top: 7px; font-size: 15px; line-height: 1.52; }
  .tj-page .pd-updated { font-size: 10px; line-height: 1.45; }
  .tj-index__inner { gap: 14px; padding-block: 17px; }
  .tj-index__scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .tj-index__scenes a { min-height: 40px; padding: 7px 6px; font-size: 12px; }
  .tj-index__toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tj-index__toc a { padding-inline: 7px; }
  .tj-evidence-key,
  .tj-scenario-grid,
  .tj-metric-grid,
  .tj-checklist { grid-template-columns: 1fr; }
  .tj-page .pd-cta.hr-dual-cta { gap: 10px; }
  .tj-page .pd-cta.hr-dual-cta .hr-dual-cta__copy,
  .tj-page .pd-cta.hr-dual-cta .hr-dual-cta__actions,
  .tj-page .pd-cta.hr-dual-cta .hr-cta-note {
    flex: 0 0 auto;
    width: 100%;
  }
  /* Force a measurable overflow before the shared mobile script converts
     each table into cards. Card markup/styles are not duplicated here. */
  .tj-page .pd-mini-table { min-width: 680px; }
  .tj-page .tj-record-table { min-width: 1060px; }
  .tj-photo-portrait,
  .tj-photo-dashboard { width: min(100%, 390px); }
}

@media (max-width: 420px) {
  .tj-page .pd-hero h1 { font-size: 24px; }
  .tj-page .pd-kicker { font-size: 11px; }
}
