
/* Minimal, conflict-free styles for the Träwelling widget */
.tw-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  /* Use site theme variables so dark/light match other cards */
  background: var(--link-bg);
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--card), #ffffff 8%);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  backdrop-filter: saturate(120%);
}
/* Subtle hover to match .link cards */
.tw-card:hover { background: var(--link-bg-hover); }

.tw-headline {
  font-size: 16px;
  font-weight: 600;
}

.tw-tablewrap {
  overflow-x: auto;
}

.tw-wide {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.tw-cell {
  width: 33.333%;
  vertical-align: top;
  padding: 2px 6px;
}

.tw-cell.center { text-align: center; }

.tw-linelabel {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  /* Use button theme surface for consistency */
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
}

.tw-bigger {
  font-size: 20px;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}

.tw-progress {
  width: 100%;
  height: 8px;
  /* Soft track using themed colors */
  background: color-mix(in oklab, var(--text), transparent 86%);
  border-radius: 999px;
  overflow: hidden;
}

.tw-progressbar {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.tw-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  /* Match other buttons (copy/theme) via vars */
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  font-weight: 600;
  text-align: center;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tw-btn:hover { transform: translateY(-1px); }
.tw-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }
