.tad-single {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.tad-hero {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.tad-kicker {
    margin: 0 0 6px;
    font-size: 0.9rem;
    color: #6b7280;
    letter-spacing: 0.04em;
}

.tad-subtitle {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 1.05rem;
}

.tad-card {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.tad-card h2 {
    margin-top: 0;
}

.tad-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.tad-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tad-info table,
.tad-relations table {
    width: 100%;
    border-collapse: collapse;
}

.tad-info th,
.tad-info td,
.tad-relations th,
.tad-relations td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.tad-info th,
.tad-relations th {
    width: 32%;
    color: #4b5563;
    font-weight: 600;
    text-align: left;
}

.tad-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tad-link-button,
.tad-language-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.3;
}

.tad-link-button:hover,
.tad-language-link:hover {
    text-decoration: underline;
}

.tad-language-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tad-language-more {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    padding: 6px 8px;
}

.tad-link-list {
    margin-left: 1.2em;
    word-break: break-word;
}

.tad-muted,
.tad-note {
    color: #6b7280;
}

.tad-admin-review {
    margin: 28px 0;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.tad-admin-review pre {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 360px;
    overflow: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
}


/* v1.5.0 mini link map */
.tad-link-map-card {
  overflow: hidden;
}
.tad-link-map-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.tad-link-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.9rem;
}
.tad-link-map-controls label {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  white-space: nowrap;
}
.tad-link-map-controls select {
  max-width: 8rem;
  padding: 0.25rem 0.45rem;
}
.tad-link-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  margin: 0.5rem 0 0.85rem;
  font-size: 0.9rem;
  opacity: 0.88;
}
.tad-node-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  margin-right: 0.25rem;
  vertical-align: -0.08em;
}
.tad-node-person,
.tad-link-map-node-person .tad-link-map-node-dot {
  background: #5c6bc0;
}
.tad-node-work,
.tad-link-map-node-work .tad-link-map-node-dot {
  background: #8d6e63;
}
.tad-node-concept,
.tad-link-map-node-concept .tad-link-map-node-dot {
  background: #00897b;
}
.tad-link-map {
  position: relative;
  width: 100%;
  min-height: 620px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.035), rgba(0,0,0,0.012) 42%, transparent 72%);
  overflow: hidden;
}
.tad-link-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.tad-link-map-edge {
  stroke: rgba(60, 60, 60, 0.32);
  stroke-linecap: round;
}
.tad-link-map-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.tad-link-map-node {
  --tad-node-size: 20px;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 11rem;
  padding: 0.25rem 0.45rem 0.25rem 0.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  color: inherit;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.tad-link-map-node:hover,
.tad-link-map-node:focus {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 5;
}
.tad-link-map-node-dot {
  flex: 0 0 auto;
  width: var(--tad-node-size);
  height: var(--tad-node-size);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.72);
}
.tad-link-map-node-center {
  font-weight: 700;
  border-color: rgba(0,0,0,0.2);
}
.tad-link-map-node-center .tad-link-map-node-dot {
  width: calc(var(--tad-node-size) + 6px);
  height: calc(var(--tad-node-size) + 6px);
}
.tad-link-map-node-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  line-height: 1.2;
}
.tad-link-map-summary {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}
@media (max-width: 700px) {
  .tad-link-map-header {
    display: block;
  }
  .tad-link-map-controls {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }
  .tad-link-map {
    min-height: 520px;
  }
  .tad-link-map-node {
    max-width: 8rem;
    padding-right: 0.35rem;
  }
  .tad-link-map-node-label {
    font-size: 0.78rem;
  }
}

/* v1.5.1 link map controls */
.tad-link-map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 10px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.tad-link-map-filters label,
.tad-link-map-controls label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.tad-link-map-dedicated-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.tad-link-map-edge-label {
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
  fill: #555;
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.tad-dedicated-map-page {
  background: #f7f5ef;
}
.tad-dedicated-map-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.tad-dedicated-map-wrap .tad-link-map {
  min-height: 760px;
}
@media (max-width: 680px) {
  .tad-link-map-controls,
  .tad-link-map-filters {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v1.5.2 link map spacing improvements */
.tad-link-map-card {
  overflow: visible;
}
.tad-link-map {
  min-height: 720px;
}
.tad-link-map-node {
  max-width: 9.6rem;
}
.tad-link-map-node-label {
  font-size: var(--tad-node-font-size, 0.84rem);
}
.tad-link-map-node-anchor-middle {
  transform: translate(-50%, -50%);
}
.tad-link-map-node-anchor-right {
  transform: translate(0, -50%);
}
.tad-link-map-node-anchor-left {
  transform: translate(-100%, -50%);
}
.tad-link-map-node-anchor-top {
  transform: translate(-50%, -100%);
}
.tad-link-map-node-anchor-bottom {
  transform: translate(-50%, 0);
}
.tad-link-map-edge-label {
  font-size: 0.74rem;
  opacity: 0.92;
}
.tad-link-map-admin-preview .tad-link-map {
  min-height: 780px;
}
.tad-dedicated-map-wrap .tad-link-map {
  min-height: 880px;
}
@media (max-width: 700px) {
  .tad-link-map {
    min-height: 580px;
  }
  .tad-link-map-node {
    max-width: 8rem;
  }
  .tad-link-map-admin-preview .tad-link-map {
    min-height: 660px;
  }
  .tad-dedicated-map-wrap .tad-link-map {
    min-height: 720px;
  }
}


/* v1.5.3 balanced cluster link map */
.tad-link-map-card {
  overflow: visible;
}
.tad-link-map-controls label:has([data-tad-map-labels]) {
  opacity: 0.82;
}
.tad-link-map {
  min-height: 760px;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.032), rgba(0,0,0,0.012) 38%, transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.96));
  overflow: hidden;
}
.tad-link-map-inner,
.tad-link-map-nodes {
  position: absolute;
  inset: 0;
}
.tad-link-map-edge {
  stroke: rgba(102, 139, 198, 0.25);
  stroke-linecap: round;
}
.tad-link-map-node {
  --tad-node-size: 20px;
  --tad-node-font-size: 0.78rem;
  max-width: 9.2rem;
  min-height: 2.15rem;
  padding: 0.28rem 0.54rem 0.28rem 0.36rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(30, 41, 59, 0.10);
  box-shadow: 0 5px 18px rgba(15,23,42,0.08);
}
.tad-link-map-node:hover,
.tad-link-map-node:focus {
  z-index: 10;
}
.tad-link-map-node-center {
  width: 9.2rem;
  height: 9.2rem;
  max-width: none;
  padding: 0.7rem;
  justify-content: center;
  flex-direction: column;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 14px 38px rgba(15,23,42,0.16);
}
.tad-link-map-node-center .tad-link-map-node-dot {
  width: calc(var(--tad-node-size) + 12px);
  height: calc(var(--tad-node-size) + 12px);
}
.tad-link-map-node-depth-1:not(.tad-link-map-node-center) {
  width: 6.4rem;
  height: 6.4rem;
  max-width: none;
  padding: 0.45rem;
  justify-content: center;
  flex-direction: column;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}
.tad-link-map-node-depth-1:not(.tad-link-map-node-center) .tad-link-map-node-dot {
  width: calc(var(--tad-node-size) + 8px);
  height: calc(var(--tad-node-size) + 8px);
}
.tad-link-map-node-depth-2 {
  border-radius: 10px;
  min-height: 1.85rem;
  padding: 0.24rem 0.44rem;
  box-shadow: 0 4px 12px rgba(15,23,42,0.07);
}
.tad-link-map-node-depth-2 .tad-link-map-node-dot {
  width: 0.62rem;
  height: 0.62rem;
}
.tad-link-map-node-label {
  font-size: var(--tad-node-font-size, 0.78rem);
  line-height: 1.18;
}
.tad-link-map-node-center .tad-link-map-node-label,
.tad-link-map-node-depth-1 .tad-link-map-node-label {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tad-link-map-node-anchor-middle {
  transform: translate(-50%, -50%);
}
.tad-link-map-node-anchor-right {
  transform: translate(0, -50%);
}
.tad-link-map-node-anchor-left {
  transform: translate(-100%, -50%);
}
.tad-link-map-node-anchor-top {
  transform: translate(-50%, -100%);
}
.tad-link-map-node-anchor-bottom {
  transform: translate(-50%, 0);
}
.tad-link-map-node-anchor-right:hover,
.tad-link-map-node-anchor-right:focus {
  transform: translate(0, -50%) scale(1.05);
}
.tad-link-map-node-anchor-left:hover,
.tad-link-map-node-anchor-left:focus {
  transform: translate(-100%, -50%) scale(1.05);
}
.tad-link-map-node-anchor-top:hover,
.tad-link-map-node-anchor-top:focus {
  transform: translate(-50%, -100%) scale(1.05);
}
.tad-link-map-node-anchor-bottom:hover,
.tad-link-map-node-anchor-bottom:focus {
  transform: translate(-50%, 0) scale(1.05);
}
.tad-link-map-node-anchor-middle:hover,
.tad-link-map-node-anchor-middle:focus {
  transform: translate(-50%, -50%) scale(1.05);
}
.tad-link-map-edge-label {
  font-size: 0.72rem;
  opacity: 0.86;
}
.tad-link-map-admin-preview .tad-link-map {
  min-height: 860px;
}
.tad-dedicated-map-wrap .tad-link-map {
  min-height: 980px;
}
@media (max-width: 700px) {
  .tad-link-map {
    min-height: 700px;
  }
  .tad-link-map-node-center {
    width: 7.6rem;
    height: 7.6rem;
  }
  .tad-link-map-node-depth-1:not(.tad-link-map-node-center) {
    width: 5.5rem;
    height: 5.5rem;
  }
  .tad-link-map-node-depth-2 {
    max-width: 7.2rem;
  }
  .tad-link-map-admin-preview .tad-link-map {
    min-height: 760px;
  }
  .tad-dedicated-map-wrap .tad-link-map {
    min-height: 840px;
  }
}

/* v1.5.4 link map filter enhancements */
.tad-link-map-filters {
  gap: 12px 16px;
}
.tad-link-map-filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 6px 0;
}
.tad-link-map-filter-group strong {
  margin-right: 2px;
  color: #374151;
  font-size: 0.86rem;
}
.tad-link-map-filter-group label {
  margin: 0;
}
.tad-link-map-node[data-generic="1"] {
  opacity: 0.72;
}
.tad-link-map-node[data-priority="1"] {
  box-shadow: 0 5px 18px rgba(0,0,0,0.13), 0 0 0 2px rgba(0,137,123,0.14);
}
.tad-link-map-summary {
  pointer-events: none;
}
@media (max-width: 680px) {
  .tad-link-map-filter-group {
    display: flex;
    width: 100%;
  }
}

/* v1.5.5 mobile alignment fix */
.tad-link-map-inner,
.tad-link-map-nodes {
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
}
.tad-link-map-node,
.tad-link-map-node-anchor-middle,
.tad-link-map-node-anchor-right,
.tad-link-map-node-anchor-left,
.tad-link-map-node-anchor-top,
.tad-link-map-node-anchor-bottom {
  transform: translate(-50%, -50%);
}
.tad-link-map-node:hover,
.tad-link-map-node:focus,
.tad-link-map-node-anchor-middle:hover,
.tad-link-map-node-anchor-middle:focus,
.tad-link-map-node-anchor-right:hover,
.tad-link-map-node-anchor-right:focus,
.tad-link-map-node-anchor-left:hover,
.tad-link-map-node-anchor-left:focus,
.tad-link-map-node-anchor-top:hover,
.tad-link-map-node-anchor-top:focus,
.tad-link-map-node-anchor-bottom:hover,
.tad-link-map-node-anchor-bottom:focus {
  transform: translate(-50%, -50%) scale(1.05);
}
@media (max-width: 700px) {
  .tad-link-map {
    min-height: 760px;
  }
  .tad-link-map-node-center {
    width: 7.2rem;
    height: 7.2rem;
  }
  .tad-link-map-node-depth-1:not(.tad-link-map-node-center) {
    width: 5.2rem;
    height: 5.2rem;
  }
}

/* v1.5.6 node detail panel */
.tad-link-map-detail-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 8px 26px rgba(0,0,0,0.06);
}
.tad-link-map-detail-panel.is-active {
  border-color: rgba(0,137,123,0.28);
}
.tad-link-map-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.tad-link-map-detail-head h3 {
  margin: 4px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 1.15rem;
}
.tad-link-map-detail-kicker {
  margin: 0;
  color: #6b7280;
  font-size: 0.84rem;
}
.tad-link-map-detail-close {
  white-space: nowrap;
}
.tad-link-map-detail-overview {
  margin: 0 0 12px;
  line-height: 1.75;
}
.tad-link-map-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.tad-link-map-detail-section h4 {
  margin: 12px 0 6px;
  font-size: 0.95rem;
}
.tad-link-map-detail-relations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tad-link-map-detail-relations li {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  background: rgba(248,250,252,0.95);
  font-size: 0.9rem;
}
.tad-link-map-detail-relation {
  font-weight: 700;
  color: #374151;
}
.tad-link-map-detail-direction {
  color: #6b7280;
}
.tad-link-map-detail-other {
  font-weight: 600;
}
.tad-link-map-detail-other-person {
  color: #4f5eb8;
}
.tad-link-map-detail-other-work {
  color: #795548;
}
.tad-link-map-detail-other-concept {
  color: #00796b;
}
.tad-link-map-node.is-selected {
  z-index: 12;
  box-shadow: 0 9px 30px rgba(0,0,0,0.18), 0 0 0 3px rgba(34,113,177,0.22);
}
.tad-link-map-edge.is-selected {
  stroke: rgba(34,113,177,0.58);
}
.tad-link-map-edge.is-dimmed {
  opacity: 0.24;
}
@media (min-width: 980px) {
  .tad-link-map-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 0 18px;
  }
  .tad-link-map-card > .tad-link-map-header,
  .tad-link-map-card > .tad-link-map-filters,
  .tad-link-map-card > .tad-link-map-legend {
    grid-column: 1 / -1;
  }
  .tad-link-map-card > .tad-link-map {
    grid-column: 1;
  }
  .tad-link-map-card > .tad-link-map-detail-panel {
    grid-column: 2;
    align-self: start;
    position: sticky;
    top: 32px;
    margin-top: 0;
    max-height: min(760px, calc(100vh - 64px));
    overflow: auto;
  }
  .tad-link-map-card > script {
    display: none;
  }
}
@media (max-width: 700px) {
  .tad-link-map-detail-panel {
    margin-top: 12px;
    padding: 14px;
  }
  .tad-link-map-detail-head {
    display: block;
  }
  .tad-link-map-detail-close {
    margin-top: 8px;
  }
  .tad-link-map-detail-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .tad-link-map-detail-relations {
    grid-template-columns: 1fr;
  }
}

/* v1.5.7 link strength scoring */
.tad-link-map-edge[data-strength] {
  transition: opacity .16s ease, stroke-width .16s ease;
}
.tad-link-map-edge[data-bidirectional="1"] {
  stroke-dasharray: 0;
}
.tad-link-map-detail-strength {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 0.78rem;
}

/* v1.5.8 experimental 3D link map */
.tad-link-map-3d {
  background:
    radial-gradient(circle at 50% 50%, rgba(34,113,177,0.07), rgba(255,255,255,0.02) 42%, rgba(0,0,0,0.025) 100%);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.tad-link-map-3d-inner {
  position: relative;
  overflow: hidden;
}
.tad-link-map-3d-inner.is-dragging {
  cursor: grabbing;
}
.tad-link-map-3d-edge {
  stroke-linecap: round;
}
.tad-link-map-3d-node {
  will-change: left, top, opacity, transform;
}
.tad-link-map-3d-help {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 4;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #4b5563;
  font-size: 0.78rem;
  pointer-events: none;
}
@media (max-width: 700px) {
  .tad-link-map-3d-help {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 12px;
    line-height: 1.45;
  }
}


/* v1.8.5 public reading guide */
.tad-reading-guide {
    border-color: #dbeafe;
    background: #f8fbff;
}

.tad-reading-guide-lead {
    margin-top: -4px;
    color: #4b5563;
}

.tad-reading-sections {
    display: grid;
    gap: 18px;
}

.tad-reading-section {
    margin-top: 16px;
}

.tad-reading-section h3 {
    margin: 0 0 6px;
}

.tad-reading-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.tad-reading-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-reading-card h4 {
    margin: 8px 0 6px;
    font-size: 1rem;
    line-height: 1.35;
}

.tad-reading-card h4 a {
    text-decoration: none;
}

.tad-reading-card h4 a:hover {
    text-decoration: underline;
}

.tad-reading-card p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.tad-reading-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tad-reading-type,
.tad-reading-relation {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-reading-type {
    background: #eff6ff;
    color: #1d4ed8;
}

.tad-reading-relation {
    background: #f3f4f6;
    color: #4b5563;
}

.tad-reading-taxonomy-related {
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}


/* v1.9.2 thought history timeline */
.tad-timeline {
    border-color: #e0e7ff;
    background: #fbfcff;
}

.tad-timeline-lead {
    margin-top: -4px;
    color: #4b5563;
}

.tad-timeline-list {
    position: relative;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.tad-timeline-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 104px;
    width: 2px;
    background: #e5e7eb;
}

.tad-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 32px;
    margin: 0 0 14px;
}

.tad-timeline-item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 97px;
    width: 14px;
    height: 14px;
    border: 2px solid #c7d2fe;
    border-radius: 999px;
    background: #fff;
    z-index: 1;
}

.tad-timeline-year {
    padding-top: 12px;
    color: #374151;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.tad-timeline-body {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-timeline-body h3 {
    margin: 6px 0;
    font-size: 1rem;
}

.tad-timeline-body h3 a {
    text-decoration: none;
}

.tad-timeline-body h3 a:hover {
    text-decoration: underline;
}

.tad-timeline-body p {
    margin: 6px 0 0;
    font-size: 0.92rem;
}

.tad-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tad-timeline-type,
.tad-timeline-event {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-timeline-type {
    background: #eef2ff;
    color: #3730a3;
}

.tad-timeline-event {
    background: #f3f4f6;
    color: #4b5563;
}

.tad-timeline-type-work .tad-timeline-type {
    background: #ecfdf5;
    color: #047857;
}

@media (max-width: 640px) {
    .tad-timeline-list::before {
        left: 18px;
    }

    .tad-timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 44px;
    }

    .tad-timeline-item::before {
        left: 11px;
    }

    .tad-timeline-year {
        padding-top: 0;
        text-align: left;
    }
}


/* v1.9.3 concept and school thought tree */
.tad-thought-tree {
    border-color: #dcfce7;
    background: #fbfffc;
}

.tad-thought-tree-lead {
    margin-top: -4px;
    color: #4b5563;
}

.tad-thought-tree-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.tad-thought-tree-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 26px;
    list-style: none;
}

.tad-thought-tree-list .tad-thought-tree-list {
    margin-top: 10px;
    margin-left: 16px;
    padding-left: 26px;
    border-left: 2px solid #e5e7eb;
}

.tad-thought-tree-node {
    position: relative;
    margin: 0 0 12px;
}

.tad-thought-tree-node::before {
    content: "";
    position: absolute;
    top: 22px;
    left: -26px;
    width: 20px;
    border-top: 2px solid #e5e7eb;
}

.tad-thought-tree-card {
    display: inline-block;
    min-width: min(100%, 240px);
    max-width: 620px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-thought-tree-card h3 {
    margin: 6px 0;
    font-size: 1rem;
    line-height: 1.35;
}

.tad-thought-tree-card h3 a {
    text-decoration: none;
}

.tad-thought-tree-card h3 a:hover {
    text-decoration: underline;
}

.tad-thought-tree-card p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.tad-thought-tree-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tad-thought-tree-kind,
.tad-thought-tree-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-thought-tree-kind {
    background: #ecfdf5;
    color: #047857;
}

.tad-thought-tree-label {
    background: #f3f4f6;
    color: #4b5563;
}

.tad-thought-tree-kind-term > .tad-thought-tree-card .tad-thought-tree-kind {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 640px) {
    .tad-thought-tree-wrap {
        overflow-x: visible;
    }

    .tad-thought-tree-list,
    .tad-thought-tree-list .tad-thought-tree-list {
        margin-left: 0;
        padding-left: 18px;
    }

    .tad-thought-tree-node::before {
        left: -18px;
        width: 14px;
    }

    .tad-thought-tree-card {
        display: block;
        min-width: 0;
    }
}


/* v1.9.4 automatic reading route */
.tad-reading-route {
    border-color: #f5d0fe;
    background: #fffbff;
}

.tad-reading-route-lead {
    margin-top: -4px;
    color: #4b5563;
}

.tad-reading-route-steps {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.tad-reading-route-step {
    padding: 14px;
    border: 1px solid #f3e8ff;
    border-radius: 14px;
    background: #fff;
}

.tad-reading-route-step-head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.tad-reading-route-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7e22ce;
    font-weight: 700;
}

.tad-reading-route-step h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.tad-reading-route-step-head p {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.tad-reading-route-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.tad-reading-route-item {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-reading-route-item h4 {
    margin: 6px 0;
    font-size: 1rem;
    line-height: 1.35;
}

.tad-reading-route-item h4 a {
    text-decoration: none;
}

.tad-reading-route-item h4 a:hover {
    text-decoration: underline;
}

.tad-reading-route-item p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.tad-reading-route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tad-reading-route-meta span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-reading-route-meta span:first-child {
    background: #faf5ff;
    color: #7e22ce;
}

@media (max-width: 640px) {
    .tad-reading-route-step-head {
        grid-template-columns: 34px 1fr;
    }

    .tad-reading-route-number {
        width: 30px;
        height: 30px;
    }
}


/* v1.9.5 timeline presets */
.tad-timeline-preset {
    border-color: #dbeafe;
    background: #fbfdff;
}

.tad-timeline-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.tad-timeline-preset-chips span,
.tad-timeline-source {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-timeline-connections {
    margin: 8px 0;
    color: #4b5563;
    font-size: 0.92rem;
}

.tad-timeline-connections a {
    text-decoration: none;
}

.tad-timeline-connections a:hover {
    text-decoration: underline;
}


/* v1.9.6 relationship scoring */
.tad-relationship-score-table td,
.tad-relationship-score-table th {
    vertical-align: top;
}

.tad-thought-tree-label {
    gap: 4px;
}

.tad-relationship-score-form .form-table input[type="number"] {
    max-width: 120px;
}


/* v1.9.7 thought tree trunk and branch structure */
.tad-thought-tree-kind-structure_group > .tad-thought-tree-card {
    border-style: dashed;
    background: #f9fafb;
}

.tad-thought-tree-kind-structure_group > .tad-thought-tree-card h3 {
    font-size: 0.98rem;
}

.tad-thought-tree-role-trunk > .tad-thought-tree-card {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.tad-thought-tree-role-main_branch > .tad-thought-tree-card {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.tad-thought-tree-role-contrast_branch > .tad-thought-tree-card {
    border-color: #fecaca;
    background: #fff7f7;
}

.tad-thought-tree-role-peripheral > .tad-thought-tree-card {
    border-color: #e5e7eb;
}

.tad-thought-tree-score {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-thought-tree-kind-structure_group > .tad-thought-tree-list {
    margin-left: 22px;
}


/* v1.9.8 timeline network */
.tad-timeline-network {
    border-color: #c7d2fe;
    background: #fbfbff;
}

.tad-timeline-network-lead {
    margin-top: -4px;
    color: #4b5563;
}

.tad-timeline-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0 20px;
}

.tad-timeline-network-node {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.tad-timeline-network-node.is-focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.16);
}

.tad-timeline-network-node.is-missing {
    border-style: dashed;
    background: #f9fafb;
}

.tad-timeline-network-node h3 {
    margin: 8px 0;
    font-size: 1.02rem;
}

.tad-timeline-network-node p {
    margin: 6px 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.tad-timeline-network-node code {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 6px;
    white-space: normal;
}

.tad-timeline-network-node-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tad-timeline-network-node-meta span,
.tad-network-edge-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.78rem;
    line-height: 1.3;
}

.tad-timeline-network-edges {
    margin: 12px 0 0;
    padding-left: 1.4em;
}

.tad-timeline-network-edge {
    margin: 8px 0;
    color: #374151;
}

.tad-network-edge-branch .tad-network-edge-type {
    background: #fef3c7;
    color: #92400e;
}

.tad-network-edge-previous .tad-network-edge-type,
.tad-network-edge-next .tad-network-edge-type {
    background: #ecfdf5;
    color: #047857;
}


/* v1.9.9 mobile scroll stability */
.tad-link-map-card,
.tad-link-map,
.tad-link-map-detail-panel,
.tad-timeline,
.tad-thought-tree,
.tad-reading-route,
.tad-timeline-network {
  overflow-anchor: none;
}

@media (max-width: 700px) {
  .tad-link-map-3d {
    touch-action: pan-y;
  }

  .tad-link-map-detail-panel {
    scroll-margin-top: 16px;
  }
}


/* v1.10.0 mobile visual block collapse */
.tad-mobile-visual-block {
    overflow-anchor: none;
}

.tad-mobile-visual-toggle {
    display: none;
}

.tad-mobile-visual-body {
    overflow-anchor: none;
}

@media (max-width: 767px) {
    .tad-single {
        padding-left: 12px;
        padding-right: 12px;
    }

    .tad-card {
        margin: 14px 0;
        padding: 16px;
        border-radius: 12px;
    }

    .tad-mobile-visual-block {
        margin: 14px 0;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
    }

    .tad-mobile-visual-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        border: 0;
        border-radius: 14px;
        background: #f9fafb;
        color: #111827;
        font: inherit;
        font-weight: 700;
        text-align: left;
        cursor: pointer;
    }

    .tad-mobile-visual-toggle:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }

    .tad-mobile-visual-action {
        flex: 0 0 auto;
        padding: 4px 10px;
        border-radius: 999px;
        background: #e5e7eb;
        color: #374151;
        font-size: 0.86rem;
        font-weight: 600;
    }

    .tad-mobile-visual-body {
        display: none;
        padding: 0 12px 12px;
    }

    .tad-mobile-visual-block.is-open .tad-mobile-visual-body,
    .tad-mobile-visual-block.is-desktop-open .tad-mobile-visual-body {
        display: block;
    }

    .tad-mobile-visual-body > .tad-card {
        margin: 12px 0 0;
        border-color: #eef2f7;
        box-shadow: none;
    }

    .tad-mobile-visual-block-link-map .tad-link-map {
        min-height: 360px;
    }

    .tad-mobile-visual-block:not(.is-open):not(.is-desktop-open) .tad-link-map,
    .tad-mobile-visual-block:not(.is-open):not(.is-desktop-open) .tad-link-map-detail-panel {
        min-height: 0;
    }

    .tad-link-map-controls,
    .tad-link-map-filters,
    .tad-reading-route-items,
    .tad-timeline-network-grid {
        grid-template-columns: 1fr;
    }

    .tad-link-map-controls,
    .tad-link-map-filters {
        gap: 8px;
    }

    .tad-link-map-controls label,
    .tad-link-map-filter-group {
        width: 100%;
    }

    .tad-timeline-list,
    .tad-thought-tree-wrap,
    .tad-timeline-network-grid,
    .tad-reading-route-steps {
        max-width: 100%;
    }

    .tad-timeline-network-node code,
    .tad-timeline-preset-chips span,
    .tad-timeline-source {
        overflow-wrap: anywhere;
    }
}


/* v1.10.1 scroll diagnostics panel */
.tad-scroll-diag-panel {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 999999;
    width: min(420px, calc(100vw - 24px));
    max-height: min(55vh, 460px);
    padding: 10px;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.94);
    color: #f9fafb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    line-height: 1.45;
    overflow-anchor: none;
}

.tad-scroll-diag-panel.is-minimized .tad-scroll-diag-list,
.tad-scroll-diag-panel.is-minimized .tad-scroll-diag-summary {
    display: none;
}

.tad-scroll-diag-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.tad-scroll-diag-head button {
    margin-left: 4px;
    padding: 3px 7px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    background: #111827;
    color: #f9fafb;
    font-size: 11px;
    cursor: pointer;
}

.tad-scroll-diag-summary {
    margin: 4px 0 6px;
    color: #fde68a;
}

.tad-scroll-diag-list {
    max-height: 310px;
    margin: 0;
    padding-left: 1.4em;
    overflow: auto;
    overscroll-behavior: contain;
}

.tad-scroll-diag-entry {
    margin: 2px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-word;
}

.tad-scroll-diag-entry-layout-shift {
    color: #fecaca;
}

.tad-scroll-diag-entry-height-change {
    color: #bfdbfe;
}

.tad-scroll-diag-entry-scroll {
    color: #bbf7d0;
}

@media (max-width: 767px) {
    .tad-scroll-diag-panel {
        right: 8px;
        bottom: 8px;
        width: calc(100vw - 16px);
        max-height: 44vh;
        font-size: 11px;
    }

    .tad-scroll-diag-list {
        max-height: 220px;
    }
}


/* v1.10.2 mobile simple link map */
.tad-link-map-mobile-simple {
    display: none;
}

@media (max-width: 767px) {
    .tad-link-map-card .tad-link-map-controls,
    .tad-link-map-card .tad-link-map-filters,
    .tad-link-map-card .tad-link-map-legend,
    .tad-link-map-card .tad-link-map-interactive,
    .tad-link-map-card .tad-link-map-detail-panel {
        display: none;
    }

    .tad-link-map-mobile-simple {
        display: block;
        margin-top: 12px;
        overflow-anchor: none;
    }

    .tad-link-map-mobile-center {
        margin: 12px 0;
    }

    .tad-link-map-mobile-group {
        margin: 16px 0 0;
    }

    .tad-link-map-mobile-group h3 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 0 8px;
        font-size: 1rem;
    }

    .tad-link-map-mobile-group h3 span {
        padding: 3px 8px;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 0.78rem;
        font-weight: 600;
    }

    .tad-link-map-mobile-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tad-link-map-mobile-card {
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
    }

    .tad-link-map-mobile-card-person {
        border-left: 4px solid #60a5fa;
    }

    .tad-link-map-mobile-card-work {
        border-left: 4px solid #34d399;
    }

    .tad-link-map-mobile-card-concept {
        border-left: 4px solid #f59e0b;
    }

    .tad-link-map-mobile-card h4 {
        margin: 8px 0 4px;
        font-size: 1rem;
        line-height: 1.35;
    }

    .tad-link-map-mobile-card h4 a {
        text-decoration: none;
    }

    .tad-link-map-mobile-card h4 a:hover {
        text-decoration: underline;
    }

    .tad-link-map-mobile-card p {
        margin: 6px 0 0;
        color: #6b7280;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .tad-link-map-mobile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tad-link-map-mobile-meta span {
        display: inline-flex;
        align-items: center;
        padding: 3px 8px;
        border-radius: 999px;
        background: #f3f4f6;
        color: #4b5563;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .tad-link-map-mobile-meta span:first-child {
        background: #eef2ff;
        color: #3730a3;
    }
}


/* v1.10.4 public page nav */
.tad-page-nav {
    margin-top: -8px;
    overflow-anchor: none;
}

.tad-page-nav-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tad-page-nav-head .tad-kicker {
    margin: 0;
}

.tad-page-nav-note {
    margin: 0;
    color: #6b7280;
    font-size: 0.88rem;
}

.tad-page-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tad-page-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
}

.tad-page-nav-link:hover,
.tad-page-nav-link:focus {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

.tad-page-nav-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#tad-section-basic-info,
#tad-section-relations,
#tad-section-reading-route,
#tad-section-reading-guide,
#tad-section-timeline,
#tad-section-thought-tree,
#tad-section-link-map,
#tad-section-content,
#tad-section-sources {
    scroll-margin-top: 96px;
}

.tad-public-display-section {
    outline: none;
    scroll-margin-top: 96px;
}

@media (max-width: 767px) {
    .tad-page-nav {
        padding: 14px 0 14px 12px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        background: #fff;
    }

    .tad-page-nav-head {
        display: block;
        padding-right: 12px;
        margin-bottom: 8px;
    }

    .tad-page-nav-note {
        margin-top: 4px;
        font-size: 0.82rem;
    }

    .tad-page-nav-links {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 12px 4px 0;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .tad-page-nav-link {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-height: 32px;
        padding: 6px 11px;
        font-size: 0.9rem;
    }

    #tad-section-basic-info,
    #tad-section-relations,
    #tad-section-reading-route,
    #tad-section-reading-guide,
    #tad-section-timeline,
    #tad-section-thought-tree,
    #tad-section-link-map,
    #tad-section-content,
    #tad-section-sources,
    .tad-public-display-section {
        scroll-margin-top: calc(72px + env(safe-area-inset-top));
    }
}

/* Cocoon compatibility: keep the plugin nav inside the article flow and avoid fixed headers. */
.tad-single .tad-page-nav a {
    box-shadow: none;
}


/* v1.10.6 visual block lazy loading and cache optimization */
.tad-lazy-visual-section {
    min-height: 120px;
    overflow-anchor: none;
}

.tad-lazy-visual-placeholder {
    border-style: dashed;
    background: #fbfdff;
}

.tad-lazy-visual-placeholder h2 {
    margin-bottom: 8px;
}

.tad-lazy-visual-load-button {
    margin-top: 8px;
}

.tad-lazy-visual-status {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.88rem;
}

.tad-lazy-visual-section.is-loading .tad-lazy-visual-placeholder {
    opacity: 0.82;
}

.tad-lazy-visual-section.is-loading .tad-lazy-visual-status::after {
    content: "";
    display: inline-block;
    width: 1.1em;
    text-align: left;
    animation: tadLazyDots 1.2s steps(4, end) infinite;
}

.tad-lazy-visual-section.is-error .tad-lazy-visual-placeholder {
    border-color: #fecaca;
    background: #fff7f7;
}

@keyframes tadLazyDots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75%, 100% { content: "..."; }
}

@media (max-width: 767px) {
    .tad-lazy-visual-section {
        min-height: 96px;
    }

    .tad-lazy-visual-placeholder {
        padding: 16px;
    }

    .tad-lazy-visual-load-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* v1.10.7 mobile reading mode */
.tad-mobile-reading-mode-control {
    display: none;
}

@media (max-width: 767px) {
    .tad-mobile-reading-mode-control {
        display: block;
        border-color: #dbeafe;
        background: #f8fbff;
    }

    .tad-mobile-reading-mode-copy p:last-child {
        margin-bottom: 10px;
        color: #4b5563;
    }

    .tad-mobile-reading-mode-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tad-mobile-reading-mode-actions .button {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .tad-mobile-reading-mode-status {
        margin: 10px 0 0;
        color: #6b7280;
        font-size: 0.86rem;
    }

    .tad-mobile-reading-mode-enabled .tad-single article {
        display: flex;
        flex-direction: column;
    }

    .tad-mobile-reading-mode-enabled .tad-single article > * {
        order: 20;
    }

    .tad-mobile-reading-mode-enabled .tad-single article > .entry-header,
    .tad-mobile-reading-mode-enabled .tad-single article > .tad-hero {
        order: 1;
    }

    .tad-mobile-reading-mode-enabled .tad-single article > .tad-page-nav {
        order: 2;
    }

    .tad-mobile-reading-mode-enabled .tad-single article > .tad-mobile-reading-mode-control {
        order: 3;
    }

    .tad-mobile-reading-mode-enabled #tad-section-content {
        order: 4;
        border-color: #bfdbfe;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
    }

    .tad-mobile-reading-mode-enabled #tad-section-basic-info {
        order: 5;
    }

    .tad-mobile-reading-mode-enabled #tad-section-relations {
        order: 6;
    }

    .tad-mobile-reading-mode-enabled .tad-public-display-section,
    .tad-mobile-reading-mode-enabled .tad-lazy-visual-section {
        order: 7;
    }

    .tad-mobile-reading-mode-enabled #tad-section-sources {
        order: 8;
    }

    .tad-mobile-reading-mode-enabled .tad-admin-review,
    .tad-mobile-reading-mode-enabled .tad-admin-review-block {
        order: 9;
    }

    .tad-mobile-reading-mode-enabled .tad-mobile-reading-mode-enable {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

    .tad-mobile-reading-mode-enabled .tad-page-nav-link-content {
        border-color: #2563eb;
        background: #eff6ff;
        color: #1d4ed8;
        font-weight: 700;
    }
}


/* v1.11.0 archive index pages */
.tad-archive {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.tad-archive-hero {
    margin-bottom: 20px;
    padding: 26px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.tad-archive-hero .page-title {
    margin: 0 0 8px;
}

.tad-archive-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tad-archive-switcher a,
.tad-archive-chip-list a,
.tad-archive-term-badges a,
.tad-archive-active-filters span,
.tad-archive-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.3;
}

.tad-archive-switcher a {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.tad-archive-switcher a.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.tad-archive-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
}

.tad-archive-stat {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.tad-archive-stat span {
    display: block;
    color: #6b7280;
    font-size: 0.86rem;
}

.tad-archive-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 1.5rem;
    line-height: 1.1;
}

.tad-archive-filter-form {
    display: grid;
    gap: 12px;
}

.tad-archive-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tad-archive-tax-filter-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tad-archive-filter-form label {
    display: grid;
    gap: 5px;
    color: #374151;
    font-weight: 600;
}

.tad-archive-filter-form input,
.tad-archive-filter-form select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
}

.tad-archive-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tad-button-secondary {
    border: 1px solid #d1d5db;
    background: #fff;
}

.tad-archive-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tad-archive-active-filters span {
    padding: 5px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.86rem;
}

.tad-archive-entry-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.tad-archive-entry-panel h2 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.tad-archive-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tad-archive-chip-list a {
    padding: 6px 10px;
    background: #f3f4f6;
    color: #374151;
}

.tad-archive-chip-list a span {
    color: #6b7280;
    font-size: 0.82rem;
}

.tad-archive-results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0 12px;
}

.tad-archive-results-head h2,
.tad-archive-results-head p {
    margin: 0;
}

.tad-archive-results-head p {
    color: #6b7280;
}

.tad-archive-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tad-archive-item-card {
    margin: 0;
}

.tad-archive-item-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.45;
}

.tad-archive-item-card h3 a {
    text-decoration: none;
}

.tad-archive-item-card h3 a:hover {
    text-decoration: underline;
}

.tad-archive-item-meta {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.tad-archive-item-description {
    margin: 10px 0 0;
    color: #374151;
    line-height: 1.7;
}

.tad-archive-term-badges,
.tad-archive-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tad-archive-term-badges a {
    padding: 4px 8px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.8rem;
}

.tad-archive-badges span {
    padding: 4px 8px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.78rem;
}

.tad-archive-pagination {
    margin-top: 24px;
}

@media (max-width: 900px) {
    .tad-archive-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tad-archive-tax-filter-row,
    .tad-archive-entry-panels,
    .tad-archive-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .tad-archive {
        padding: 16px 12px 40px;
    }

    .tad-archive-hero {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .tad-archive-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .tad-archive-switcher a {
        flex: 0 0 auto;
    }

    .tad-archive-filter-row {
        grid-template-columns: 1fr;
    }

    .tad-archive-stats {
        gap: 8px;
    }

    .tad-archive-stat {
        padding: 12px;
    }

    .tad-archive-stat strong {
        font-size: 1.28rem;
    }

    .tad-archive-results-head {
        display: block;
    }

    .tad-archive-entry-panels {
        gap: 10px;
    }
}


/* v1.11.1 taxonomy landing pages */
.tad-tax-landing {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.tad-tax-hero {
    margin-bottom: 20px;
    padding: 28px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tad-tax-hero .page-title {
    margin: 0 0 8px;
}

.tad-tax-switcher,
.tad-tax-theme-chip-list,
.tad-tax-mini-list,
.tad-tax-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tad-tax-switcher {
    margin-top: 16px;
}

.tad-tax-switcher a,
.tad-tax-theme-chip-list a,
.tad-tax-panel-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.3;
}

.tad-tax-switcher a {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}

.tad-tax-switcher a.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.tad-tax-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 16px 0 20px;
}

.tad-tax-stat {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.tad-tax-stat span {
    display: block;
    color: #6b7280;
    font-size: 0.86rem;
}

.tad-tax-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 1.5rem;
    line-height: 1.1;
}

.tad-tax-overview h2,
.tad-tax-related-themes h2,
.tad-tax-post-panel h2,
.tad-tax-timeline h2 {
    margin-top: 0;
}

.tad-tax-reading-hint {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
}

.tad-tax-reading-hint h3 {
    margin-top: 0;
}

.tad-tax-reading-hint ol {
    margin-bottom: 0;
}

.tad-tax-theme-chip-list a {
    padding: 7px 10px;
    background: #eef2ff;
    color: #3730a3;
}

.tad-tax-theme-chip-list a span {
    color: #6b7280;
    font-size: 0.78rem;
}

.tad-tax-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tad-tax-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.tad-tax-panel-head p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.tad-tax-panel-more {
    flex: 0 0 auto;
    padding: 6px 10px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.84rem;
}

.tad-tax-mini-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tad-tax-mini-card {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-tax-mini-card h3 {
    margin: 0;
    line-height: 1.45;
}

.tad-tax-mini-card h3 a {
    text-decoration: none;
}

.tad-tax-mini-card h3 a:hover {
    text-decoration: underline;
}

.tad-tax-mini-meta,
.tad-tax-mini-description {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.tad-tax-mini-description {
    line-height: 1.65;
}

.tad-tax-timeline {
    margin-top: 18px;
}

.tad-tax-timeline ol {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tad-tax-timeline li {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: baseline;
}

.tad-tax-timeline li span {
    color: #1d4ed8;
    font-weight: 700;
}

.tad-tax-timeline li em {
    color: #6b7280;
    font-style: normal;
    font-size: 0.84rem;
}

@media (max-width: 1000px) {
    .tad-tax-main-grid {
        grid-template-columns: 1fr;
    }

    .tad-tax-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tad-tax-landing {
        padding: 16px 12px 40px;
    }

    .tad-tax-hero {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .tad-tax-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .tad-tax-switcher a {
        flex: 0 0 auto;
    }

    .tad-tax-stat {
        padding: 12px;
    }

    .tad-tax-stat strong {
        font-size: 1.28rem;
    }

    .tad-tax-panel-head {
        display: block;
    }

    .tad-tax-panel-more {
        margin-top: 8px;
    }

    .tad-tax-timeline li {
        grid-template-columns: 72px 1fr;
    }

    .tad-tax-timeline li em {
        grid-column: 2;
    }
}


/* v1.11.2 internal link suggestions and related article enhancement */
.tad-internal-related {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.tad-internal-related h3 {
    margin-top: 0;
}

.tad-internal-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.tad-internal-related-card {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-internal-related-card h4 {
    margin: 0;
    line-height: 1.45;
}

.tad-internal-related-card h4 a {
    text-decoration: none;
}

.tad-internal-related-card h4 a:hover {
    text-decoration: underline;
}

.tad-internal-related-card p:not(.tad-kicker) {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.65;
}

.tad-internal-suggestion-box table {
    margin-top: 10px;
}

@media (max-width: 900px) {
    .tad-internal-related-grid {
        grid-template-columns: 1fr;
    }
}


/* v1.11.5 generated thought history theme pages */
.tad-theme-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.tad-theme-hero {
    margin-bottom: 20px;
    padding: 28px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.tad-theme-hero h1 {
    margin: 0 0 8px;
}

.tad-theme-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
}

.tad-theme-stats div {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.tad-theme-stats span {
    display: block;
    color: #6b7280;
    font-size: 0.86rem;
}

.tad-theme-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 1.5rem;
    line-height: 1.1;
}

.tad-theme-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tad-theme-panel h2,
.tad-theme-overview h2,
.tad-theme-related h2 {
    margin-top: 0;
}

.tad-theme-mini-grid {
    display: grid;
    gap: 10px;
}

.tad-theme-mini-card {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.tad-theme-mini-card h3 {
    margin: 0;
    line-height: 1.45;
}

.tad-theme-mini-card h3 a {
    text-decoration: none;
}

.tad-theme-mini-card h3 a:hover {
    text-decoration: underline;
}

.tad-theme-mini-card p:not(.tad-kicker) {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.65;
}

.tad-theme-timeline {
    margin-top: 18px;
}

.tad-theme-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tad-theme-chip-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    text-decoration: none;
}

.tad-theme-chip-list a span {
    color: #6b7280;
    font-size: 0.78rem;
}

@media (max-width: 1000px) {
    .tad-theme-section-grid {
        grid-template-columns: 1fr;
    }

    .tad-theme-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tad-theme-page {
        padding: 16px 12px 40px;
    }

    .tad-theme-hero {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .tad-theme-stats div {
        padding: 12px;
    }

    .tad-theme-stats strong {
        font-size: 1.28rem;
    }
}

/* v1.11.6: 読書ルート詳細ページ */
.tad-reading-route-detail {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) 0;
}

.tad-reading-route-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.tad-reading-route-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.tad-reading-route-detail-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.tad-reading-route-detail-stats div {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tad-reading-route-detail-stats span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.tad-reading-route-detail-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 1.8rem;
    line-height: 1;
}

.tad-reading-route-detail-overview {
    margin-bottom: 24px;
}

.tad-reading-route-detail-order {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.tad-reading-route-detail-order li {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.tad-reading-route-detail-main > .tad-reading-route {
    margin-bottom: 24px;
}

.tad-reading-route-expansion {
    margin-top: 24px;
}

.tad-reading-route-expansion-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.tad-reading-route-expansion-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
}

.tad-reading-route-expansion-card h3 {
    margin: 4px 0 8px;
    font-size: 1rem;
    line-height: 1.45;
}

.tad-reading-route-expansion-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tad-reading-route-expansion-card h3 a:hover {
    text-decoration: underline;
}

.tad-reading-route-expansion-card p:not(.tad-kicker) {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .tad-reading-route-detail-stats,
    .tad-reading-route-expansion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tad-reading-route-detail {
        padding: 18px 0;
    }

    .tad-reading-route-hero {
        border-radius: 20px;
        padding: 22px;
    }

    .tad-reading-route-detail-stats,
    .tad-reading-route-expansion-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.11.7: 人物・著作・概念 比較ページ */
.tad-comparison-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) 0;
}

.tad-comparison-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.tad-comparison-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.tad-comparison-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tad-comparison-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.tad-comparison-stats div {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tad-comparison-stats span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.tad-comparison-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 1.8rem;
    line-height: 1;
}

.tad-comparison-basic,
.tad-comparison-common,
.tad-comparison-difference,
.tad-comparison-relationship,
.tad-comparison-reading-order,
.tad-comparison-related {
    margin-bottom: 24px;
}

.tad-comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tad-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.tad-comparison-table th,
.tad-comparison-table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}

.tad-comparison-table thead th {
    background: rgba(248, 250, 252, 0.9);
    font-weight: 800;
}

.tad-comparison-table tbody th {
    width: 18%;
    color: #334155;
    font-weight: 800;
}

.tad-comparison-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tad-comparison-chip-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.tad-comparison-chip-list a span {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
}

.tad-comparison-mini-grid,
.tad-comparison-related-grid,
.tad-comparison-two-col {
    display: grid;
    gap: 14px;
}

.tad-comparison-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
}

.tad-comparison-related-grid,
.tad-comparison-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.tad-comparison-mini-card,
.tad-comparison-related-card,
.tad-comparison-diff-panel {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 16px;
    background: #fff;
}

.tad-comparison-mini-card h3,
.tad-comparison-related-card h3,
.tad-comparison-diff-panel h3 {
    margin: 4px 0 8px;
    font-size: 1rem;
    line-height: 1.45;
}

.tad-comparison-mini-card h3 a,
.tad-comparison-related-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tad-comparison-mini-card h3 a:hover,
.tad-comparison-related-card h3 a:hover {
    text-decoration: underline;
}

.tad-comparison-mini-card p:not(.tad-kicker),
.tad-comparison-related-card p:not(.tad-kicker) {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.65;
}

.tad-comparison-order {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.tad-comparison-order li {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

.tad-comparison-order a {
    display: block;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.tad-comparison-order a:hover {
    text-decoration: underline;
}

.tad-comparison-order span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .tad-comparison-stats,
    .tad-comparison-mini-grid,
    .tad-comparison-related-grid,
    .tad-comparison-two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tad-comparison-page {
        padding: 18px 0;
    }

    .tad-comparison-hero {
        border-radius: 20px;
        padding: 22px;
    }

    .tad-comparison-stats,
    .tad-comparison-mini-grid,
    .tad-comparison-related-grid,
    .tad-comparison-two-col {
        grid-template-columns: 1fr;
    }
}

/* v1.11.8: 検索・絞り込みUI強化 */
.tad-search-filter-ui {
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) 0;
}

.tad-search-filter-hero {
    margin-bottom: 18px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.tad-search-filter-hero h2 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.14;
}

.tad-search-filter-hero p:not(.tad-kicker) {
    max-width: 760px;
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.tad-search-filter-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.tad-search-filter-counts div {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.tad-search-filter-counts span {
    display: block;
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.tad-search-filter-counts strong {
    display: block;
    margin-top: 4px;
    font-size: 1.7rem;
    line-height: 1;
}

.tad-search-filter-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.tad-search-filter-type-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
}

.tad-search-filter-type-tabs a.is-active,
.tad-search-filter-type-tabs a:hover {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.tad-search-filter-panel {
    margin-bottom: 18px;
}

.tad-search-filter-form {
    display: grid;
    gap: 14px;
}

.tad-search-filter-main-row,
.tad-search-filter-tax-row {
    display: grid;
    gap: 12px;
}

.tad-search-filter-main-row {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .8fr));
}

.tad-search-filter-tax-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tad-search-filter-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #334155;
    font-weight: 800;
}

.tad-search-filter-form label span {
    font-size: .86rem;
}

.tad-search-filter-form input[type="search"],
.tad-search-filter-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 12px;
    padding: 8px 11px;
    background: #fff;
}

.tad-search-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tad-search-filter-active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tad-search-filter-active span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .88rem;
}

.tad-search-filter-active strong {
    color: #64748b;
    font-size: .78rem;
}

.tad-search-filter-term-panels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
}

.tad-search-filter-term-panel h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.tad-search-filter-term-chips,
.tad-search-filter-term-badges,
.tad-search-filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tad-search-filter-term-chips a,
.tad-search-filter-term-badges a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
}

.tad-search-filter-term-chips a:hover,
.tad-search-filter-term-badges a:hover {
    background: #e2e8f0;
}

.tad-search-filter-term-chips a span {
    color: #64748b;
    font-size: .75rem;
}

.tad-search-filter-results-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 6px 0 14px;
}

.tad-search-filter-results-head h3 {
    margin: 0;
    font-size: 1.45rem;
}

.tad-search-filter-results-head p {
    margin: 0;
    color: #64748b;
    font-weight: 800;
}

.tad-search-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tad-search-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tad-search-filter-item h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.45;
}

.tad-search-filter-item h3 a {
    color: inherit;
    text-decoration: none;
}

.tad-search-filter-item h3 a:hover {
    text-decoration: underline;
}

.tad-search-filter-item-meta,
.tad-search-filter-item-description {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
}

.tad-search-filter-badges span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: .76rem;
    font-weight: 800;
}

.tad-search-filter-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 24px 0 0;
}

.tad-search-filter-pagination a,
.tad-search-filter-pagination span {
    min-width: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.tad-search-filter-pagination span {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.tad-search-filter-empty,
.tad-search-filter-note {
    color: #64748b;
}

@media (max-width: 1000px) {
    .tad-search-filter-main-row,
    .tad-search-filter-tax-row,
    .tad-search-filter-term-panels,
    .tad-search-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tad-search-filter-ui {
        padding: 18px 0;
    }

    .tad-search-filter-hero {
        border-radius: 20px;
        padding: 22px;
    }

    .tad-search-filter-counts,
    .tad-search-filter-main-row,
    .tad-search-filter-tax-row,
    .tad-search-filter-term-panels,
    .tad-search-filter-grid {
        grid-template-columns: 1fr;
    }

    .tad-search-filter-results-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* v1.12.5 public component foundation */
.tad-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.tad-section__heading {
    min-width: 0;
}

.tad-section__title {
    margin: 0;
}

.tad-section__lead {
    margin: 6px 0 0;
    line-height: 1.7;
}

.tad-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.tad-section__content > :first-child {
    margin-top: 0;
}

.tad-section__content > :last-child {
    margin-bottom: 0;
}

.tad-card-grid {
    display: grid;
    gap: 14px;
}

.tad-card--item {
    min-width: 0;
    margin: 0;
}

.tad-card__meta,
.tad-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tad-card__meta {
    margin: 0 0 8px;
}

.tad-card__title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.45;
}

.tad-card__title a {
    color: inherit;
    text-decoration: none;
}

.tad-card__title a:hover,
.tad-card__title a:focus {
    text-decoration: underline;
}

.tad-card__submeta,
.tad-card__description {
    margin: 8px 0 0;
    line-height: 1.7;
}

.tad-card__submeta {
    color: #64748b;
    font-size: 0.9rem;
}

.tad-card__description {
    color: #374151;
}

.tad-card__terms,
.tad-card__footer {
    margin-top: 12px;
}

.tad-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.tad-tag:hover,
.tad-tag:focus {
    text-decoration: underline;
}

.tad-tag--type {
    background: #eef2ff;
    color: #3730a3;
}

.tad-tag--status {
    background: #ecfdf5;
    color: #047857;
}

.tad-tag--relation,
.tad-tag--route,
.tad-tag--score {
    background: #fff7ed;
    color: #9a3412;
}

.tad-tag--term {
    background: #f1f5f9;
    color: #334155;
}

.tad-tag__meta {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
}

.tad-empty {
    padding: 20px;
    border: 1px dashed rgba(148, 163, 184, 0.48);
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

.tad-empty--compact {
    padding: 12px 14px;
    text-align: left;
}

.tad-empty__title {
    display: block;
    margin-bottom: 4px;
    color: #334155;
}

.tad-empty__message {
    margin: 0;
    line-height: 1.7;
}

.tad-empty__action {
    margin-top: 10px;
}

.tad-stats {
    display: grid;
    gap: 10px;
}

.tad-stat {
    min-width: 0;
}

.tad-stat__label,
.tad-stat__value {
    display: block;
}

.tad-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
}

.tad-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.tad-pagination__item:hover,
.tad-pagination__item:focus {
    border-color: #64748b;
    text-decoration: none;
}

.tad-pagination__item.is-current {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.tad-pagination__ellipsis,
.tad-search-filter-pagination .tad-pagination__ellipsis {
    min-width: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #64748b;
}

/* Keep legacy feature selectors working with the unified markup. */
.tad-archive-item-card .tad-card__submeta,
.tad-search-filter-item .tad-card__submeta,
.tad-tax-mini-card .tad-card__submeta {
    color: #64748b;
}

.tad-theme-mini-grid .tad-card,
.tad-reading-route-expansion-grid .tad-card,
.tad-comparison-mini-grid .tad-card,
.tad-comparison-related-grid .tad-card,
.tad-search-filter-grid .tad-card,
.tad-tax-mini-list .tad-card,
.tad-archive-card-grid .tad-card,
.tad-card-list .tad-card {
    margin: 0;
}

@media (max-width: 767px) {
    .tad-section__header {
        display: block;
    }

    .tad-section__actions {
        margin-top: 10px;
    }

    .tad-card--item {
        padding: 16px;
    }

    .tad-pagination {
        gap: 6px;
    }

    .tad-pagination__item {
        min-width: 36px;
        min-height: 36px;
        padding: 7px 10px;
    }
}
