/* HTML-first shell styles for TypeLab prerendered pages.
   Kept as an external stylesheet to reduce per-page HTML weight (improves text-to-HTML ratio)
   while still rendering crawlable content nicely before hydration. */

.typelab-html-first {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  color: #0f172a;
}

.typelab-html-first__hero,
.typelab-html-first__section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.typelab-html-first__section + .typelab-html-first__section {
  margin-top: 24px;
}

.typelab-html-first__hero {
  margin-bottom: 24px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.typelab-html-first__breadcrumb {
  margin: 0 0 18px 0;
  color: #64748b;
  font-size: 0.9rem;
}

.typelab-html-first__breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.typelab-html-first__breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.typelab-html-first__breadcrumb a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.typelab-html-first__breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

.typelab-html-first__breadcrumb-sep {
  color: #94a3b8;
}

.typelab-html-first__eyebrow {
  margin: 0 0 12px 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f766e;
}

.typelab-html-first__title {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.typelab-html-first__lead,
.typelab-html-first__supporting,
.typelab-html-first__faq-card p,
.typelab-html-first__canonical,
.typelab-html-first__article p,
.typelab-html-first__article li {
  margin: 18px 0 0 0;
  line-height: 1.75;
  color: #334155;
  font-size: 1.05rem;
}

.typelab-html-first__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.typelab-html-first__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #115e59;
  font-size: 0.92rem;
  font-weight: 600;
}

.typelab-html-first__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.typelab-html-first__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  background: #fff;
}

.typelab-html-first__button--primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.typelab-html-first__list {
  margin: 18px 0 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 10px;
  line-height: 1.7;
  color: #334155;
}

.typelab-html-first__card-grid,
.typelab-html-first__faq-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.typelab-html-first__badge-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.typelab-html-first__badge-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
}

.typelab-html-first__badge-grid img {
  display: block;
  max-width: 100%;
  height: auto;
}

.typelab-html-first__badge-text {
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.typelab-html-first__badge-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #475569;
  text-align: center;
}

.typelab-html-first__faq-group + .typelab-html-first__faq-group {
  margin-top: 28px;
}

.typelab-html-first__faq-group > h3 {
  margin: 0;
  color: #0f172a;
}

.typelab-html-first__faq-group > p {
  margin: 10px 0 0 0;
  color: #475569;
  line-height: 1.65;
}

.typelab-html-first__card,
.typelab-html-first__faq-card {
  display: block;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  text-decoration: none;
  color: inherit;
}

.typelab-html-first__card strong,
.typelab-html-first__faq-card h3,
.typelab-html-first__faq-card h4 {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

.typelab-html-first__faq-card p {
  margin: 12px 0 0 0;
}

.typelab-html-first__faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.typelab-html-first__faq-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.typelab-html-first__faq-link:hover {
  background: #eff6ff;
}

.typelab-html-first__article > *:first-child {
  margin-top: 0;
}

.typelab-html-first__article h2,
.typelab-html-first__article h3 {
  margin-top: 1.9rem;
  color: #0f172a;
  line-height: 1.2;
}

.typelab-html-first__article a {
  color: #0f766e;
  font-weight: 600;
}

.typelab-html-first__article ul,
.typelab-html-first__article ol {
  padding-left: 1.25rem;
}

.typelab-html-first__article blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(15, 118, 110, 0.35);
  color: #475569;
}

.typelab-html-first__article img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.typelab-html-first__skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  background: #0f766e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  z-index: 10;
}

.typelab-html-first__skip-link:focus {
  left: 16px;
}

.typelab-html-first__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.typelab-html-first__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.typelab-html-first__brand a {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
}

.typelab-html-first__brand-tagline {
  color: #64748b;
  font-size: 0.95rem;
}

.typelab-html-first__nav {
  max-width: 720px;
}

.typelab-html-first__nav-label {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  color: #64748b;
}

.typelab-html-first__nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.typelab-html-first__nav-links a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
}

.typelab-html-first__footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 32px 20px 40px;
  margin-top: 40px;
}

.typelab-html-first__footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.typelab-html-first__footer h2 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #f8fafc;
}

.typelab-html-first__footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.typelab-html-first__footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.typelab-html-first__address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 10px;
}

.typelab-html-first__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.typelab-html-first__share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.typelab-html-first__share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.typelab-html-first__section--disclaimer {
  border-left: 4px solid #f97316;
  background: rgba(249, 115, 22, 0.08);
}

@media (max-width: 640px) {
  .typelab-html-first {
    padding: 28px 14px 56px;
  }

  .typelab-html-first__hero,
  .typelab-html-first__section {
    padding: 20px;
    border-radius: 22px;
  }
}

