/* Novelumo Visual Renderer 0.1.25
 * Test 0 visual tuning: stronger semantic contrast + stricter geometry alignment.
 * Scope rule: every visual rule remains under .novelumo-article.nvr-root.
 */

.novelumo-article.nvr-root {
  --nvr-space-1: .5rem;
  --nvr-space-2: .75rem;
  --nvr-space-3: 1rem;
  --nvr-space-4: 1.5rem;
  --nvr-space-5: 2rem;

  --nvr-border: #cfd9e5;
  --nvr-border-strong: #aebdce;
  --nvr-text: #203044;
  --nvr-muted: #65758a;

  --nvr-navy: #19456f;
  --nvr-blue: #1769e0;
  --nvr-blue-soft: #eef5ff;

  --nvr-green: #17855a;
  --nvr-green-soft: #eef9f4;
  --nvr-red: #c44755;
  --nvr-red-soft: #fff2f4;
  --nvr-amber: #be7411;
  --nvr-amber-soft: #fff7e9;

  --nvr-problem: #c44755;
  --nvr-cause: #be7411;
  --nvr-fix: #17855a;

  --nvr-layout-gap: 1rem;
  --nvr-node-min-height: 7rem;
  --nvr-branch-gap: 1rem;
}


.novelumo-article.nvr-root *,
.novelumo-article.nvr-root *::before,
.novelumo-article.nvr-root *::after {
  box-sizing: border-box;
}

/* NVR scoped normalization.
 * Keep THE THOR/browser defaults from changing visual geometry.
 * No global reset: this applies only inside plugin visuals.
 */
.novelumo-article.nvr-root .nvr-visual,
.novelumo-article.nvr-root .nvr-visual * {
  min-width: 0;
  max-width: 100%;
}

.novelumo-article.nvr-root .nvr-visual :where(ul, ol, dl) {
  margin-block: 0;
}

.novelumo-article.nvr-root .nvr-visual :where(dl, dt, dd) {
  margin-left: 0;
  margin-right: 0;
}

.novelumo-article.nvr-root .nvr-visual :where(dt, dd) {
  float: none;
  clear: none;
}

.novelumo-article.nvr-root .nvr-visual :where(span, strong, em, b, i) {
  vertical-align: baseline;
}

.novelumo-article.nvr-root .nvr-visual {
  margin: 2rem 0 2.25rem;
  color: var(--nvr-text);
  font-family: inherit;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.novelumo-article.nvr-root .nvr-title {
  margin: 0 0 1rem;
  padding: .08rem 0 .08rem .78rem;
  border-left: 4px solid var(--nvr-blue);
  color: #18344f;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.5;
}

/* MATRIX_TABLE: cross-reference, not cards. */
.novelumo-article.nvr-root .nvr-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--nvr-navy);
}

.novelumo-article.nvr-root .nvr-matrix {
  width: 100%;
  min-width: 42rem;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  table-layout: auto;
}

.novelumo-article.nvr-root .nvr-matrix th,
.novelumo-article.nvr-root .nvr-matrix td {
  padding: .78rem .82rem;
  border: 1px solid var(--nvr-border);
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  font-size: .96em;
  font-weight: 500;
  line-height: 1.5;
}

.novelumo-article.nvr-root .nvr-matrix thead th {
  border-color: #335d84;
  background: var(--nvr-navy);
  color: #fff;
  font-weight: 700;
}

.novelumo-article.nvr-root .nvr-matrix tbody th {
  background: #eaf2fa;
  color: #27445f;
  font-weight: 700;
}

.novelumo-article.nvr-root .nvr-matrix tbody tr:nth-child(even) td {
  background: #f8fbfe;
}

/* DUAL_RAIL: left/right contrast around one centered axis. */
.novelumo-article.nvr-root .nvr-dual-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.4rem minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}

.novelumo-article.nvr-root .nvr-rail {
  display: grid;
  grid-template-rows: auto 1fr;
  align-self: stretch;
  width: 100%;
  min-height: 7rem;
  margin: 0;
  padding: .8rem .85rem .65rem;
  border-top: 3px solid var(--nvr-border);
}

.novelumo-article.nvr-root .nvr-rail--left {
  border-top-color: var(--nvr-green);
  background: linear-gradient(180deg, var(--nvr-green-soft) 0, rgba(238,249,244,0) 75%);
}

.novelumo-article.nvr-root .nvr-rail--right {
  border-top-color: var(--nvr-red);
  background: linear-gradient(180deg, var(--nvr-red-soft) 0, rgba(255,242,244,0) 75%);
}

.novelumo-article.nvr-root .nvr-rail--left .nvr-rail-label {
  color: #146e4b;
}

.novelumo-article.nvr-root .nvr-rail--right .nvr-rail-label {
  color: #a93443;
}

.novelumo-article.nvr-root .nvr-rail-label {
  margin: 0 0 .6rem;
  padding: 0;
  font-size: 1em;
  line-height: 1.45;
  font-weight: 700;
}

.novelumo-article.nvr-root .nvr-rail-list {
  margin: 0;
  padding-left: 1.3rem;
  align-self: start;
  font-size: .96em;
  line-height: 1.6;
}

.novelumo-article.nvr-root .nvr-rail-list li {
  margin: 0;
}

.novelumo-article.nvr-root .nvr-rail-list li + li {
  margin-top: .32rem;
}

.novelumo-article.nvr-root .nvr-rail--left .nvr-rail-list li::marker {
  color: var(--nvr-green);
}

.novelumo-article.nvr-root .nvr-rail--right .nvr-rail-list li::marker {
  color: var(--nvr-red);
}

.novelumo-article.nvr-root .nvr-rail-axis {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.novelumo-article.nvr-root .nvr-rail-axis::before {
  content: "";
  position: absolute;
  top: .2rem;
  bottom: .2rem;
  left: 50%;
  width: 1px;
  background: var(--nvr-border-strong);
}

.novelumo-article.nvr-root .nvr-rail-axis::after {
  content: "VS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 1.55rem;
  padding: .12rem .28rem;
  border: 1px solid var(--nvr-border);
  background: #fff;
  color: var(--nvr-muted);
  text-align: center;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .03em;
}

/* TRANSFORM: before -> explicit change -> after.
 * Desktop uses one explicit three-column/one-row grid. Explicit placement
 * prevents theme rules or content height from moving AFTER onto a different baseline.
 */
.novelumo-article.nvr-root .nvr-transform {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 8.25rem minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  column-gap: var(--nvr-layout-gap) !important;
  row-gap: 0 !important;
  width: 100%;
}

.novelumo-article.nvr-root .nvr-state,
.novelumo-article.nvr-root .nvr-transition {
  margin: 0 !important;
  min-width: 0;
  align-self: stretch !important;
}

.novelumo-article.nvr-root .nvr-state--before {
  grid-column: 1;
  grid-row: 1;
}

.novelumo-article.nvr-root .nvr-transition {
  grid-column: 2;
  grid-row: 1;
}

.novelumo-article.nvr-root .nvr-state--after {
  grid-column: 3;
  grid-row: 1;
}

.novelumo-article.nvr-root .nvr-state {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--nvr-node-min-height);
  padding: 1rem .9rem;
  border-top: 3px solid var(--nvr-border);
  border-bottom: 1px solid var(--nvr-border);
  text-align: center;
}

.novelumo-article.nvr-root .nvr-state--before {
  border-top-color: var(--nvr-red);
  background: var(--nvr-red-soft);
}

.novelumo-article.nvr-root .nvr-state--after {
  border-top-color: var(--nvr-green);
  background: var(--nvr-green-soft);
}

.novelumo-article.nvr-root .nvr-state-label {
  margin: 0 0 .35rem;
  color: var(--nvr-muted);
  font-size: .82em;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}

.novelumo-article.nvr-root .nvr-state--before .nvr-state-label { color: #a93443; }
.novelumo-article.nvr-root .nvr-state--after .nvr-state-label { color: #146e4b; }

.novelumo-article.nvr-root .nvr-state-main {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
}

.novelumo-article.nvr-root .nvr-state-note {
  margin: .35rem 0 0;
  color: var(--nvr-muted);
  font-size: .94em;
  line-height: 1.5;
}

.novelumo-article.nvr-root .nvr-transition {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--nvr-node-min-height);
  gap: .55rem;
  padding: .5rem .25rem;
  text-align: center;
}

.novelumo-article.nvr-root .nvr-transition::before,
.novelumo-article.nvr-root .nvr-transition::after {
  content: none !important;
  display: none !important;
}

.novelumo-article.nvr-root .nvr-transition-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.95rem;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  background: var(--nvr-blue);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.novelumo-article.nvr-root .nvr-transition-label {
  color: #355a80;
  font-size: .94em;
  font-weight: 700;
  line-height: 1.45;
}

/* MULTI_BRANCH: question -> condition -> outcome.
 * Desktop uses equal columns plus roomier condition/outcome areas.
 * Keep the centered question axis stable while giving each branch more width
 * and more vertical room, so moderate Japanese labels stay on one line more
 * often and still align cleanly when they wrap.
 */
.novelumo-article.nvr-root .nvr-decision {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.novelumo-article.nvr-root .nvr-decision-question {
  width: min(32rem, 84%);
  margin: 0 auto;
  padding: .8rem 1rem .72rem;
  border-bottom: 3px solid var(--nvr-blue);
  background: linear-gradient(180deg, #f5f9ff 0, rgba(245,249,255,0) 100%);
  color: #1e4368;
  text-align: center;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.5;
}

.novelumo-article.nvr-root .nvr-decision-axis {
  width: 1px;
  height: 1rem;
  margin: 0 auto;
  background: #9fb6cd;
}

.novelumo-article.nvr-root .nvr-decision-branches {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto 1rem auto;
  grid-auto-flow: row;
  align-items: stretch;
  column-gap: .55rem;
  row-gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0 0;
  border-top: 1px solid #9fb6cd;
}

/* Renderer output can declare the actual branch count. The canonical fixture
 * intentionally has no count class and therefore keeps the 3-column default. */
.novelumo-article.nvr-root .nvr-decision-branches.nvr-branch-count--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.novelumo-article.nvr-root .nvr-decision-branches.nvr-branch-count--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.novelumo-article.nvr-root .nvr-decision-branches.nvr-branch-count--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.novelumo-article.nvr-root .nvr-decision-branches.nvr-branch-count--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.novelumo-article.nvr-root .nvr-decision-branches.nvr-branch-count--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.novelumo-article.nvr-root .nvr-decision-branches::before {
  content: none !important;
  display: none !important;
}

.novelumo-article.nvr-root .nvr-decision-branch {
  position: relative;
  display: grid !important;
  grid-template-rows: minmax(4.25rem, auto) 1rem minmax(4.4rem, auto);
  grid-row: 1 / 4;
  align-items: stretch;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  text-align: center;
}

@supports (grid-template-rows: subgrid) {
  .novelumo-article.nvr-root .nvr-decision-branch {
    grid-template-rows: subgrid;
  }
}

.novelumo-article.nvr-root .nvr-decision-branch::before,
.novelumo-article.nvr-root .nvr-decision-branch::after {
  content: none !important;
  display: none !important;
}

.novelumo-article.nvr-root .nvr-branch-condition {
  position: relative;
  display: flex;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 4.25rem;
  margin: 0 !important;
  padding: .62rem .8rem;
  color: #41566d;
  font-size: .98em;
  font-weight: 700;
  line-height: 1.5;
}

.novelumo-article.nvr-root .nvr-branch-condition::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  width: 1px;
  height: 1rem;
  background: #9fb6cd;
  transform: translateX(-50%);
  pointer-events: none;
}

.novelumo-article.nvr-root .nvr-branch-connector {
  display: block;
  grid-row: 2;
  width: 1px;
  height: 1rem;
  margin: 0 auto;
  background: #9fb6cd;
}

.novelumo-article.nvr-root .nvr-branch-outcome {
  display: flex;
  grid-row: 3;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 4.4rem;
  margin: 0 !important;
  padding: .72rem .8rem;
  border-top: 3px solid #4f91d6;
  background: var(--nvr-blue-soft);
  color: #173f66;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.45;
}

/* CAUSE_CHAIN: semantic roles, not numbered steps.
 * Desktop uses a five-column grid so PROBLEM / CAUSE / FIX are exactly equal
 * widths. Arrow tracks are fixed and do not steal width from any node.
 */
.novelumo-article.nvr-root .nvr-cause-chain {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr) 2.2rem minmax(0, 1fr);
  grid-template-rows: minmax(6.5rem, auto);
  align-items: stretch !important;
  column-gap: .45rem;
  row-gap: 0;
  width: 100%;
}

.novelumo-article.nvr-root .nvr-cause-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch !important;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  box-sizing: border-box;
  padding: .9rem .8rem .85rem .9rem;
  border-left: 4px solid var(--nvr-border);
  border-top: 0;
  border-bottom: 0;
}

.novelumo-article.nvr-root .nvr-cause-node--problem {
  border-left-color: var(--nvr-problem);
  background: var(--nvr-red-soft);
}

.novelumo-article.nvr-root .nvr-cause-node--cause {
  border-left-color: var(--nvr-cause);
  background: var(--nvr-amber-soft);
}

.novelumo-article.nvr-root .nvr-cause-node--fix {
  border-left-color: var(--nvr-fix);
  background: var(--nvr-green-soft);
}

.novelumo-article.nvr-root .nvr-role-label {
  margin: 0 0 .4rem;
  color: var(--nvr-muted);
  font-size: .8em;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}

.novelumo-article.nvr-root .nvr-cause-node--problem .nvr-role-label {
  color: #a93443;
}

.novelumo-article.nvr-root .nvr-cause-node--cause .nvr-role-label {
  color: #9a5e0b;
}

.novelumo-article.nvr-root .nvr-cause-node--fix .nvr-role-label {
  color: #146e4b;
}

.novelumo-article.nvr-root .nvr-cause-value {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.55;
}

.novelumo-article.nvr-root .nvr-cause-link {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
  min-width: 2.2rem;
  color: #7892ac;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

/* FACT_LIST: use a real semantic table.
 * Classic Editor/THE THOR can strip dt/dd grouping; table markup survives and
 * is the correct visual grammar for a two-column quick-reference lookup.
 */
.novelumo-article.nvr-root .nvr-fact-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid #7da0c1;
}

.novelumo-article.nvr-root .nvr-fact-table {
  display: table !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: #fff !important;
}

.novelumo-article.nvr-root .nvr-fact-table tbody {
  display: table-row-group !important;
}

.novelumo-article.nvr-root .nvr-fact-table tr {
  display: table-row !important;
}

.novelumo-article.nvr-root .nvr-fact-table th,
.novelumo-article.nvr-root .nvr-fact-table td {
  display: table-cell !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: .82rem .9rem !important;
  border: 1px solid var(--nvr-border) !important;
  text-align: left !important;
  vertical-align: middle !important;
  font-size: 1em !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}

.novelumo-article.nvr-root .nvr-fact-table th {
  width: 40% !important;
  background: #eaf2fa !important;
  color: #405b76 !important;
  font-weight: 700 !important;
}

.novelumo-article.nvr-root .nvr-fact-table td {
  width: 60% !important;
  background: #fff !important;
  color: #1e3e5c !important;
  font-weight: 600 !important;
}

/* Legacy fixture fallback. New renderer output no longer uses dl/dt/dd. */
.novelumo-article.nvr-root .nvr-pattern--quick-reference .nvr-fact-list {
  width: 100%;
  margin: 0;
}

/* Desktop-only optical adjustment: keep the PROBLEM card height aligned
 * with CAUSE/FIX, but shorten only its red vertical accent line slightly. */
@media (min-width: 768px) {
  .novelumo-article.nvr-root .nvr-cause-chain {
    grid-template-rows: minmax(6.5rem, auto) !important;
    align-items: stretch !important;
  }

  .novelumo-article.nvr-root .nvr-cause-node,
  .novelumo-article.nvr-root .nvr-cause-link {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .novelumo-article.nvr-root .nvr-cause-node--problem {
    position: relative;
    border-left-color: transparent;
  }

  .novelumo-article.nvr-root .nvr-cause-node--problem::before {
    content: "";
    position: absolute;
    top: .55rem;
    bottom: .55rem;
    left: 0;
    width: 4px;
    background: var(--nvr-problem);
    pointer-events: none;
  }
}

@media (max-width: 767px) {

  .novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-trunk,
  .novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-branches {
    width: 100%;
  }

  .novelumo-article.nvr-root .nvr-hierarchy-branches {
    grid-template-columns: 1fr;
  }

  .novelumo-article.nvr-root .nvr-visual {
    margin: 1.7rem 0 1.95rem;
  }

  .novelumo-article.nvr-root .nvr-matrix {
    min-width: 38rem;
  }

  /* DUAL_RAIL: existing stable mobile stack. */
  .novelumo-article.nvr-root .nvr-dual-rail {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .novelumo-article.nvr-root .nvr-rail {
    min-height: 0;
  }

  .novelumo-article.nvr-root .nvr-rail-axis {
    height: 1.5rem;
    min-height: 1.5rem;
  }

  .novelumo-article.nvr-root .nvr-rail-axis::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }

  /* TRANSFORM: one-column semantic stack. */
  .novelumo-article.nvr-root .nvr-transform {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: .65rem !important;
  }

  .novelumo-article.nvr-root .nvr-state--before,
  .novelumo-article.nvr-root .nvr-transition,
  .novelumo-article.nvr-root .nvr-state--after {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .novelumo-article.nvr-root .nvr-state,
  .novelumo-article.nvr-root .nvr-transition {
    min-height: 0;
  }

  .novelumo-article.nvr-root .nvr-transition {
    padding: .2rem 0;
  }

  .novelumo-article.nvr-root .nvr-transition-arrow {
    transform: rotate(90deg);
  }

  /* MULTI_BRANCH: each condition/outcome remains one flex row. */
  .novelumo-article.nvr-root .nvr-decision {
    max-width: 100%;
  }

  .novelumo-article.nvr-root .nvr-decision-question {
    width: 100%;
  }

  .novelumo-article.nvr-root .nvr-decision-axis {
    display: none;
  }

  .novelumo-article.nvr-root .nvr-decision-branches {
    display: flex !important;
    flex-direction: column;
    gap: .75rem;
    padding-top: 0;
    border-top: 0;
  }

  .novelumo-article.nvr-root .nvr-decision-branch {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    text-align: left;
  }

  .novelumo-article.nvr-root .nvr-decision-branch::before,
  .novelumo-article.nvr-root .nvr-decision-branch::after,
  .novelumo-article.nvr-root .nvr-branch-condition::before {
    content: none !important;
    display: none !important;
  }

  .novelumo-article.nvr-root .nvr-branch-condition,
  .novelumo-article.nvr-root .nvr-branch-outcome {
    min-height: 3.1rem;
    font-size: .98em;
  }

  .novelumo-article.nvr-root .nvr-branch-condition {
    flex: 1 1 0;
    justify-content: flex-start;
    padding: .5rem .55rem;
  }

  .novelumo-article.nvr-root .nvr-branch-connector {
    position: relative;
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: auto;
    margin: 0;
    background: transparent;
  }

  .novelumo-article.nvr-root .nvr-branch-connector::before {
    content: "";
    position: absolute;
    top: 50%;
    left: .2rem;
    right: .2rem;
    height: 1px;
    background: #9fb6cd;
  }

  .novelumo-article.nvr-root .nvr-branch-outcome {
    flex: 1 1 0;
    justify-content: flex-start;
    padding: .5rem .6rem;
    border-top: 0;
    border-left: 3px solid #4f91d6;
  }

  /* CAUSE_CHAIN: vertical flex flow; arrows rotate between equal-width nodes. */
  .novelumo-article.nvr-root .nvr-cause-chain {
    display: flex;
    flex-direction: column;
    gap: .45rem;
  }

  .novelumo-article.nvr-root .nvr-cause-node {
    flex: 0 0 auto;
    min-height: 0;
  }

  .novelumo-article.nvr-root .nvr-cause-link {
    flex: 0 0 1.6rem;
    min-width: 0;
    min-height: 1.6rem;
    transform: rotate(90deg);
  }

  /* FACT_LIST table: preserve table semantics; only adjust column ratio/padding. */
  .novelumo-article.nvr-root .nvr-fact-table th {
    width: 42% !important;
    padding: .72rem .7rem !important;
  }

  .novelumo-article.nvr-root .nvr-fact-table td {
    width: 58% !important;
    padding: .72rem .7rem !important;
  }
}


/* ============================================================
 * v0.1.16: four additive reading geometries.
 * Existing six pattern rules above are intentionally unchanged.
 * ============================================================ */

/* PROCESS_FLOW: ordered operational sequence, not a decision tree. */
.novelumo-article.nvr-root .nvr-process-flow {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: .25rem 0;
}

/* THE THOR may add vertical margins between consecutive div children.
 * Reset every direct flex item so step 2+ and arrows share the exact
 * same top origin as step 1. This is intentionally process-flow-only.
 */
.novelumo-article.nvr-root .nvr-process-flow > .nvr-process-step,
.novelumo-article.nvr-root .nvr-process-flow > .nvr-process-link {
  margin: 0 !important;
}

.novelumo-article.nvr-root .nvr-process-step {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  padding: .1rem .28rem .25rem;
  text-align: center;
}

.novelumo-article.nvr-root .nvr-process-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 .58rem;
  border: 2px solid #4f91d6;
  border-radius: 999px;
  background: #fff;
  color: var(--nvr-navy);
  font-weight: 800;
  line-height: 1;
}

.novelumo-article.nvr-root .nvr-process-label {
  margin: 0 0 .2rem;
  color: var(--nvr-blue);
  font-size: .78em;
  font-weight: 800;
  letter-spacing: .04em;
}

.novelumo-article.nvr-root .nvr-process-main {
  color: #1f3f5d;
  font-weight: 750;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-process-note {
  margin-top: .28rem;
  color: var(--nvr-muted);
  font-size: .9em;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-process-link {
  display: flex;
  flex: 0 0 2rem;
  align-items: flex-start;
  justify-content: center;
  padding-top: .45rem;
  color: #7d9bb8;
  font-size: 1.18em;
  font-weight: 700;
  line-height: 1;
}

/* TIMELINE: chronological reading with a dedicated time axis. */
.novelumo-article.nvr-root .nvr-timeline {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.novelumo-article.nvr-root .nvr-timeline-event {
  display: grid !important;
  grid-template-columns: minmax(6.5rem, 8.5rem) 2rem minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* v0.1.20: force-hide ordered-list markers under THE THOR and align
 * the time labels (公開直後〜継続) with the main event titles.
 */
.novelumo-article.nvr-root .nvr-timeline-event::marker {
  content: "";
  font-size: 0;
}

/* v0.1.21: THE THOR may draw ordered-list numbers with li::before rather than ::marker.
 * Remove only that generated number; keep the timeline node/line and all event text unchanged.
 */
.novelumo-article.nvr-root ol.nvr-timeline > li.nvr-timeline-event::before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

.novelumo-article.nvr-root ol.nvr-timeline {
  counter-reset: none !important;
}

.novelumo-article.nvr-root ol.nvr-timeline > li.nvr-timeline-event {
  counter-increment: none !important;
}

.novelumo-article.nvr-root .nvr-timeline-time {
  padding: .62rem .8rem 0 0;
  color: var(--nvr-navy);
  text-align: right;
  font-weight: 750;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-timeline-marker {
  position: relative;
  min-height: 4.35rem;
}

.novelumo-article.nvr-root .nvr-timeline-marker::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #c8d6e4;
}

.novelumo-article.nvr-root .nvr-timeline-event:first-child .nvr-timeline-marker::before {
  top: 1.08rem;
}

.novelumo-article.nvr-root .nvr-timeline-event:last-child .nvr-timeline-marker::before {
  bottom: calc(100% - 1.08rem);
}

.novelumo-article.nvr-root .nvr-timeline-marker span {
  position: absolute;
  top: .82rem;
  left: 50%;
  width: .72rem;
  height: .72rem;
  transform: translateX(-50%);
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--nvr-blue);
  box-shadow: 0 0 0 2px #9ab9d8;
}

.novelumo-article.nvr-root .nvr-timeline-content {
  padding: .62rem 0 1.05rem .6rem;
  border-bottom: 1px solid #e3eaf1;
}

.novelumo-article.nvr-root .nvr-timeline-event:last-child .nvr-timeline-content {
  border-bottom: 0;
}

.novelumo-article.nvr-root .nvr-timeline-main {
  color: #1f3f5d;
  font-weight: 750;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-timeline-note {
  margin-top: .22rem;
  color: var(--nvr-muted);
  font-size: .92em;
  line-height: 1.5;
}


/* v0.1.22 desktop optical alignment:
 * move only the left time labels down so 公開直後〜継続 sit on the same
 * visual row as the corresponding right-side event headings.
 * Does not change the timeline line, dots, event spacing, or mobile layout.
 */
@media (min-width: 768px) {
  .novelumo-article.nvr-root .nvr-timeline-time {
    transform: translateY(2.05rem);
  }
}

/* HIERARCHY_TREE: parent/group/child structure. */
.novelumo-article.nvr-root .nvr-hierarchy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  width: 100%;
  margin: 0 !important;
  padding: .2rem 0 0;
}

/* v0.1.18 THE THOR alignment patch.
 * Keep the parent node, trunk, and branch grid on one shared center axis.
 * THE THOR may add margins to consecutive block children, so explicitly
 * own those margins inside this pattern only.
 */
.novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-root {
  justify-self: center;
  margin: 0 !important;
}

.novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-trunk,
.novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-branches,
.novelumo-article.nvr-root .nvr-hierarchy-branches > .nvr-hierarchy-branch {
  margin: 0 !important;
}

/* v0.1.19: keep the root node, trunk, and the three desktop branches on one
 * tighter centered width so the parent line lands exactly over the middle
 * branch label ("デザイン") under THE THOR.
 */
.novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-trunk,
.novelumo-article.nvr-root .nvr-hierarchy > .nvr-hierarchy-branches {
  width: min(100%, 52rem);
  justify-self: center;
}

.novelumo-article.nvr-root .nvr-hierarchy-root {
  width: min(100%, 18rem);
  margin: 0 auto;
  padding: .72rem 1rem;
  border-bottom: 3px solid var(--nvr-blue);
  background: #edf5fd;
  color: #183f64;
  text-align: center;
  font-weight: 800;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-hierarchy-trunk {
  position: relative;
  width: 100%;
  height: 2rem;
}

.novelumo-article.nvr-root .nvr-hierarchy-trunk::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #afc3d7;
}

.novelumo-article.nvr-root .nvr-hierarchy-branches {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  padding-top: 1.3rem;
}

.novelumo-article.nvr-root .nvr-hierarchy-branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #afc3d7;
}

.novelumo-article.nvr-root .nvr-hierarchy-branch {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.novelumo-article.nvr-root .nvr-hierarchy-branch::before {
  content: "";
  position: absolute;
  top: -1.3rem;
  left: 50%;
  width: 2px;
  height: 1.3rem;
  transform: translateX(-50%);
  background: #afc3d7;
}

.novelumo-article.nvr-root .nvr-hierarchy-branch-label {
  padding: .58rem .72rem;
  border-top: 3px solid #5f94c7;
  background: #f5f9fd;
  color: #294f72;
  text-align: center;
  font-weight: 750;
  line-height: 1.4;
}

/* v0.1.19: reduce all-blue appearance with semantic soft tints. */
.novelumo-article.nvr-root .nvr-hierarchy-branch:nth-child(1) .nvr-hierarchy-branch-label {
  border-top-color: #d6a93f;
  background: #fff8e8;
  color: #7a5610;
}

.novelumo-article.nvr-root .nvr-hierarchy-branch:nth-child(2) .nvr-hierarchy-branch-label {
  border-top-color: #4fa77b;
  background: #eef9f3;
  color: #1f6242;
}

.novelumo-article.nvr-root .nvr-hierarchy-branch:nth-child(3) .nvr-hierarchy-branch-label {
  border-top-color: #8a6bd1;
  background: #faf7ff;
  color: #5c43a2;
}

.novelumo-article.nvr-root .nvr-hierarchy-children {
  margin: .35rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.novelumo-article.nvr-root .nvr-hierarchy-children li {
  position: relative;
  margin: 0 !important;
  padding: .45rem .35rem .45rem 1rem;
  border-bottom: 1px solid #e5ebf1;
  color: #334d66;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-hierarchy-children li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: .24rem;
  width: .38rem;
  height: .38rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #7da4c9;
}

.novelumo-article.nvr-root .nvr-hierarchy-branch:nth-child(1) .nvr-hierarchy-children li::before { background: #d6a93f; }
.novelumo-article.nvr-root .nvr-hierarchy-branch:nth-child(2) .nvr-hierarchy-children li::before { background: #4fa77b; }
.novelumo-article.nvr-root .nvr-hierarchy-branch:nth-child(3) .nvr-hierarchy-children li::before { background: #8a6bd1; }

/* METRIC_CARDS: compact KPI scan; value is mandatory, so this is not a generic text-card pattern. */
.novelumo-article.nvr-root .nvr-metrics {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: .85rem;
  width: 100%;
  margin: 0 !important;
}

/* v0.1.19: align all four metric cards and their value rows under THE THOR. */
.novelumo-article.nvr-root .nvr-metrics > .nvr-metric {
  margin: 0 !important;
  align-self: stretch;
}

.novelumo-article.nvr-root .nvr-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: .9rem .9rem .82rem;
  border: 1px solid #d7e0e9;
  border-top: 3px solid #4f91d6;
  background: #fff;
}

.novelumo-article.nvr-root .nvr-metric-value {
  margin: 0 !important;
  min-height: 1.2em;
  display: flex;
  align-items: flex-start;
  color: #174f83;
  font-size: 1.65em;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.novelumo-article.nvr-root .nvr-metric-label {
  margin-top: .35rem !important;
  color: #2f4962;
  font-weight: 750;
  line-height: 1.4;
}

.novelumo-article.nvr-root .nvr-metric-note {
  margin-top: .28rem !important;
  color: var(--nvr-muted);
  font-size: .88em;
  line-height: 1.45;
}

.novelumo-article.nvr-root .nvr-metric:nth-child(1) {
  border-top-color: #4f8fd6;
  background: #f7fbff;
}
.novelumo-article.nvr-root .nvr-metric:nth-child(1) .nvr-metric-value { color: #1f5d9c; }

.novelumo-article.nvr-root .nvr-metric:nth-child(2) {
  border-top-color: #4fa77b;
  background: #f4fbf7;
}
.novelumo-article.nvr-root .nvr-metric:nth-child(2) .nvr-metric-value { color: #22724d; }

.novelumo-article.nvr-root .nvr-metric:nth-child(3) {
  border-top-color: #d48a3a;
  background: #fff8f1;
}
.novelumo-article.nvr-root .nvr-metric:nth-child(3) .nvr-metric-value { color: #9a5a17; }

.novelumo-article.nvr-root .nvr-metric:nth-child(4) {
  border-top-color: #8a6bd1;
  background: #faf7ff;
}
.novelumo-article.nvr-root .nvr-metric:nth-child(4) .nvr-metric-value { color: #5c43a2; }

@media (max-width: 767px) {
  /* PROCESS_FLOW: vertical sequence with down arrows. */
  .novelumo-article.nvr-root .nvr-process-flow {
    flex-direction: column;
    gap: 0;
  }

  .novelumo-article.nvr-root .nvr-process-step {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: .75rem;
    align-items: start;
    padding: .18rem 0;
    text-align: left;
  }

  .novelumo-article.nvr-root .nvr-process-index {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .novelumo-article.nvr-root .nvr-process-label,
  .novelumo-article.nvr-root .nvr-process-main,
  .novelumo-article.nvr-root .nvr-process-note {
    grid-column: 2;
  }

  .novelumo-article.nvr-root .nvr-process-label {
    grid-row: 1;
  }

  .novelumo-article.nvr-root .nvr-process-main {
    grid-row: 2;
  }

  .novelumo-article.nvr-root .nvr-process-note {
    grid-row: 3;
  }

  .novelumo-article.nvr-root .nvr-process-link {
    flex: 0 0 1.8rem;
    justify-content: flex-start;
    padding: .25rem 0 .25rem .7rem;
  }

  .novelumo-article.nvr-root .nvr-process-link span {
    transform: rotate(90deg);
  }

  /* TIMELINE: keep time as a compact first line, not a wide desktop column. */
  .novelumo-article.nvr-root .nvr-timeline-event {
    grid-template-columns: 1.45rem minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .novelumo-article.nvr-root .nvr-timeline-time {
    grid-column: 2;
    grid-row: 1;
    padding: .62rem 0 .08rem .35rem;
    text-align: left;
    font-size: .92em;
    line-height: 1.35;
  }

  .novelumo-article.nvr-root .nvr-timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 4.55rem;
  }

  .novelumo-article.nvr-root .nvr-timeline-marker span {
    top: .88rem;
  }

  .novelumo-article.nvr-root .nvr-timeline-content {
    grid-column: 2;
    grid-row: 2;
    padding: .12rem 0 .9rem .35rem;
  }

  /* HIERARCHY_TREE: vertical groups; remove the wide sibling rail. */
  .novelumo-article.nvr-root .nvr-hierarchy-trunk {
    height: 1.2rem;
  }

  .novelumo-article.nvr-root .nvr-hierarchy-branches {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 0 0 0 .95rem;
  }

  .novelumo-article.nvr-root .nvr-hierarchy-branches::before {
    top: 0;
    bottom: 0;
    left: .34rem;
    right: auto;
    width: 2px;
    height: auto;
  }

  .novelumo-article.nvr-root .nvr-hierarchy-branch::before {
    top: 1.15rem;
    left: -0.62rem;
    width: .62rem;
    height: 2px;
    transform: none;
  }

  .novelumo-article.nvr-root .nvr-hierarchy-branch-label {
    text-align: left;
  }

  /* METRIC_CARDS: two columns when practical, one on very narrow screens. */
  .novelumo-article.nvr-root .nvr-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .novelumo-article.nvr-root .nvr-metric {
    padding: .75rem .72rem;
  }

  .novelumo-article.nvr-root .nvr-metric-value {
    font-size: 1.4em;
  }
}

@media (max-width: 420px) {
  .novelumo-article.nvr-root .nvr-metrics {
    grid-template-columns: 1fr;
  }
}
