/* Thesis frames and worked examples for Section 05. */
.thesis-hub { margin-bottom: 40px; }
.thesis-hub-intro {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
}
.thesis-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.thesis-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--burg-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.thesis-hub-card:hover {
  border-color: var(--burg);
  background: var(--burg-pale);
}
.thesis-hub-card-purpose {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.thesis-hub-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.thesis-hub-card-description {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
.thesis-hub-card-action {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}
.thesis-hub-shortcuts {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.75;
}
.thesis-hub-shortcuts a,
.thesis-hub-return { color: var(--ink-soft); text-underline-offset: 3px; }
.thesis-hub-return {
  display: inline-block;
  margin: -10px 0 20px;
  font-size: 13px;
}
.thesis-hub a:focus-visible,
.thesis-hub-return:focus-visible,
.section-header[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--burg);
  outline-offset: 4px;
}

.thesis-context,
.thesis-worked-example {
  padding: 22px;
  margin: 24px 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
}

.thesis-context { background: var(--burg-pale); }
.thesis-worked-example { border-left: 4px solid var(--burg); }

.thesis-context .body-copy,
.thesis-worked-example .body-copy { margin-bottom: 16px; }
.thesis-context > :last-child { margin-bottom: 0; }

.thesis-example-note {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.75;
}

.thesis-word-table thead th {
  padding: 10px 16px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.thesis-word-table :is(th, td):first-child { width: 30%; }
.thesis-word-table :is(th, td):last-child { width: 70%; }

.thesis-checklist {
  padding-left: 22px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.78;
}

.thesis-checklist li { padding-left: 4px; margin-bottom: 12px; }
.section-header[id] { scroll-margin-top: 80px; }

.thesis-part {
  --thesis-part-color: #2563a0;
}

.thesis-part[data-thesis-label="Special Circumstance"],
.thesis-part[data-thesis-label="Limitation or Cost"] {
  --thesis-part-color: #ad530d;
}

.thesis-part[data-thesis-label="Result"],
.thesis-part[data-thesis-label="Effect"],
.thesis-part[data-thesis-label="Relationship Between Choices"] {
  --thesis-part-color: #16745e;
}

.thesis-part[data-thesis-label="Underlying Reason"],
.thesis-part[data-thesis-label="Explanation"],
.thesis-part[data-thesis-label="Qualified Interpretation"],
.thesis-part[data-thesis-label="Central Interpretation"] {
  --thesis-part-color: #7c4298;
}

.thesis-part.is-interactive {
  cursor: help;
  text-decoration: underline dotted var(--thesis-part-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.thesis-part.is-interactive:hover,
.thesis-part.is-interactive:focus-visible {
  background: color-mix(in srgb, var(--thesis-part-color) 10%, var(--white));
}

.thesis-part.is-interactive:focus-visible {
  outline: 2px solid var(--thesis-part-color);
  outline-offset: 3px;
}

.thesis-part-tip {
  position: fixed;
  z-index: 10050;
  width: 280px;
  max-width: calc(100vw - 24px);
  padding: 12px 14px;
  border: 1px solid var(--burg-border);
  border-top: 3px solid var(--thesis-part-color);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.thesis-part-tip[hidden] { display: none; }
.thesis-part-tip strong { display: block; margin-bottom: 4px; color: var(--thesis-part-color); }
.thesis-part-tip span { display: block; }

@media (max-width: 600px) {
  .thesis-hub-grid { grid-template-columns: 1fr; }
  .thesis-hub-card { padding: 18px; }
  .thesis-context, .thesis-worked-example { padding: 18px; }
  .thesis-word-table :is(th, td) { padding: 10px; }
  .thesis-word-table :is(th, td):first-child { width: 40%; }
  .thesis-word-table :is(th, td):last-child { width: 60%; }
}

@media print {
  .thesis-hub, .thesis-hub-return { display: none; }
  .thesis-part-tip, .thesis-annotation-help { display: none; }
  .thesis-part.is-interactive { text-decoration: none; background: none; outline: none; }
  .thesis-context, .thesis-worked-example { break-inside: avoid; }
  .section-header { break-after: avoid; }
}
