/* Express introduction: one reading column, large type, no spec-sheet layout. */

:is(.express-intro, .tut-read) .section {
  margin-bottom: 3.5rem;
}

:is(.express-intro, .tut-read) .section-label,
:is(.express-intro, .tut-read) .related-section-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f766e;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

:is(.express-intro, .tut-read) .section h2,
:is(.express-intro, .tut-read) .tut-faq h2,
:is(.express-intro, .tut-read) #related-topics h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.7rem, 2.6vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

:is(.express-intro, .tut-read) .section-intro,
:is(.express-intro, .tut-read) .section > p,
:is(.express-intro, .tut-read) .tut-callout p,
:is(.express-intro, .tut-read) .tut-faq-a,
:is(.express-intro, .tut-read) .tut-didyouknow p,
:is(.express-intro, .tut-read) .xi-spec dd,
:is(.express-intro, .tut-read) .xi-rows p,
:is(.express-intro, .tut-read) .xi-uses p,
:is(.express-intro, .tut-read) .xi-flow p,
:is(.express-intro, .tut-read) .xi-traits p,
:is(.express-intro, .tut-read) .xi-checks li,
:is(.express-intro, .tut-read) .xi-recap li,
:is(.express-intro, .tut-read) .xi-path-desc {
  color: #1e293b;
  font-size: 1.075rem;
  line-height: 1.75;
}

:is(.express-intro, .tut-read) .section-intro,
:is(.express-intro, .tut-read) .section > p {
  max-width: 42rem;
  margin-bottom: 1rem;
}

:is(.express-intro, .tut-read) .section p a,
:is(.express-intro, .tut-read) .xi-checks a,
:is(.express-intro, .tut-read) .tut-callout a,
:is(.express-intro, .tut-read) .xi-spec a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

:is(.express-intro, .tut-read) .section h3 {
  margin: 1.75rem 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a;
}

/* Short summaries under the introduction */
:is(.express-intro, .tut-read) .xi-traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 1.5rem;
}

:is(.express-intro, .tut-read) .xi-traits article {
  min-width: 0;
  padding: 1rem 1.05rem 1.05rem;
  background: #f8fafc;
  border-radius: 0.75rem;
}

:is(.express-intro, .tut-read) .xi-traits h3,
:is(.express-intro, .tut-read) .xi-rows h3,
:is(.express-intro, .tut-read) .xi-uses h3 {
  margin: 0 0 0.3rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

:is(.express-intro, .tut-read) .xi-traits p,
:is(.express-intro, .tut-read) .xi-rows p,
:is(.express-intro, .tut-read) .xi-uses p {
  margin: 0;
}

/* One idea under the next, top to bottom */
:is(.express-intro, .tut-read) .xi-rows,
:is(.express-intro, .tut-read) .xi-uses,
:is(.express-intro, .tut-read) .xi-recap {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
  border-radius: 0;
}

:is(.express-intro, .tut-read) .xi-rows article,
:is(.express-intro, .tut-read) .xi-uses li,
:is(.express-intro, .tut-read) .xi-recap li {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* Feature names and code names sit above a full sentence */
:is(.express-intro, .tut-read) .xi-spec {
  margin: 0.25rem 0 1.25rem;
}

:is(.express-intro, .tut-read) .xi-spec > div {
  display: block;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

:is(.express-intro, .tut-read) .xi-spec dt {
  margin: 0 0 0.2rem;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

:is(.express-intro, .tut-read) .xi-spec dd {
  margin: 0;
  max-width: 42rem;
}

/* Numbered request flow */
:is(.express-intro, .tut-read) .xi-flow {
  list-style: none;
  margin: 0.35rem 0 1.5rem;
  padding: 0;
  counter-reset: xi-step;
}

:is(.express-intro, .tut-read) .xi-flow li {
  position: relative;
  margin: 0 0 1.2rem;
  padding: 0.1rem 0 0 2.85rem;
}

:is(.express-intro, .tut-read) .xi-flow li::before {
  counter-increment: xi-step;
  content: counter(xi-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.9rem;
  text-align: center;
}

:is(.express-intro, .tut-read) .xi-flow li::after {
  content: none;
}

:is(.express-intro, .tut-read) .xi-flow h3 {
  margin: 0 0 0.15rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.9rem;
  color: #0f172a;
}

:is(.express-intro, .tut-read) .xi-flow p {
  margin: 0;
  max-width: 42rem;
}

/* Next lessons: title, then one sentence */
:is(.express-intro, .tut-read) .xi-path {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  border-top: 1px solid #e8eef2;
}

:is(.express-intro, .tut-read) .xi-path a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1rem 0.1rem;
  border-bottom: 1px solid #e8eef2;
  color: inherit;
}

:is(.express-intro, .tut-read) .xi-path a:hover .xi-path-title {
  color: #0f766e;
}

:is(.express-intro, .tut-read) .xi-path-index {
  grid-column: 1;
  grid-row: 1;
  color: #0f766e;
  font-size: 0.95rem;
  font-weight: 700;
}

:is(.express-intro, .tut-read) .xi-path-title {
  grid-column: 2;
  grid-row: 1;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

:is(.express-intro, .tut-read) .xi-path-title em {
  display: inline;
  margin-left: 0.4rem;
  color: #64748b;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
}

:is(.express-intro, .tut-read) .xi-path-title em::before {
  content: "· ";
}

:is(.express-intro, .tut-read) .xi-path-desc {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

:is(.express-intro, .tut-read) .xi-path-go {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: #0f766e;
  font-size: 1.15rem;
}

/* Prerequisites */
:is(.express-intro, .tut-read) .xi-checks {
  margin: 0.25rem 0 1.25rem;
  padding: 0;
}

:is(.express-intro, .tut-read) .xi-checks li {
  position: relative;
  max-width: 42rem;
  margin: 0;
  padding: 0 0 0.95rem 1.65rem;
  border: 0;
}

:is(.express-intro, .tut-read) .xi-checks li::before {
  content: "";
  position: absolute;
  left: 0.05rem;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.32rem;
  border-left: 2px solid #0f766e;
  border-bottom: 2px solid #0f766e;
  transform: rotate(-45deg);
}

:is(.express-intro, .tut-read) .xi-checks li strong {
  color: #0f172a;
}

:is(.express-intro, .tut-read) .xi-recap {
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Plain notes, easy to read */
:is(.express-intro, .tut-read) .tut-callout,
:is(.express-intro, .tut-read) .tut-callout--info,
:is(.express-intro, .tut-read) .tut-callout--tip,
:is(.express-intro, .tut-read) .tut-callout--success,
:is(.express-intro, .tut-read) .tut-callout--warning {
  max-width: 42rem;
  margin: 1.25rem 0;
  padding: 0.95rem 1.1rem;
  background: #f0fdf4;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: none;
}

:is(.express-intro, .tut-read) .tut-callout--warning {
  background: #fffbeb;
}

:is(.express-intro, .tut-read) .tut-callout p {
  margin: 0;
}

/* Comparison you can actually read */
:is(.express-intro, .tut-read) .quick-ref-table-wrap {
  margin-top: 0.5rem;
  border: 1px solid #e8eef2;
  border-radius: 0.75rem;
  box-shadow: none;
  background: #fff;
}

:is(.express-intro, .tut-read) .ref-table {
  font-size: 1rem;
}

:is(.express-intro, .tut-read) .ref-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

:is(.express-intro, .tut-read) .ref-table td {
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.55;
}

:is(.express-intro, .tut-read) .ref-table td:nth-child(3),
:is(.express-intro, .tut-read) .ref-table tbody tr:hover td:nth-child(3) {
  background: #f3fbf8;
}

:is(.express-intro, .tut-read) .ref-table tbody tr:hover td {
  background: transparent;
}

/* FAQ */
:is(.express-intro, .tut-read) .tut-faq-list {
  margin-top: 0.5rem;
  border-top: 1px solid #e8eef2;
}

:is(.express-intro, .tut-read) .tut-faq-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8eef2;
  border-radius: 0;
  background: transparent;
}

:is(.express-intro, .tut-read) .tut-faq-q {
  padding: 1rem 0.1rem;
  font-size: 1.075rem;
  font-weight: 600;
  line-height: 1.45;
}

:is(.express-intro, .tut-read) .tut-faq-a {
  padding: 0 0.1rem 1rem;
  border-top: 0;
}

:is(.express-intro, .tut-read) .tut-didyouknow {
  display: block;
  max-width: 42rem;
  margin: 0 0 2.5rem;
  padding: 1.05rem 1.15rem;
  background: #f8fafc;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: none;
}

:is(.express-intro, .tut-read) .tut-didyouknow-icon {
  display: none;
}

:is(.express-intro, .tut-read) .tut-didyouknow-title {
  margin-bottom: 0.3rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

:is(.express-intro, .tut-read) .related-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.25rem;
  border-top: 1px solid #e8eef2;
}

:is(.express-intro, .tut-read) .related-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 0.95rem 0.1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e8eef2;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

:is(.express-intro, .tut-read) .related-card:hover {
  border-color: #e8eef2;
  box-shadow: none;
  transform: none;
}

:is(.express-intro, .tut-read) .related-icon {
  display: none;
}

:is(.express-intro, .tut-read) .related-card h3 {
  grid-column: 1;
  font-size: 1.075rem;
}

:is(.express-intro, .tut-read) .related-card p {
  grid-column: 1;
  color: #334155;
  font-size: 1rem;
  line-height: 1.55;
}

:is(.express-intro, .tut-read) .related-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #0f766e;
  opacity: 1;
}

:is(.express-intro, .tut-read) .tut-cta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  background: #0f172a;
  border-radius: 0.9rem;
  box-shadow: none;
}

:is(.express-intro, .tut-read) .tut-cta h3 {
  font-size: 1.25rem;
}

:is(.express-intro, .tut-read) .tut-cta p {
  font-size: 1rem;
  line-height: 1.55;
}

:is(.express-intro, .tut-read) .tut-cta-icon {
  display: none;
}

:is(.express-intro, .tut-read) .tut-cta-btn {
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  box-shadow: none;
}

:is(.express-intro, .tut-read) .tut-cta-btn:hover {
  background: #f0fdfa;
  color: #0f766e;
}

@container tut-main (max-width: 40rem) {
  :is(.express-intro, .tut-read) .xi-traits {
    grid-template-columns: 1fr;
  }

  :is(.express-intro, .tut-read) .tut-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :is(.express-intro, .tut-read) .xi-traits {
    grid-template-columns: 1fr;
  }

  :is(.express-intro, .tut-read) .tut-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
