.hero { position: relative; container-type: inline-size; overflow: hidden; border-radius: var(--radius); background: #0c151e; }
.hero-art { display: block; width: 100%; }
/* Overlay the buttons beneath the headline baked into the banner image; cqi keeps them proportional to the hero width. */
.hero-actions { position: absolute; top: 53%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: stretch; gap: 1.3cqi; width: auto; padding: 0; }
.hero-actions .button { min-width: 15cqi; padding: 0.85cqi 2cqi; font-size: max(0.7rem, 1.2cqi); line-height: 1.5; border-radius: max(6px, 0.6cqi); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.hero-actions .button.secondary { background: rgba(240, 244, 248, 0.92); border-color: transparent; color: #1a2633; }
.hero-actions .button.secondary:hover { background: #fff; }
.starter { position: relative; margin-top: -16px; padding: 28px 28px 34px; background: linear-gradient(180deg, #1b2735, #131d28); border: 1px solid #2a3846; border-radius: var(--radius); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); }
.starter h2 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > a { font-size: 14px; white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 150px; padding: 22px 12px; background: linear-gradient(180deg, #2a3643, #222d39); border: 1px solid #3a4856; border-radius: 12px; color: var(--text); font-size: clamp(16px, 1.6vw, 19px); font-weight: 650; text-align: center; transition: background .2s, border-color .2s; }
.step:hover { text-decoration: none; background: linear-gradient(180deg, #32404f, #283543); border-color: #4c5d6e; }
.steps li:not(:last-child) .step:not(.is-active):hover::after { background: #2d3a49; border-color: #4c5d6e; }
/* Arrow pointer linking each step to the next one. */
.steps li:not(:last-child) .step::after { content: ""; position: absolute; top: 50%; right: -11px; z-index: 1; width: 20px; height: 20px; background: #262f3b; border-top: 1px solid #3a4856; border-right: 1px solid #3a4856; transform: translateY(-50%) rotate(45deg); border-radius: 0 3px 0 0; }
.step.is-active { background: linear-gradient(160deg, #3b8cf5, #1f5fd0); border-color: #4a95f7; box-shadow: 0 8px 22px rgba(36, 104, 216, 0.4); }
.steps li:not(:last-child) .step.is-active::after { background: #2b6ee0; border-color: #4a95f7; }
.step-icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.projects { position: relative; margin-top: 18px; color-scheme: light; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 16px 24px 20px; }
.projects .section-heading { align-items: center; margin-bottom: 12px; }
.projects h2 { font-size: clamp(20px, 2.2vw, 24px); }
.pill-link { padding: 5px 16px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 650; }
.pill-link:hover { background: #1c55b3; text-decoration: none; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.project-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44%; align-items: center; gap: 8px; min-height: 118px; padding: 10px 10px 10px 16px; background: linear-gradient(135deg, #eef4fc, #dce8f7); border: 1px solid #d3e0ef; border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.project-card:hover { box-shadow: 0 8px 20px rgba(29, 44, 59, 0.14); transform: translateY(-2px); }
.project-card:focus-within { outline: 3px solid #df9d32; outline-offset: 2px; }
.project-copy h3 { font-size: 18px; margin-bottom: 6px; }
.project-copy h3 a:focus-visible { outline: none; }
/* Stretch the title link so the whole card is clickable. */
.project-copy h3 a::after { content: ""; position: absolute; inset: 0; }
.project-copy h3 a:hover { text-decoration: none; }
.project-copy p { margin: 0; color: #506174; font-size: 13px; line-height: 1.55; }
.project-image { height: 98px; display: flex; align-items: center; justify-content: center; }
/* Some source images have opaque white backgrounds; multiply blends them into the card. */
.project-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.missing-image { flex-direction: column; gap: 2px; text-align: center; color: #6a7d90; }
.missing-image span { font-size: 44px; line-height: 1; font-weight: 200; }
.missing-image small { font-size: 11px; }
.knowledge-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 34px; padding-top: 48px; }
.sample-label { font-size: 12px; color: var(--teal); border: 1px solid #4d756e; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.article { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.article:first-of-type { padding-top: 0; }
.article img { width: 160px; height: 112px; object-fit: cover; border-radius: 10px; }
.article h3 { font-size: 19px; margin: 5px 0 8px; }
.article p { font-size: 14px; color: var(--muted); margin: 0; }
.category { font-size: 12px; color: var(--teal); }
.side-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; margin-bottom: 24px; }
.side-panel h2 { font-size: 23px; }
.guides { padding: 0; margin: 0; list-style: none; }
.guides li { border-top: 1px solid var(--line); padding: 17px 0; }
.guides li:last-child { padding-bottom: 0; }
.guides small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.community-panel { background: linear-gradient(140deg, #1a343c, #192532); }
.community-icon { color: var(--teal); font-size: 32px; margin-bottom: 12px; }
.community-panel p { color: var(--muted); font-size: 15px; }
.community-panel .actions { flex-direction: column; }
@media (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-image { height: 120px; }
}
@media (max-width: 800px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) .step::after { display: none; }
  .knowledge-layout { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero-actions { position: static; transform: none; align-items: center; gap: 12px; padding: 20px 16px; }
  .hero-actions .button { min-width: 200px; padding: 10px 22px; font-size: 15px; border-radius: 8px; }
  .starter { margin-top: 0; padding: 20px 16px; }
  .section-heading { align-items: start; }
  .steps { gap: 10px; }
  .step { min-height: 104px; padding: 14px 8px; gap: 8px; font-size: 15px; }
  .step-icon { width: 32px; height: 32px; }
  .steps li:not(:last-child) .step::after { display: none; }
  .projects { padding: 18px 16px; }
  .project-grid { grid-template-columns: 1fr; gap: 10px; }
  .project-card { min-height: 120px; }
  .project-image { height: 100px; }
  .knowledge-layout { padding-top: 32px; gap: 28px; }
  .article { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .article img { width: 96px; height: 96px; }
  .article h3 { font-size: 17px; }
  .side-panel { padding: 22px; }
}
