/* Clear reading contrast for the research workspaces. */
:root {
  --ink: #142b35;
  --ink-2: #3e5664;
  --ink-3: #52616f;
  --rule: #d4dfe4;
  --rule-2: #b6c6ce;
  --cobalt: #086370;
  --cobalt-ink: #064e59;
  --focus-ring: 0 0 0 3px #08637030;
}

body {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
.setup-list strong,
.access-detail > strong,
.studio-footer > span:first-child {
  color: var(--ink);
}

/* Navigation and control labels remain legible on smaller screens. */
.studio-nav-link,
.rail a,
.dashboard-tabs a,
.guide-tabs button,
.btn,
.header-tools .wallet-btn,
.net {
  font-size: 0.9375rem;
}

.studio-nav-link,
.rail a {
  color: var(--ink-2);
  min-height: 44px;
}

.studio-nav-link svg,
.rail a svg,
.metric-label svg,
.card-label svg,
.studio-search svg,
.resource-card svg {
  color: #476675;
}

.studio-nav-link[aria-current="page"],
.rail a[aria-current="page"] {
  color: var(--cobalt-ink);
  background: #e8f3f5;
  font-weight: 500;
}

.studio-nav-link[aria-current="page"] svg,
.rail a[aria-current="page"] svg {
  color: var(--cobalt-ink);
}

.studio-product-tag,
.header-context,
.sidebar-project div > span,
.sidebar-label,
.sidebar-bottom,
.sidebar-bottom p,
.sidebar-bottom > div,
.sidebar-bottom a,
.rail-foot,
.breadcrumb,
.studio-footer,
.studio-footer > nav {
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.65;
}

.breadcrumb > span {
  color: #657b88;
}

.sidebar-project strong {
  font-size: 1rem;
}

.sidebar-label {
  font-weight: 500;
  letter-spacing: 0.045em;
}

.inline-link,
.guide-terms a {
  color: var(--cobalt-ink);
  font-weight: 500;
}

.inline-link:hover,
.guide-terms a:hover {
  color: #043d46;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-primary,
.btn-primary:hover {
  color: #fff;
}

.btn-primary:hover {
  background: var(--cobalt-ink);
  border-color: var(--cobalt-ink);
}

.btn-secondary {
  color: var(--ink);
  border-color: #9eb2bd;
}

.btn-sm,
.research-table .btn-sm {
  font-size: 0.875rem;
  min-height: 36px;
}

/* Explicit colors replace pale values in the compact Studio styles. */
.metric-label,
.card-label,
.studio-card-heading p,
.welcome-content p,
.dashboard-heading p,
.page-head .lead,
.view-head p,
.quick-actions div > span,
.guide-comparison ul,
.guide-prose p,
.studio-exchange li > span,
.access-card > p {
  color: var(--ink-2);
}

.metric-label,
.card-label,
.studio-card-heading p,
.quick-actions div > span,
.metric-card > span:last-child,
.studio-chip,
.setup-intro,
.setup-list small,
.access-detail,
.access-card > .inline-link,
.resource-card > a,
.dashboard-note,
.guide-label,
.guide-terms,
.panel-footnote,
.studio-table-loading {
  font-size: 0.875rem;
  line-height: 1.7;
}

.metric-card > span:last-child,
.studio-chip,
.setup-intro,
.setup-list small,
.access-detail > span,
.resource-card small,
.dashboard-note,
.guide-terms,
.panel-footnote {
  color: var(--ink-3);
}

.studio-chip {
  border-color: #c5d3da;
  white-space: normal;
}

.quick-actions strong,
.setup-list strong,
.setup-card .btn,
.access-card .card-label {
  font-size: 1rem;
  line-height: 1.5;
}

.setup-list li > span {
  color: var(--ink-3);
  font-size: 0.8125rem;
  border-color: #a4b7c1;
}

.setup-list li.is-done > span {
  color: #075b50;
  background: #e8f5ef;
  border-color: #9bc7b6;
}

.guide-label {
  color: #365e6d;
}

.resource-card small {
  font-size: 0.8125rem;
}

.welcome-content p,
.guide-prose p,
.view-head p,
.page-head .lead,
.panel-head p,
.step p,
.terms-doc p,
.terms-doc li {
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* Records, status labels and prices retain their visual hierarchy. */
.research-table th {
  color: var(--ink-2);
  background: #f3f7f9;
  font-size: 0.875rem;
  font-weight: 500;
}

.research-meta,
.capsule-no {
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.table-content,
.capsule-size,
.capsule-sealed-note,
.research-table .price .unit,
.price .unit {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.research-table .mode,
.capsule .mode {
  color: #315867;
  background: #edf4f6;
  border-color: #c9dade;
  font-size: 0.875rem;
  line-height: 1.5;
}

.research-table .mode svg,
.capsule .mode svg,
.research-file,
.quick-actions > a > [data-icon],
.guidance-icon {
  color: #3d6979;
}

.erased-note {
  color: #73521f;
  font-size: 0.875rem;
}

/* Inputs and explanatory text are readable without relying on focus. */
.input,
.textarea,
.select,
.studio-search input,
.search-field input,
.dashboard-filter .select,
.market-toolbar .select {
  color: var(--ink);
  font-size: 1rem;
}

.input,
.textarea,
.select,
.studio-search,
.search-field {
  border-color: #8096a3;
}

.input::placeholder,
.textarea::placeholder,
.studio-search input::placeholder,
.search-field input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.hint,
.choice .choice-desc,
.counter,
.source-note,
#filter-summary,
.market-guidance p,
.market-guidance > a,
.terms-doc .terms-lede {
  font-size: 0.875rem;
  line-height: 1.75;
}

.label,
.choice .choice-title {
  font-size: 1rem;
}

.step-n {
  color: var(--ink-3);
  border-color: #9bb0bb;
}

.step[data-done="true"] .step-n {
  color: #fff;
}

.dialog-body,
.capsule-plain,
.reveal-box pre {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.key-value .mono,
.hexbox {
  font-size: 0.875rem;
  line-height: 1.7;
}

:focus-visible {
  outline: 2px solid #086370;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .dashboard-tabs a,
  .guide-tabs button {
    font-size: 0.9375rem;
  }

  .metric-label,
  .metric-card > span:last-child,
  .quick-actions div > span,
  .panel-footnote,
  .setup-list small,
  .studio-footer,
  .studio-footer > nav {
    font-size: 0.875rem;
  }

  .research-table th,
  .research-table .mode,
  .research-table .price .unit {
    font-size: 0.8125rem;
  }

  .research-name > a,
  .research-table .research-name > a {
    font-size: 1rem;
  }
}
