/* MakeThemes — canonical theme styles (scoped to .theme) */

.theme {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: 1.6;
}

.theme h1,
.theme h2,
.theme h3,
.theme h4,
.theme h5,
.theme h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 calc(var(--space-unit) * 1.5);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.theme h1 { font-size: var(--h1); }
.theme h2 { font-size: var(--h2); }
.theme h3 { font-size: var(--h3); }
.theme h4 { font-size: var(--h4); }
.theme h5 { font-size: var(--h5); }
.theme h6 { font-size: var(--h6); color: var(--text-muted); font-weight: 600; }

.theme p { margin: 0 0 calc(var(--space-unit) * 1.5); }

.theme a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.theme a:hover { opacity: 0.8; }

.theme strong { font-weight: 700; }
.theme em { font-style: italic; }

.theme code,
.theme kbd {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.875em;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: calc(var(--radius) * 0.5);
  padding: 0.1em 0.35em;
}

.theme kbd { box-shadow: 0 2px 0 var(--border-color); }

.theme mark {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: inherit;
  padding: 0.1em 0.25em;
  border-radius: calc(var(--radius) * 0.35);
}

.theme blockquote {
  margin: 0 0 calc(var(--space-unit) * 2);
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  background: var(--surface);
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border-color);
}

.theme blockquote p:last-child { margin-bottom: calc(var(--space-unit) * 0.5); }

.theme blockquote cite {
  display: block;
  font-size: 0.875em;
  color: var(--text-muted);
  font-style: normal;
  margin-top: calc(var(--space-unit) * 0.75);
  padding-top: calc(var(--space-unit) * 0.75);
  border-top: var(--border-width) solid var(--border-color);
}

.theme ul,
.theme ol {
  margin: 0 0 calc(var(--space-unit) * 2);
  padding-left: calc(var(--space-unit) * 2.5);
}

.theme li { margin-bottom: calc(var(--space-unit) * 0.5); }

@media (min-width: 769px) {
  .theme li { margin-bottom: 0; }
}

.theme hr {
  border: none;
  border-top: var(--border-width) solid var(--border-color);
  margin: calc(var(--space-unit) * 3) 0;
}

.theme pre {
  margin: 0 0 calc(var(--space-unit) * 2);
  padding: calc(var(--space-unit) * 1.5);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875em;
  line-height: 1.5;
  box-shadow: var(--shadow);
}

.theme pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* Components */

.theme .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-unit);
  padding: var(--space-unit) calc(var(--space-unit) * 1.5);
  margin-bottom: calc(var(--space-unit) * 2);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .nav__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h4);
  line-height: 1;
  flex-shrink: 0;
}

.theme .nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(var(--space-unit) * 1.5);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.theme .nav__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: calc(var(--space-unit) * 0.75);
  flex-shrink: 0;
}

.theme .nav__actions .btn {
  font-size: 0.8125em;
  padding: calc(var(--space-unit) * 0.55) calc(var(--space-unit) * 1.15);
}

.theme .nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9375em;
  font-weight: 500;
}

.theme .nav__links a:hover { color: var(--nav-link-hover, var(--accent)); }

.theme .nav__links a.is-active {
  color: var(--nav-link-active, var(--text));
  font-weight: 700;
}

.theme .hero { margin-bottom: calc(var(--space-unit) * 3); }

.theme .eyebrow {
  font-size: 0.8125em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-on-bg, var(--accent));
  margin-bottom: var(--space-unit) !important;
}

.theme .lead {
  font-size: calc(var(--base-size) * 1.125);
  color: var(--text-muted);
  max-width: 42em;
}

.theme .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-unit);
  margin-top: calc(var(--space-unit) * 2);
}

.theme .theme-section { margin-bottom: calc(var(--space-unit) * 3); }

.theme .theme-section--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: calc(var(--space-unit) * 2);
}

.theme .btn {
  font-family: var(--font-body);
  font-size: 0.9375em;
  font-weight: 600;
  padding: calc(var(--space-unit) * 0.75) calc(var(--space-unit) * 1.75);
  border-radius: var(--radius);
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.theme .btn:hover { opacity: 0.88; }
.theme .btn:active { transform: scale(0.98); }

.theme .btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--btn-primary-border, var(--accent));
  box-shadow: var(--btn-primary-shadow, var(--shadow));
}

.theme .btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-color);
}

.theme .btn--ghost {
  background: transparent;
  color: var(--ghost-text, var(--text));
  border-color: var(--border-color);
  box-shadow: none;
}

.theme .btn:disabled,
.theme .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.theme small { font-size: 0.8125em; color: var(--text-muted); }
.theme del { opacity: 0.65; }
.theme ins {
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 0.05em 0.2em;
  border-radius: calc(var(--radius) * 0.25);
}

.theme .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875em;
  margin-bottom: calc(var(--space-unit) * 2);
  color: var(--text-muted);
}

.theme .breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
}

.theme .breadcrumb a:hover { color: var(--accent); }
.theme .breadcrumb__sep { opacity: 0.45; }

.theme .figure {
  margin: 0 0 calc(var(--space-unit) * 2);
}

.theme .figure__image {
  display: block;
  width: 100%;
  min-height: 8rem;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
}

.theme .post-cover .figure__image {
  aspect-ratio: 12 / 5;
}

.theme figcaption,
.theme .figure__caption {
  margin-top: calc(var(--space-unit) * 0.75);
  font-size: 0.875em;
  color: var(--text-muted);
}

.theme .figure__credit:empty {
  display: none;
}

.theme .figure__credit:not(:empty)::before {
  content: '· ';
}

.theme .progress {
  width: 100%;
  height: 0.5rem;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  accent-color: var(--accent);
  border: none;
}

.theme .fieldset {
  margin: 0;
  padding: calc(var(--space-unit) * 1.25);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.theme .fieldset legend {
  font-size: 0.875em;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.theme .details {
  margin-top: calc(var(--space-unit) * 1.5);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.theme .details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-unit);
  padding: calc(var(--space-unit) * 0.75) var(--space-unit);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.theme .details summary::-webkit-details-marker { display: none; }

.theme .details summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  margin-left: auto;
  margin-right: calc(var(--space-unit) * 0.5);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.theme .details[open] summary::after {
  transform: rotate(-135deg);
  opacity: 0.75;
}

.theme .details[open] summary {
  border-bottom: var(--border-width) solid var(--border-color);
}

.theme .details p {
  padding: var(--space-unit);
  margin: 0;
  font-size: 0.9375em;
  color: var(--text-muted);
}

.theme .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.theme .pagination__btn,
.theme .pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border-color);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875em;
  font-weight: 500;
}

.theme .pagination__page.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.theme input[type="number"],
.theme input[type="search"] {
  font-family: var(--font-body);
  font-size: 0.9375em;
  padding: calc(var(--space-unit) * 0.75) var(--space-unit);
  background: var(--input-bg, #ffffff);
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
}

.theme table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375em;
  margin-top: calc(var(--space-unit) * 1.5);
}

.theme th,
.theme td {
  padding: calc(var(--space-unit) * 0.75) var(--space-unit);
  text-align: left;
  border-bottom: var(--border-width) solid var(--border-color);
}

.theme th {
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--surface);
}

.theme tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.theme .badge {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: calc(var(--space-unit) * 0.25) calc(var(--space-unit) * 0.75);
  border-radius: calc(var(--radius) * 2);
  background: var(--surface);
  color: var(--text-muted);
  border: var(--border-width) solid var(--border-color);
}

.theme .badge--accent {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.theme .badge--success {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  color: var(--badge-success-text, var(--text));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border-color));
}

.theme .form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 1.5);
}

.theme .form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: calc(var(--space-unit) * 1.5);
}

.theme .field {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.5);
}

.theme .field__label {
  font-size: 0.875em;
  font-weight: 600;
  color: var(--text-muted);
}

.theme input[type="text"],
.theme input[type="email"],
.theme input[type="password"],
.theme input[type="search"],
.theme input[type="url"],
.theme textarea,
.theme select {
  font-family: var(--font-body);
  font-size: 0.9375em;
  padding: calc(var(--space-unit) * 0.75) var(--space-unit);
  background-color: var(--input-bg, #ffffff);
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
}

.theme select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: calc(var(--space-unit) * 2.75);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 0.85rem) center;
  background-size: 0.65rem;
}

.theme input:focus,
.theme textarea:focus,
.theme select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme textarea { resize: vertical; min-height: 5em; }

.theme .form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1.5);
}

.theme .check {
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 0.5);
  font-size: 0.9375em;
  cursor: pointer;
}

.theme input[type="checkbox"],
.theme input[type="radio"] {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--accent);
}

.theme input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.theme .form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-unit);
}

.theme .alert {
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  margin-bottom: calc(var(--space-unit) * 3);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: var(--border-width) solid color-mix(in srgb, var(--accent) 35%, var(--border-color));
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow);
}

.theme .alert strong { color: var(--alert-emphasis, var(--text)); }

.theme .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--space-unit) * 2);
}

.theme .card {
  padding: calc(var(--space-unit) * 2);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .card h3 {
  font-size: var(--h4);
  margin-bottom: var(--space-unit);
}

.theme .card p {
  font-size: 0.9375em;
  color: var(--text-muted);
  margin-bottom: var(--space-unit);
}

.theme .card .badge { margin-top: calc(var(--space-unit) * 0.5); }

.theme .btn--block {
  width: 100%;
  display: block;
  text-align: center;
}

/* Login page */

.theme .login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
  padding: calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 3);
}

.preview-frame--solo .login-page {
  min-height: min(32rem, 72vh);
  padding: calc(var(--space-unit) * 4) 0;
}

.preview-frame--solo .blog-post,
.preview-frame--solo .pricing-page,
.preview-frame--solo .dashboard,
.preview-frame--solo .settings-page {
  padding: calc(var(--space-unit) * 2) 0 calc(var(--space-unit) * 3);
}

/* Pricing */

.theme .pricing-page {
  max-width: 52rem;
  margin: 0 auto;
}

.theme .pricing-page__header {
  text-align: center;
  margin-bottom: calc(var(--space-unit) * 3);
}

.theme .pricing-page__header h1 {
  font-size: var(--h2);
  margin-bottom: var(--space-unit);
}

.theme .pricing-page__lead {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto !important;
}

.theme .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: calc(var(--space-unit) * 2);
  align-items: stretch;
}

.theme .pricing-tier {
  display: flex;
  flex-direction: column;
  gap: var(--space-unit);
  padding: calc(var(--space-unit) * 2);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .pricing-tier--featured {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.theme .pricing-tier--featured .pricing-tier__desc,
.theme .pricing-tier--featured .pricing-tier__features {
  color: color-mix(in srgb, var(--bg) 75%, transparent);
}

.theme .pricing-tier--featured .pricing-tier__name,
.theme .pricing-tier--featured .pricing-tier__price {
  color: var(--bg);
}

.theme .pricing-tier__name {
  font-size: var(--h4);
  margin: 0 !important;
}

.theme .pricing-tier__price {
  margin: 0;
  line-height: 1;
}

.theme .pricing-tier__amount {
  font-family: var(--font-heading);
  font-size: var(--h2);
  font-weight: 700;
}

.theme .pricing-tier__period {
  font-size: 0.875em;
  color: var(--text-muted);
}

.theme .pricing-tier--featured .pricing-tier__period {
  color: color-mix(in srgb, var(--bg) 65%, transparent);
}

.theme .pricing-tier__desc {
  font-size: 0.9375em;
  color: var(--text-muted);
  margin: 0 !important;
}

.theme .pricing-tier__features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 0.875em;
  color: var(--text-muted);
}

.theme .pricing-tier__features li {
  padding: calc(var(--space-unit) * 0.35) 0;
  border-bottom: var(--border-width) solid var(--border-color);
  margin: 0;
}

.theme .pricing-tier--featured .pricing-tier__features li {
  border-bottom-color: color-mix(in srgb, var(--bg) 25%, transparent);
}

.theme .pricing-tier__features li:last-child {
  border-bottom: none;
}

.theme .pricing-tier .btn--secondary {
  margin-top: auto;
}

/* Dashboard */

.theme .dashboard {
  display: grid;
  grid-template-columns: minmax(140px, 11rem) 1fr;
  gap: calc(var(--space-unit) * 2);
  min-height: min(32rem, 72vh);
}

.theme .dashboard__sidebar {
  padding: calc(var(--space-unit) * 1.5);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .dashboard__brand {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--h5);
  margin-bottom: calc(var(--space-unit) * 2);
}

.theme .dashboard__nav {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.35);
}

.theme .dashboard__nav-link {
  display: block;
  padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 0.75);
  border-radius: calc(var(--radius) * 0.5);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875em;
  font-weight: 500;
}

.theme .dashboard__nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.theme .dashboard__nav-link.is-active {
  color: var(--sidebar-link-active, var(--text));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-weight: 600;
}

.theme .dashboard__main {
  min-width: 0;
}

.theme .dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-unit);
  margin-bottom: calc(var(--space-unit) * 2);
}

.theme .dashboard__header h1 {
  font-size: var(--h3);
  margin: 0 !important;
}

.theme .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-unit);
  margin-bottom: calc(var(--space-unit) * 2);
}

.theme .stat-card {
  padding: calc(var(--space-unit) * 1.25);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .stat-card__label {
  margin: 0 0 calc(var(--space-unit) * 0.35);
  font-size: 0.8125em;
  color: var(--text-muted);
}

.theme .stat-card__value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.1;
}

.theme .dashboard__section h2 {
  font-size: var(--h5);
  margin-bottom: var(--space-unit) !important;
}

.theme .dashboard__section--chart {
  margin-bottom: calc(var(--space-unit) * 2);
}

.theme .dashboard-chart {
  position: relative;
  height: 11.5rem;
  padding: calc(var(--space-unit) * 1.1) calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 0.75);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .dashboard-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.theme .dashboard__section table {
  margin-top: 0;
}

@media (max-width: 640px) {
  .theme .dashboard {
    grid-template-columns: 1fr;
  }

  .theme .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Settings */

.theme .settings-page {
  max-width: 36rem;
  margin: 0 auto;
}

.theme .settings-page__header {
  margin-bottom: calc(var(--space-unit) * 2);
}

.theme .settings-page__header h1 {
  font-size: var(--h2);
  margin-bottom: calc(var(--space-unit) * 0.5);
}

.theme .settings-page__lead {
  color: var(--text-muted);
  margin: 0 !important;
}

.theme .settings-section {
  padding: calc(var(--space-unit) * 1.5) 0;
  border-top: var(--border-width) solid var(--border-color);
}

.theme .settings-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.theme .settings-section__title {
  font-size: var(--h5);
  margin-bottom: calc(var(--space-unit) * 1.25) !important;
}

.theme .settings-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 0.5);
}

.theme .settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 1.5);
  padding: calc(var(--space-unit) * 1) calc(var(--space-unit) * 1.25);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
}

.theme .settings-row__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.theme .settings-row__label {
  font-size: 0.9375em;
  font-weight: 600;
}

.theme .settings-row__hint {
  font-size: 0.8125em;
  color: var(--text-muted);
}

.theme .settings-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-unit);
  margin-top: calc(var(--space-unit) * 1.5);
}

.theme .login-card {
  width: 100%;
  max-width: 22rem;
  padding: calc(var(--space-unit) * 2.5);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .login-card h1 {
  font-size: var(--h3);
  margin-bottom: var(--space-unit);
  text-align: center;
}

.theme .login-card__lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375em;
  margin-bottom: calc(var(--space-unit) * 2) !important;
}

.theme .login-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-unit);
  flex-wrap: wrap;
  font-size: 0.875em;
}

.theme .login-card__row a {
  text-decoration: none;
  font-weight: 500;
}

.theme .login-card__footer {
  text-align: center;
  font-size: 0.875em;
  color: var(--text-muted);
  margin: calc(var(--space-unit) * 1.5) 0 0 !important;
}

.theme .login-card__footer a { font-weight: 600; }

.theme .nav--minimal .nav__links { display: none; }

/* Blog post */

.theme .blog-post { max-width: 42rem; margin: 0 auto; }

.theme .post-header { margin-bottom: calc(var(--space-unit) * 2); }

.theme .post-header h1 { margin-bottom: var(--space-unit); }

.theme .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875em;
  color: var(--text-muted);
}

.theme .post-meta__sep { opacity: 0.45; }

.theme .post-cover { margin-bottom: calc(var(--space-unit) * 2); }

.theme .post-content { margin-bottom: calc(var(--space-unit) * 2); }

.theme .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 0.5);
  margin-bottom: calc(var(--space-unit) * 2);
}

.theme .author-card {
  display: flex;
  gap: calc(var(--space-unit) * 1.25);
  align-items: flex-start;
  padding: calc(var(--space-unit) * 1.5);
  background: var(--surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme .author-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent);
  font-weight: 700;
  font-size: 0.875em;
}

.theme .author-card__name {
  font-size: var(--h5);
  margin-bottom: calc(var(--space-unit) * 0.35) !important;
}

.theme .author-card p {
  font-size: 0.875em;
  color: var(--text-muted);
  margin: 0 !important;
}

/* Glass blur (set data-shadow="glass-blur" on .theme) */

.theme[data-shadow="glass-blur"] .nav,
.theme[data-shadow="glass-blur"] .card,
.theme[data-shadow="glass-blur"] .alert,
.theme[data-shadow="glass-blur"] .login-card,
.theme[data-shadow="glass-blur"] .author-card,
.theme[data-shadow="glass-blur"] .pricing-tier,
.theme[data-shadow="glass-blur"] .stat-card,
.theme[data-shadow="glass-blur"] .dashboard__sidebar,
.theme[data-shadow="glass-blur"] .settings-row {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.theme[data-shadow="glass-blur"] .nav {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme[data-shadow="glass-blur"] .alert {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}