/* Certifications — the proof, one card each.
   The Braze card leads because it is the deepest one and the one the
   lifecycle work on this site actually rests on. */

.cf-shell { position: relative; padding: 14px 0; }

/* Each certificate is one row: the full certificate on the left, never
   cropped, and what it verifies on the right. */
.cf-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.cf-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--glass-fill-strong);
  background-image: var(--glass-sheen);
  box-shadow: var(--glass-drop), var(--glass-inner);
  transition: border-color 0.16s ease;
}
.cf-row:hover { border-color: var(--pg); }
.cf-row-shot {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  min-height: 170px;
}
.cf-row-shot img {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  display: block;
}
.cf-row-body { display: flex; flex-direction: column; gap: 6px; }
.cf-issuer {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-ink);
}
.cf-row-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.cf-note {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}
.cf-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.cf-open,
.cf-verify {
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
}
.cf-open {
  background: var(--pg-solid);
  color: var(--pg-btn-ink);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pg) 26%, transparent);
}
.cf-verify {
  color: var(--pg-ink);
  border: 1px solid var(--border-strong);
}
.cf-verify:hover { border-color: var(--pg); }
@media (max-width: 700px) {
  .cf-row { grid-template-columns: 1fr; }
}

/* ---- section strips ----------------------------------------------
   The labelled bars that give the lower half its rhythm — the same
   full-bleed row the segmentation example strip uses. */
.cf-strip {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 18px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg-alt);
}
.cf-strip-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pg-ink);
  white-space: nowrap;
}
.cf-strip-sub {
  font-size: 12px;
  color: var(--muted-soft);
  min-width: 0;
}
.cf-strip-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--pg-ink);
  text-decoration: none;
  white-space: nowrap;
}
.cf-strip-link:hover { color: var(--text); }

/* ---- skills, grouped and tied to outcomes ------------------------ */
.cf-skillgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
@media (max-width: 700px) {
  .cf-skillgrid { grid-template-columns: 1fr; }
}
.cf-skillcard {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--glass-fill-strong);
  background-image: var(--glass-sheen);
  box-shadow: var(--glass-drop), var(--glass-inner);
  padding: 15px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cf-skill-label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.cf-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
/* Raised glass: a sheen across the top, a lit edge, and the soft dual
   shadow that lifts it off the card. */
.cf-skill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.06) 100%),
    var(--surface-raised);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
     4px  4px 10px var(--neu-dark),
    -3px -3px  8px var(--neu-light);
}
.cf-skill-note {
  margin: auto 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-soft);
}
.cf-skill-note strong { color: var(--text); }

/* ---- the from-scratch repos, drawn as app windows ---------------- */
.cf-repogrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
@media (max-width: 860px) {
  .cf-repogrid { grid-template-columns: 1fr; }
}
.cf-aws { padding: 18px; }
.cf-win {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-fill-strong);
  box-shadow: var(--glass-drop), var(--glass-inner);
  display: flex;
  flex-direction: column;
}
.cf-win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-strong);
}
.cf-dots { display: inline-flex; gap: 5px; }
.cf-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.cf-dots i:nth-child(2) { background: #febc2e; }
.cf-dots i:nth-child(3) { background: #28c840; }
.cf-win-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-win-body {
  padding: 13px 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.cf-win-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.cf-win-body > p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--muted);
}
.cf-repo-meta {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted-soft);
}
.cf-lang { display: inline-flex; align-items: center; gap: 5px; }
.cf-lang i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0455e; /* Ruby, brightened for the dark surface */
}
.cf-repo-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: var(--pg-ink);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.cf-repo-link:hover { border-color: var(--pg); color: var(--text); }

/* ---- the AI case study steps ------------------------------------- */
.cf-win--wide .cf-win-body { gap: 10px; }
.cf-aws-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 13.2px;
  line-height: 1.55;
  color: var(--muted);
}
.cf-aws-steps li::marker { color: var(--pg-ink); font-weight: 700; }


/* ---- the four-section tabs ---------------------------------------- */
.cf-tab { font: inherit; text-align: center; cursor: pointer; }
.cf-tabpane[hidden] { display: none; }
/* Pinned like the journeys canvas: one height for every tab, so
   switching sections never resizes the card. The certificates tab is
   taller than the window and scrolls inside it. */
.cf-panes {
  /* The shell owns the height (14px frame in theme.css). */
  flex: 1;
  min-height: 0;
}
.cf-tabpane {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ---- tab one: platforms row under the certs ----------------------- */
.cf-platforms { padding: 0 18px 18px; }

/* ---- tab two: all six groups -------------------------------------- */
.cf-skillgrid--full { padding-bottom: 18px; }

/* ---- tabs three and four: embedded work --------------------------- */
.cf-code { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
/* The switcher chips live in the window bar now; the embed fills the
   pane and is the only thing that scrolls. */
.cf-win--embed { flex: 1; min-height: 0; }
.cf-win-bar .cf-chips { margin-left: auto; }
.cf-win-bar .cf-chip { padding: 4px 11px; font-size: 11.5px; }
.cf-win-bar .cf-strip-link { margin-left: 0; }
.cf-code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cf-chip {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.06) 100%),
    var(--surface-raised);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
     4px  4px 10px var(--neu-dark),
    -3px -3px  8px var(--neu-light);
  transition: box-shadow 0.16s ease, color 0.16s ease;
}
.cf-chip:hover { color: var(--pg-ink); }
.cf-chip.is-active {
  color: var(--pg-ink);
  background: var(--surface);
  border-color: transparent;
  box-shadow:
    inset  4px  4px  9px var(--neu-dark),
    inset -4px -4px  9px var(--neu-light);
}
.cf-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cf-code-head .cf-strip-link { margin-left: auto; }
.cf-code-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 92ch;
}
.cf-frame {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 220px;
  border: 0;
  background: #20242c;
}
.cf-frame--tall { background: #f5f2fc; }


/* The AI tab's intro list, numbered in the page accent. */
.cf-code-desc p { margin: 0; }
.cf-code-desc p + p { margin-top: 6px; }
.cf-steps {
  margin: 5px 0;
  padding-left: 22px;
  display: grid;
  /* Two columns: the list reads the same and costs half the height. */
  grid-template-columns: 1fr 1fr;
  gap: 3px 30px;
}
.cf-steps li { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cf-steps li::marker { color: var(--pg-ink); font-weight: 700; }

/* Side-by-side chess embed layout lives in the embed page itself. */
