/* HTML tutorial introduction — page-specific layout.
   Shared tutorial chrome stays in tutorial-layout.css. */

.html-intro .hi-dek {
  max-width: 42rem;
  margin: 0.25rem 0 1.35rem;
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.html-intro .hi-cards,
.html-intro .hi-split,
.html-intro .hi-trio,
.html-intro .hi-flow,
.html-intro .hi-acronym,
.html-intro .hi-bits {
  margin-top: 0.25rem;
}

.html-intro .hi-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.html-intro .hi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 1.05rem 1.05rem 1.1rem;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.html-intro a.hi-card:hover,
.html-intro .hi-card:hover {
  border-color: #5eead4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  color: inherit;
}

.html-intro .hi-card-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.7rem;
  border-radius: 0.6rem;
  background: #f0fdfa;
  color: #0f766e;
}

.html-intro .hi-card-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.html-intro .hi-card--blue .hi-card-icon { background: #eff6ff; color: #1d4ed8; }
.html-intro .hi-card--purple .hi-card-icon { background: #f5f3ff; color: #6d28d9; }
.html-intro .hi-card--orange .hi-card-icon { background: #fff7ed; color: #c2410c; }
.html-intro .hi-card--pink .hi-card-icon { background: #fdf2f8; color: #be185d; }
.html-intro .hi-card--amber .hi-card-icon { background: #fffbeb; color: #b45309; }

.tut-content-inner .html-intro #learn .learn-grid--overview .learn-card--amber {
  --learn-accent: #d97706;
  --learn-accent-soft: #fffbeb;
  --learn-accent-border: #fde68a;
}

.tut-content-inner .html-intro #what-you-can-build .hi-cards {
  margin-top: 1.15rem;
}

.tut-content-inner .html-intro .hi-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #0f172a;
}

.tut-content-inner .html-intro .hi-card p {
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
}

.html-intro a.hi-card::after {
  content: "Explore";
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f766e;
}

.html-intro .hi-acronym {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.html-intro .hi-acronym li {
  min-width: 0;
  padding: 0.9rem 0.95rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.html-intro .hi-acronym strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #0f766e;
  font-size: 0.95rem;
}

.html-intro .hi-acronym span {
  display: block;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.html-intro .hi-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hi-flow;
}

.html-intro .hi-flow li {
  position: relative;
  min-width: 0;
  padding: 1rem 1rem 0.95rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
}

.html-intro .hi-flow-num {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
}

.tut-content-inner .html-intro .hi-flow h3,
.tut-content-inner .html-intro .hi-era h3,
.tut-content-inner .html-intro .hi-road h3,
.tut-content-inner .html-intro .hi-trio h3,
.tut-content-inner .html-intro .hi-sheet h3,
.tut-content-inner .html-intro .hi-detail h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: inherit;
}

.tut-content-inner .html-intro .hi-flow p,
.tut-content-inner .html-intro .hi-era p,
.tut-content-inner .html-intro .hi-road p,
.tut-content-inner .html-intro .hi-trio p,
.tut-content-inner .html-intro .hi-sheet p,
.tut-content-inner .html-intro .hi-detail p {
  margin: 0;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.55;
}

.html-intro .hi-doc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.html-intro .hi-hint {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.84rem;
}

.html-intro .hi-tree {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.html-intro .hi-nest {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-left: 0.65rem;
  padding-left: 0.7rem;
  border-left: 2px solid #99f6e4;
}

.html-intro .hi-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.45rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 0.8rem;
}

.html-intro .hi-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.html-intro .hi-node:hover {
  border-color: #5eead4;
}

.html-intro .hi-node.is-on {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.html-intro .hi-node-kicker {
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.html-intro .hi-node-name {
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.html-intro .hi-detail {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 0.9rem;
  background: #0f172a;
  color: #e2e8f0;
}

.html-intro .hi-detail-kicker {
  margin: 0 0 0.35rem;
  color: #5eead4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tut-content-inner .html-intro .hi-detail h3 {
  color: #fff;
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.95rem;
}

.tut-content-inner .html-intro .hi-detail p {
  margin-top: 0.55rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.html-intro .hi-anatomy {
  margin: 0 0 1.15rem;
  padding: 1rem 1rem 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

.html-intro .hi-anatomy figcaption {
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 800;
}

.html-intro .hi-anatomy-code {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.2rem;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.html-intro .hi-part {
  padding: 0.28rem 0.4rem;
  border-radius: 0.4rem;
}

.html-intro .hi-part--tag { background: #fdf2f8; color: #9d174d; }
.html-intro .hi-part--attr { background: #ecfeff; color: #155e75; }
.html-intro .hi-part--text { background: #f0fdf4; color: #166534; }

.html-intro .hi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}

.html-intro .hi-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.html-intro .hi-swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
}

.html-intro .hi-swatch--tag { background: #f9a8d4; }
.html-intro .hi-swatch--attr { background: #67e8f9; }
.html-intro .hi-swatch--text { background: #86efac; }

.html-intro .hi-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
}

.html-intro .hi-era {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
}

.html-intro .hi-era-mark {
  position: relative;
  display: flex;
  justify-content: center;
}

.html-intro .hi-era-mark::before {
  content: "";
  z-index: 1;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: #0d9488;
  box-shadow: 0 0 0 4px #ccfbf1;
}

.html-intro .hi-era-mark::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #99f6e4;
  transform: translateX(-50%);
}

.html-intro .hi-era:last-child .hi-era-mark::after {
  display: none;
}

.html-intro .hi-era.is-now .hi-era-mark::before {
  background: #0f766e;
  box-shadow: 0 0 0 4px #99f6e4;
}

.html-intro .hi-era-body {
  padding: 0 0 1.15rem;
}

.html-intro .hi-era:last-child .hi-era-body {
  padding-bottom: 0;
}

.html-intro .hi-era-year {
  display: block;
  margin-bottom: 0.15rem;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.html-intro .hi-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.html-intro .hi-trio-card {
  min-width: 0;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #0d9488;
  border-radius: 0.85rem;
  background: #fff;
}

.html-intro .hi-trio-card--css { border-top-color: #2563eb; }
.html-intro .hi-trio-card--js { border-top-color: #d97706; }

.html-intro .hi-trio-kicker {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.html-intro .hi-trio-card--css .hi-trio-kicker { color: #1d4ed8; }
.html-intro .hi-trio-card--js .hi-trio-kicker { color: #b45309; }

.html-intro .hi-trio code {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.78rem;
}

.html-intro .hi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.html-intro .hi-tabs button {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0.42rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.html-intro .hi-tabs button.is-on {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.html-intro .hi-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.html-intro .hi-browser {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.html-intro .hi-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.7rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.html-intro .hi-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.html-intro .hi-dot--r { background: #fb7185; }
.html-intro .hi-dot--y { background: #fbbf24; }
.html-intro .hi-dot--g { background: #34d399; }

.html-intro .hi-url {
  flex: 1;
  min-width: 0;
  margin-left: 0.35rem;
  padding: 0.18rem 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.html-intro .hi-preview {
  min-height: 12.5rem;
  padding: 1rem;
}

.html-intro .hi-demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.html-intro .hi-demo-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.html-intro .hi-demo-nav a:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

.html-intro .hi-demo-note,
.html-intro .hi-panel-note {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.html-intro .hi-demo-form {
  display: grid;
  gap: 0.4rem;
  max-width: 18rem;
}

.html-intro .hi-demo-form label {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
}

.html-intro .hi-demo-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.48rem 0.65rem;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.html-intro .hi-demo-form button,
.html-intro .hi-text-btn,
.html-intro .hi-player {
  border: none;
  cursor: pointer;
  font: inherit;
}

.html-intro .hi-demo-form button {
  justify-self: start;
  margin-top: 0.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  background: #0d9488;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.html-intro .hi-demo-form button:hover {
  background: #0f766e;
}

.html-intro .hi-form-status {
  min-height: 1.35em;
  margin: 0.65rem 0 0;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.html-intro .hi-figure {
  margin: 0;
}

.html-intro .hi-figure-frame {
  display: grid;
  place-items: center;
  height: 8.5rem;
  border-radius: 0.7rem;
  background: linear-gradient(155deg, #bfdbfe 0%, #fde68a 52%, #fecaca 100%);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.html-intro .hi-alt-text {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  margin: 0;
  padding: 1rem;
  border-radius: 0.7rem;
  background: #f0fdfa;
  color: #134e4a;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.html-intro .hi-figure figcaption {
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.8rem;
}

.html-intro .hi-text-btn {
  margin-top: 0.75rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid #99f6e4;
  border-radius: 0.5rem;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 800;
}

.html-intro .hi-text-btn.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.html-intro .hi-player {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 8.5rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(94, 234, 212, 0.35), transparent 42%),
    #0f172a;
  color: #fff;
  text-align: center;
}

.html-intro .hi-player.is-playing {
  background:
    radial-gradient(circle at 70% 30%, rgba(52, 211, 153, 0.45), transparent 46%),
    #134e4a;
}

.html-intro .hi-player-label {
  font-size: 0.95rem;
  font-weight: 800;
}

.html-intro .hi-code {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border-radius: 0.85rem;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre;
}

.html-intro .hi-panel[hidden],
.html-intro .hi-figure-frame[hidden],
.html-intro .hi-alt-text[hidden] {
  display: none !important;
}

.html-intro .hi-code .tok-tag { color: #f472b6; }
.html-intro .hi-code .tok-attr { color: #5eead4; }
.html-intro .hi-code .tok-str { color: #86efac; }
.html-intro .hi-code .tok-punctuation { color: #94a3b8; }

.html-intro .hi-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.html-intro .hi-sheet {
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
}

.html-intro .hi-checks {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.html-intro .hi-checks li {
  position: relative;
  margin: 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
}

.html-intro .hi-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}

.html-intro .hi-sheet--later .hi-checks li::before {
  background-color: #e0f2fe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230364a1' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v6l4 2'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.html-intro .hi-road {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.html-intro .hi-road-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}

.html-intro .hi-road-rail {
  position: relative;
  display: flex;
  justify-content: center;
  width: 2rem;
}

.html-intro .hi-road-rail::after {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e2e8f0;
  transform: translateX(-50%);
}

.html-intro .hi-road-item:last-child .hi-road-rail::after {
  display: none;
}

.html-intro .hi-road-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
}

.html-intro .hi-road-item.is-current .hi-road-num {
  background: #0d9488;
  color: #fff;
}

.html-intro .hi-road-body {
  padding-bottom: 1.15rem;
}

.html-intro .hi-road-item:last-child .hi-road-body {
  padding-bottom: 0;
}

.html-intro .hi-road h3 a {
  color: #0f766e;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.html-intro .hi-road h3 a:hover {
  color: #115e59;
}

.tut-content-inner .html-intro .section p a,
.tut-content-inner .html-intro .section li a,
.tut-content-inner .html-intro .tut-callout a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tut-content-inner .html-intro .section p a:hover,
.tut-content-inner .html-intro .section li a:hover,
.tut-content-inner .html-intro .tut-callout a:hover {
  color: #1e3a8a;
}

.html-intro .hi-bits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.html-intro .hi-bits li {
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #fff;
}

.html-intro .hi-bits strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #0f172a;
  font-size: 0.86rem;
}

.html-intro .hi-bits span {
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tut-content-inner .html-intro .hi-render {
  color: #0f172a;
}

.tut-content-inner .html-intro .hi-render header p {
  margin: 0;
}

.tut-content-inner .html-intro .hi-render h1 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tut-content-inner .html-intro .hi-render h2 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tut-content-inner .html-intro .hi-render p,
.tut-content-inner .html-intro .hi-render li {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.tut-content-inner .html-intro .hi-render ul {
  margin: 0.2rem 0 0.4rem 1.15rem;
  padding: 0;
  list-style: disc;
}

.tut-content-inner .html-intro .hi-render nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.75rem 0 0.15rem;
}

.tut-content-inner .html-intro .hi-render a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tut-content-inner .html-intro .hi-render footer {
  margin-top: 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.tut-content-inner .html-intro .hi-render footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
}

.tut-content-inner .html-intro .tut-callout {
  margin-bottom: 1.15rem;
}

.tut-content-inner .html-intro #learn .learn-grid--overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tut-content-inner .html-intro #learn .learn-grid--overview a.learn-card {
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.tut-content-inner .html-intro #learn .learn-grid--overview a.learn-card::after {
  content: "Start this topic";
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--learn-accent, #0f766e);
  font-size: 0.78rem;
  font-weight: 800;
}

.html-intro .hi-node:focus-visible,
.html-intro .hi-tabs button:focus-visible,
.html-intro .hi-text-btn:focus-visible,
.html-intro .hi-player:focus-visible,
.html-intro .hi-demo-form button:focus-visible,
.html-intro a.hi-card:focus-visible,
.html-intro #learn a.learn-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

@container tut-main (min-width: 36rem) {
  .html-intro .hi-flow,
  .html-intro .hi-bits,
  .html-intro .hi-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container tut-main (min-width: 42rem) {
  .html-intro .hi-doc,
  .html-intro .hi-panel-grid,
  .html-intro .hi-trio {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .html-intro .hi-trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .html-intro .hi-detail {
    position: sticky;
    top: 5.25rem;
  }
}

@container tut-main (min-width: 52rem) {
  .html-intro .hi-cards,
  .tut-content-inner .html-intro #learn .learn-grid--overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .html-intro .hi-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container tut-main (max-width: 28rem) {
  .html-intro .hi-cards,
  .html-intro .hi-acronym,
  .tut-content-inner .html-intro #learn .learn-grid--overview {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .html-intro .hi-card,
  .html-intro .hi-node,
  .html-intro a.learn-card {
    transition: none;
  }

  .html-intro .hi-card:hover {
    transform: none;
  }
}
