/* ─── WCAG Reference — App Styles ────────────────────────────────────────────
   Component styles, views, layout. Design tokens are in tokens.css.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

h1, h2, h3 {
  font-weight: var(--weight-semi);
  line-height: var(--leading-tight);
}

/* ── App shell ───────────────────────────────────────────────────────────── */

#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--border-muted);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--sp-4);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #1a6fd4;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.logo-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-version {
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  color: var(--text-muted);
}

.logo-sub {
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
  color: var(--text-muted);
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.header-actions sl-icon-button {
  font-size: 20px;
  flex-shrink: 0;
}

.header-actions sl-icon-button::part(base) {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Search panel ────────────────────────────────────────────────────────── */

#search-panel {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-muted);
  padding: var(--sp-3) var(--sp-4);
}

.search-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

#search-panel sl-input {
  width: 100%;
}

#search-input {
  --sl-input-border-color: var(--border);
  --sl-input-border-width: 1px;
  --sl-input-background-color: var(--bg-raised);
  --sl-input-height-medium: 2.5rem;
  --sl-input-spacing-medium: 0.75rem;
}

#search-input::part(base) {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: var(--r-md);
  box-shadow: none;
}

#search-input::part(prefix) {
  padding-inline-start: var(--sp-4);
  padding-inline-end: var(--sp-3);
}

#search-input::part(input) {
  padding-inline-start: 0;
}

#search-input::part(suffix) {
  padding-inline-end: var(--sp-3);
}

/* ── Main content ────────────────────────────────────────────────────────── */

#app-content {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + var(--sp-6));
  outline: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-muted);
}

.home-footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer-links a:hover {
  color: var(--accent);
}

/* ── Bottom navigation ───────────────────────────────────────────────────── */

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  text-decoration: none;
  transition: color var(--ease);
  padding: var(--sp-2) 0;
  border-radius: 0;
  height: var(--nav-h);
}

.nav-item sl-icon {
  font-size: 20px;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ── Loading state ───────────────────────────────────────────────────────── */

.view-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: var(--sp-4);
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error state ─────────────────────────────────────────────────────────── */

.view-error {
  padding: var(--sp-8) var(--sp-6);
  max-width: var(--max-w);
  margin: 0 auto;
}

.view-error h1 { color: #f85149; margin-bottom: var(--sp-4); }
.view-error p  { color: var(--text-muted); margin-bottom: var(--sp-3); }
.view-error code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--bg-surface);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
}

/* ── Home view ───────────────────────────────────────────────────────────── */

.view-home {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-8);
}

.home-hero {
  padding: var(--sp-4) 0 var(--sp-4);
}

.home-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semi);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.home-subtitle {
  color: var(--text-muted);
  font-size: var(--text-base);
}

.home-intro {
  padding: var(--sp-4) 0 var(--sp-6);
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.home-intro p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
}

.principle-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: background var(--ease), border-color var(--ease), transform var(--ease-out);
  overflow: hidden;
  border-left-width: 3px;
}

.principle-card:hover {
  background: var(--bg-raised);
  transform: translateX(2px);
}

.principle-card.principle-1 { border-left-color: var(--p1); }
.principle-card.principle-2 { border-left-color: var(--p2); }
.principle-card.principle-3 { border-left-color: var(--p3); }
.principle-card.principle-4 { border-left-color: var(--p4); }

.principle-card-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  min-width: 2rem;
  line-height: 1;
}

.principle-card.principle-1 .principle-num { color: var(--p1); }
.principle-card.principle-2 .principle-num { color: var(--p2); }
.principle-card.principle-3 .principle-num { color: var(--p3); }
.principle-card.principle-4 .principle-num { color: var(--p4); }

.principle-info { flex: 1; min-width: 0; }

.principle-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  margin-bottom: var(--sp-1);
}

.principle-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.principle-card sl-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.attribution {
  margin-top: var(--sp-10);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: var(--leading-relaxed);
}

.attribution a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.attribution a:hover { color: var(--accent); }

/* ── View header (principle/level/bookmarks) ─────────────────────────────── */

.view-header {
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
  text-decoration: none;
  transition: color var(--ease);
}

.back-link:hover { color: var(--accent); }

.view-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semi);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.principle-num-inline {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--text-muted);
}

/* ── Guideline sections ──────────────────────────────────────────────────── */

.guideline-section {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--sp-4) var(--sp-6);
}

.guideline-header {
  padding: var(--sp-4) 0 var(--sp-3);
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: var(--sp-2);
}

.guideline-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.guideline-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.guideline-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ── SC list rows ────────────────────────────────────────────────────────── */

.sc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  list-style: none;
}

.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-4);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-muted);
  gap: var(--sp-3);
  transition: background var(--ease);
  min-height: 60px;
}

.sc-row:hover {
  background: var(--bg-surface);
}

.sc-row-left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  flex: 1;
  min-width: 0;
}

.sc-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.sc-title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
}

.sc-principle-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-row-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.sc-row-right sl-icon {
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Level badge ─────────────────────────────────────────────────────────── */

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.5;
}

.level-a   { color: var(--level-a);   background: var(--level-a-bg);   }
.level-aa  { color: var(--level-aa);  background: var(--level-aa-bg);  }
.level-aaa { color: var(--level-aaa); background: var(--level-aaa-bg); }

/* ── SC detail view ──────────────────────────────────────────────────────── */

.view-sc-detail {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.sc-detail-header {
  padding: var(--sp-5) var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border-muted);
}

.sc-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.sc-num-large {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}

.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.obsolete-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
}

.sc-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.sc-detail-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semi);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  flex: 1;
}

.bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  font-size: 18px;
  margin-top: var(--sp-1);
}

.bookmark-btn:hover {
  color: var(--level-aa);
  border-color: var(--level-aa);
  background: var(--level-aa-bg);
}

.bookmark-btn.bookmarked {
  color: var(--level-aa);
  border-color: var(--level-aa);
  background: var(--level-aa-bg);
}

.sc-guideline-context {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── SC brief cards (Goal / What to do / Why) ────────────────────────────── */

.sc-brief {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}

.brief-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  background: var(--bg);
  padding: var(--sp-4) var(--sp-4);
}

.brief-label {
  font-family: var(--font-mono);
  font-size: var(--text-s);
  font-weight: var(--weight-medium);
   color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief-value {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
}

/* ── SC content sections ─────────────────────────────────────────────────── */

.sc-section {
  padding: var(--sp-6) var(--sp-4);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border-muted);
}

.sc-section:last-child { border-bottom: none; }

.section-title {
  font-size: var(--text-s);
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

/* Normative SC text */
.sc-normative-content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
}

.sc-normative-content p {
  margin-bottom: var(--sp-4);
}

.sc-normative-content dl {
  margin-bottom: var(--sp-4);
}

.sc-normative-content dt {
  font-weight: var(--weight-semi);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.sc-normative-content dd {
  padding-left: var(--sp-5);
  color: var(--text-muted);
}

.sc-normative-content ul,
.sc-normative-content ol {
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.sc-normative-content li {
  margin-bottom: var(--sp-2);
}

.sc-normative-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-normative-content a:not([href]),
.sc-understanding-content a:not([href]) {
  color: inherit;
  text-decoration: none;
  cursor: text;
  pointer-events: none;
}

.sc-normative-content .note {
  border-left: 3px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--bg-surface);
}

/* Understanding/intent text */
.sc-understanding-content {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
}

.sc-understanding-content h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semi);
  color: var(--text);
  margin: var(--sp-6) 0 var(--sp-3);
}

.sc-understanding-content h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text);
  margin: var(--sp-4) 0 var(--sp-2);
}

.sc-understanding-content p {
  margin-bottom: var(--sp-3);
}

.sc-understanding-content ul,
.sc-understanding-content ol {
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.sc-understanding-content li {
  margin-bottom: var(--sp-2);
}

.sc-understanding-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-understanding-content blockquote {
  border-left: 3px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) 0;
  background: var(--bg-surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.sc-understanding-content figure {
  margin: var(--sp-4) 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}

.sc-understanding-content figcaption {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

.sc-understanding-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

.sc-understanding-content .note {
  border-left: 3px solid var(--border);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-3) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.coming-soon-box {
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ── SC pagination ───────────────────────────────────────────────────────── */

.sc-pagination {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-4);
  border-top: 1px solid var(--border-muted);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;

  @media screen and (max-width:600px) {
    & {
      flex-direction:column;
    }
  }
}

.sc-pagination-placeholder {
  flex: 1;
}

.sc-pagination-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
  min-height: 44px;
  max-width:50%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  background: var(--bg-surface);
  transition: background var(--ease), border-color var(--ease);

  @media screen and (max-width:600px) {
    & {
      max-width:100%;
      
    }
  }
}

.sc-pagination-link:hover {
  background: var(--bg-raised);
  border-color: var(--accent);
}

.sc-pagination-next {
  justify-content: flex-end;
  text-align: right;
}

.pagination-direction {
  font-size: var(--text-lg);
  color: var(--text-muted);
  flex-shrink: 0;
}

.pagination-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pagination-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pagination-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
}

.pagination-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Level view ──────────────────────────────────────────────────────────── */

.view-levels { max-width: var(--max-w); margin: 0 auto; width: 100%; }

.level-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-bottom: var(--sp-2);
}

.level-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.level-tab:hover {
  background: var(--bg-surface);
  color: var(--text);
}

.level-tab.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Bookmarks view ──────────────────────────────────────────────────────── */

.view-bookmarks { max-width: var(--max-w); margin: 0 auto; width: 100%; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: var(--sp-4);
  padding: var(--sp-8);
  text-align: center;
  color: var(--text-muted);
}

.empty-state sl-icon {
  font-size: 40px;
  color: var(--text-muted);
}

.empty-state .text-muted {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Search view ─────────────────────────────────────────────────────────── */

.view-search { max-width: var(--max-w); margin: 0 auto; width: 100%; }

.results-count {
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: var(--max-w);
  margin: 0 auto;
}

.no-results {
  padding: var(--sp-8) var(--sp-4);
  text-align: center;
  color: var(--text-muted);
}

/* ── Principle view ──────────────────────────────────────────────────────── */

.view-principle { max-width: var(--max-w); margin: 0 auto; width: 100%; }