/* The example looks like the browser it will really run in. */
.window {
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 32px 80px -32px rgb(42 4 16 / 0.28);
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.window__address {
  flex: 1;
  min-width: 0;
  padding: 6px 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: var(--t-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample__switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--line);
}

.sample__switch button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 var(--t-small) var(--font);
  cursor: pointer;
  transition:
    background-color 240ms var(--ease),
    color 240ms var(--ease);
}

.sample__switch button[aria-pressed="true"] {
  background: var(--ruby-600);
  color: var(--on-ruby);
}

.window__page {
  padding: clamp(28px, 5vw, 64px);
}

.sample__title {
  margin-bottom: 20px;
  font-size: var(--t-h3);
}

.sample__text p {
  font-size: var(--t-lead);
  line-height: 1.6;
}

.sample__text + .sample__text {
  margin-top: 16px;
}

.sample__text[hidden] {
  display: none;
}

.term {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted var(--ruby-600) 2px;
  text-underline-offset: 4px;
  cursor: help;
  transition: color 200ms var(--ease);
}

.term:hover {
  color: var(--ruby-600);
}

.tip {
  position: fixed;
  z-index: 10;
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ruby-950);
  color: var(--on-ruby);
  font-size: var(--t-small);
  line-height: 1.4;
}

@media (max-width: 760px) {
  .window__address {
    display: none;
  }

  .window__bar {
    justify-content: flex-end;
  }
}
