/* =====================================================================
   GDE Workshop 2026 — Shared Design System
   ---------------------------------------------------------------------
   Single source of truth for all /guide/ pages.
   Link with: <link rel="stylesheet" href="shared.css">
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------------------- */
:root {
  /* Google brand colors */
  --google-blue:   #4285F4;
  --google-red:    #EA4335;
  --google-yellow: #FBBC04;
  --google-green:  #34A853;

  /* Neutrals */
  --grey-900:      #202124;
  --grey-700:      #5F6368;
  --grey-500:      #9AA0A6;
  --grey-200:      #E8EAED;
  --grey-100:      #F1F3F4;
  --surface:       #FFFFFF;
  --surface-alt:   #F8F9FA;

  /* Semantic shades for callouts */
  --blue-bg:       #E8F0FE;
  --blue-text:     #1967D2;
  --yellow-bg:     #FEF7E0;
  --yellow-text:   #B06000;
  --green-bg:      #E6F4EA;
  --green-text:    #1E8E3E;
  --red-bg:        #FCE8E6;
  --red-text:      #C5221F;

  /* Radii + elevation */
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --shadow-card:   0 1px 2px rgba(60,64,67,.08), 0 1px 3px rgba(60,64,67,.10);
  --shadow-lift:   0 4px 8px rgba(60,64,67,.10), 0 8px 24px rgba(60,64,67,.15);

  /* Layout */
  --sidebar-w:     320px;
  --content-max:   800px;
  --main-max:      1240px;
}


/* ---------------------------------------------------------------------
   2. Reset + Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  font-family: 'Google Sans Text', 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--surface);
  color: var(--grey-900);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ---------------------------------------------------------------------
   2b. Scroll-progress bar — Google 4-color stripe at the top of every page,
       fills left → right as the reader scrolls. Injected by shared.js.
   --------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--google-blue)   0%,
    var(--google-blue)   25%,
    var(--google-red)    25%,
    var(--google-red)    50%,
    var(--google-yellow) 50%,
    var(--google-yellow) 75%,
    var(--google-green)  75%,
    var(--google-green)  100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-progress > span {
    transition: transform 60ms linear;
  }
}


/* ---------------------------------------------------------------------
   3. Layout shell — sidebar + main
   --------------------------------------------------------------------- */
.layout {
  display: block;
  min-height: 100vh;
}

/* Top bar (mobile only) holds the hamburger toggle */
.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--surface);
  border-bottom: 1px solid var(--grey-200);
  padding: 0.6rem 1rem;
  align-items: center;
  gap: 0.75rem;
}
.topbar .topbar-title {
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grey-900);
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  color: var(--grey-700);
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-toggle:hover { background: var(--grey-100); color: var(--grey-900); }
.sidebar-toggle svg { width: 22px; height: 22px; }


/* ---------------------------------------------------------------------
   4. Sidebar
   --------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface-alt);
  border-right: 1px solid var(--grey-200);
  overflow-y: auto;
  padding: 1.75rem 1rem 2rem;
  z-index: 100;
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-500) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 3px; }

.sidebar-header {
  padding: 0 0.5rem 1rem;
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 1rem;
}
.sidebar-header .eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-700);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.sidebar-header h2 {
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--grey-900);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 1.1rem; }
.sidebar-section h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-700);
  font-weight: 500;
  margin-bottom: 0.35rem;
  padding: 0 0.6rem;
}
.sidebar-section ul { list-style: none; }
.sidebar-section a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  color: var(--grey-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-section a:hover {
  background: var(--grey-100);
  color: var(--grey-900);
}
.sidebar-section a .num {
  flex-shrink: 0;
  min-width: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--grey-500);
  font-weight: 500;
  font-size: 0.8rem;
}

/* Active link state — driven by body[data-page="..."] */
body[data-page="index"]       .sidebar a[data-key="index"],
body[data-page="01-cloud"]    .sidebar a[data-key="01-cloud"],
body[data-page="02-research"] .sidebar a[data-key="02-research"],
body[data-page="03-spec"]     .sidebar a[data-key="03-spec"],
body[data-page="04-design"]   .sidebar a[data-key="04-design"],
body[data-page="05-build"]    .sidebar a[data-key="05-build"],
body[data-page="06-deploy"]   .sidebar a[data-key="06-deploy"],
body[data-page="07-wrapup"]   .sidebar a[data-key="07-wrapup"],
body[data-page="08-mcp"]      .sidebar a[data-key="08-mcp"],
body[data-page="09-chatbot"]  .sidebar a[data-key="09-chatbot"],
body[data-page="glossary"]    .sidebar a[data-key="glossary"],
body[data-page="trainer"]     .sidebar a[data-key="trainer"],
body[data-page="resources"]   .sidebar a[data-key="resources"] {
  background: var(--blue-bg);
  color: var(--blue-text);
  font-weight: 500;
}
body[data-page="index"]       .sidebar a[data-key="index"] .num,
body[data-page="01-cloud"]    .sidebar a[data-key="01-cloud"] .num,
body[data-page="02-research"] .sidebar a[data-key="02-research"] .num,
body[data-page="03-spec"]     .sidebar a[data-key="03-spec"] .num,
body[data-page="04-design"]   .sidebar a[data-key="04-design"] .num,
body[data-page="05-build"]    .sidebar a[data-key="05-build"] .num,
body[data-page="06-deploy"]   .sidebar a[data-key="06-deploy"] .num,
body[data-page="07-wrapup"]   .sidebar a[data-key="07-wrapup"] .num,
body[data-page="08-mcp"]      .sidebar a[data-key="08-mcp"] .num,
body[data-page="09-chatbot"]  .sidebar a[data-key="09-chatbot"] .num {
  color: var(--blue-text);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
  z-index: 90;
}
.sidebar-overlay.visible { display: block; }


/* ---------------------------------------------------------------------
   5. Main content
   --------------------------------------------------------------------- */
.main {
  margin-left: var(--sidebar-w);
  max-width: var(--main-max);
  padding: 2.5rem 2.5rem 5rem;
}
.content {
  max-width: var(--content-max);
}
.content.wide {
  max-width: none;
}

@media (min-width: 1080px) {
  .main { padding-left: 3rem; padding-right: 3rem; }
}
@media (max-width: 1079px) {
  .topbar { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 1.5rem 1.25rem 4rem; }
}
@media (max-width: 480px) {
  .main { padding: 1.25rem 1rem 3rem; }
}


/* ---------------------------------------------------------------------
   6. Typography
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', -apple-system, sans-serif;
  color: var(--grey-900);
  line-height: 1.2;
  font-weight: 500;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}
h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 1.25rem 0 0.4rem;
  color: var(--grey-700);
}

p { margin-bottom: 1rem; }
strong { font-weight: 500; color: var(--grey-900); }
ul, ol { margin: 0.5rem 0 1.25rem 1.4rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--google-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Glossary cross-reference — subtle dotted underline so it reads as
   "definable term" without competing with normal links. */
a.glossary-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--grey-500);
  cursor: help;
}
a.glossary-link:hover {
  color: var(--google-blue);
  border-bottom-color: var(--google-blue);
  text-decoration: none;
}

hr {
  border: none;
  border-top: 1px solid var(--grey-200);
  margin: 2.5rem 0;
}


/* ---------------------------------------------------------------------
   7. Hero (landing + reusable)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  margin-bottom: 1rem;
}
.hero .eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-700);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--grey-700);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}


/* ---------------------------------------------------------------------
   8. Eyebrow + step badge + duration pill
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-700);
  font-weight: 500;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--google-blue);
  color: #fff;
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  background: var(--grey-100);
  color: var(--grey-700);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}


/* Step page header — badge + duration pill on one row, title below */
.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0.85rem;
}
.step-header + h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}
.step-meta { display: none; }
.step-lede {
  font-size: 1.1rem;
  color: var(--grey-700);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}


/* ---------------------------------------------------------------------
   9. Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--google-blue);
  color: #fff;
}
.btn--primary:hover {
  background: #3367D6;
  box-shadow: var(--shadow-card);
}
.btn--ghost {
  background: transparent;
  color: var(--google-blue);
  border-color: var(--grey-200);
}
.btn--ghost:hover {
  background: var(--grey-100);
  border-color: var(--grey-500);
}


/* ---------------------------------------------------------------------
   10. Callouts
   --------------------------------------------------------------------- */
.callout {
  border-left: 4px solid var(--grey-500);
  background: var(--surface-alt);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}
.callout > strong:first-child,
.callout > .callout-title {
  display: block;
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--grey-900);
}
.callout p:last-child { margin-bottom: 0; }

.callout--info {
  border-left-color: var(--google-blue);
  background: var(--blue-bg);
}
.callout--info > strong:first-child,
.callout--info > .callout-title { color: var(--blue-text); }

.callout--warning {
  border-left-color: var(--google-yellow);
  background: var(--yellow-bg);
}
.callout--warning > strong:first-child,
.callout--warning > .callout-title { color: var(--yellow-text); }

.callout--tip {
  border-left-color: var(--google-green);
  background: var(--green-bg);
}
.callout--tip > strong:first-child,
.callout--tip > .callout-title { color: var(--green-text); }

.callout--key {
  border-left: 4px solid var(--google-blue);
  background: var(--grey-100);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.callout--key > strong:first-child,
.callout--key > .callout-title {
  font-size: 1.1rem;
  color: var(--grey-900);
  margin-bottom: 0.6rem;
}


/* Pulse check — retrieval-practice beat, one per chapter (Adesope 2017,
   g=0.61). Question first, answer hidden behind <details>. */
.callout--pulse {
  border-left-color: var(--google-yellow);
  background: var(--yellow-bg);
}
.callout--pulse > strong:first-child,
.callout--pulse > .callout-title {
  color: var(--yellow-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.callout--pulse details {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(176, 96, 0, 0.18);
  padding-top: 0.6rem;
}
.callout--pulse summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--blue-text);
  list-style: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.callout--pulse summary::-webkit-details-marker { display: none; }
.callout--pulse summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.15s ease;
}
.callout--pulse details[open] summary::before { transform: rotate(90deg); }
.callout--pulse details > :not(summary) { margin-top: 0.55rem; }
.callout--pulse details p:last-child { margin-bottom: 0; }


/* Pulse quiz — multi-question retrieval set (mirror open + close).
   Used at the start of step 1 and the end of step 7. */
.pulse-quiz {
  display: grid;
  gap: 0.85rem;
  margin: 0.5rem 0 0.25rem;
}
.pulse-quiz .pq-item {
  background: var(--surface);
  border: 1px solid rgba(176, 96, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.pulse-quiz .pq-item > p:first-child {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--grey-900);
}
.pulse-quiz .pq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--blue-text);
  list-style: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pulse-quiz .pq-item summary::-webkit-details-marker { display: none; }
.pulse-quiz .pq-item summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 0.15s ease;
}
.pulse-quiz .pq-item details[open] summary::before { transform: rotate(90deg); }
.pulse-quiz .pq-item details > :not(summary) { margin-top: 0.5rem; }
.pulse-quiz .pq-item details p:last-child { margin-bottom: 0; }


/* Sub-block marker for a long step page broken into A/B/C parts.
   Used by the setup chapter. */
.subblock {
  margin: 2.75rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--blue-bg);
  border-left: 4px solid var(--google-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.subblock .subblock-tag {
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--blue-text);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.subblock h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--grey-900);
}
.subblock-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.75rem;
  font-size: 0.85rem;
}
.subblock-strip a,
.subblock-strip span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--grey-100);
  color: var(--grey-700);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
}
.subblock-strip a:hover {
  background: var(--blue-bg);
  color: var(--blue-text);
  text-decoration: none;
}
.subblock-strip span[aria-current="step"] {
  background: var(--blue-bg);
  color: var(--blue-text);
  border-color: var(--google-blue);
}


/* ---------------------------------------------------------------------
   11. Code
   --------------------------------------------------------------------- */
code, kbd, samp, pre {
  font-family: 'Google Sans Code', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
:not(pre) > code {
  background: var(--grey-100);
  color: var(--grey-900);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--grey-200);
}
.code-block, pre {
  background: var(--grey-900);
  color: #E8EAED;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 1.25rem 0;
  position: relative;
}
.code-block code, pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Copy button — injected by shared.js on every <pre class="code-block">. */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.code-block:hover .copy-btn,
.code-block:focus-within .copy-btn,
.copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.copy-btn--copied,
.copy-btn--copied:hover {
  background: var(--green-bg);
  color: var(--green-text);
  border-color: var(--green-text);
  opacity: 1;
}
@media (hover: none) {
  /* Touch devices: keep the button visible since there's no hover */
  .copy-btn { opacity: 0.85; }
}


/* ---------------------------------------------------------------------
   12. Tables
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th {
  background: var(--surface-alt);
  color: var(--grey-900);
  text-align: left;
  padding: 0.7rem 0.9rem;
  font-weight: 500;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--grey-200);
}
td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--grey-200);
  vertical-align: top;
  color: var(--grey-900);
}
tr:last-child td { border-bottom: none; }


/* ---------------------------------------------------------------------
   13. Step grid + step card
   --------------------------------------------------------------------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.step-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem 1.4rem;
  text-decoration: none;
  color: var(--grey-900);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--grey-200);
  text-decoration: none;
}
.step-card .step-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-text);
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
/* Color-coded variants for non-action blocks */
.step-card .step-num--green,  .agenda .step-num--green  { background: var(--green-bg);  color: var(--green-text); }
.step-card .step-num--red,    .agenda .step-num--red    { background: var(--red-bg);    color: var(--red-text); }
.step-card .step-num--yellow, .agenda .step-num--yellow { background: var(--yellow-bg); color: var(--yellow-text); }

/* Agenda table — replaces the workshop step grid on the home page */
.agenda {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 2rem;
}
.agenda tr { border-bottom: 1px solid var(--grey-200); }
.agenda tr:last-child { border-bottom: none; }
.agenda tr[data-href] {
  cursor: pointer;
  transition: background 0.15s ease;
}
.agenda tr[data-href]:hover { background: var(--surface-alt); }
.agenda tr[data-href]:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: -2px;
}
.agenda td {
  padding: 1rem 0.85rem;
  vertical-align: top;
}
.agenda td:first-child { padding-left: 0.85rem; }
.agenda td:last-child  { padding-right: 0.85rem; }
.agenda-time {
  width: 6rem;
  white-space: nowrap;
}
.agenda-time .duration-pill {
  display: inline-block;
  background: var(--grey-100);
  color: var(--grey-900);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.agenda-badge { width: 52px; }
.agenda-badge .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue-text);
  font-family: 'Google Sans Display', 'Google Sans', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
/* Color modifiers — must come after the default to win the cascade */
.agenda-badge .step-num--green  { background: var(--green-bg);  color: var(--green-text); }
.agenda-badge .step-num--red    { background: var(--red-bg);    color: var(--red-text); }
.agenda-badge .step-num--yellow { background: var(--yellow-bg); color: var(--yellow-text); }
.agenda-cell h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.3rem;
}
.agenda-cell h3 a {
  color: var(--grey-900);
  text-decoration: none;
}
.agenda-cell h3 a:hover { color: var(--google-blue); }
.agenda-cell h3 a::after {
  content: ' →';
  color: var(--google-blue);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.agenda-cell h3 a:hover::after,
.agenda tr[data-href]:hover .agenda-cell h3 a::after,
.agenda tr[data-href]:focus-visible .agenda-cell h3 a::after {
  opacity: 1;
  transform: translateX(2px);
}
.agenda-cell p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.5;
}
@media (max-width: 720px) {
  .agenda tr {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.4rem 0.85rem;
    padding: 1rem 0;
  }
  .agenda td { padding: 0; display: block; }
  .agenda-badge { grid-column: 1; grid-row: 1; }
  .agenda-time  { grid-column: 1; grid-row: 2; }
  .agenda-cell  { grid-column: 2; grid-row: 1 / span 2; }
}

/* Passive tile — no link, no hover lift, muted CTA */
.step-card--passive {
  cursor: default;
  background: var(--surface-alt);
}
.step-card--passive:hover { transform: none; box-shadow: var(--shadow-card); }
.step-card--passive .step-card-foot { display: none; }
.step-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--grey-700);
  margin: 0;
  line-height: 1.55;
}
.step-card .step-card-foot {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--google-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.step-card .step-card-foot::after {
  content: '→';
  transition: transform 0.18s ease;
}
.step-card:hover .step-card-foot::after { transform: translateX(4px); }

/* Featured "start here" tile — bigger than a regular step card */
.featured-tile {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1A73E8 0%, #4285F4 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 2rem 1.75rem;
  text-decoration: none;
  margin: 1.5rem 0 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.featured-tile .ft-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.featured-tile h2 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.featured-tile p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 560px;
}
.featured-tile .ft-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.featured-tile .duration-pill {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.featured-tile .ft-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
}
.featured-tile .ft-cta::after {
  content: '→';
  transition: transform 0.18s ease;
}
.featured-tile:hover .ft-cta::after { transform: translateX(4px); }


/* ---------------------------------------------------------------------
   14. Reference grid
   --------------------------------------------------------------------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}
.ref-card {
  display: block;
  background: var(--surface-alt);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--grey-900);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ref-card:hover {
  background: var(--grey-100);
  border-color: var(--grey-500);
  text-decoration: none;
}
.ref-card h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  font-weight: 500;
}
.ref-card p {
  font-size: 0.875rem;
  color: var(--grey-700);
  margin: 0;
  line-height: 1.5;
}


/* ---------------------------------------------------------------------
   15. Prev / Next footer nav
   --------------------------------------------------------------------- */
.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0 0;
  border-top: 1px solid var(--grey-200);
  padding-top: 1.5rem;
}
.prev-next a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem;
  background: var(--surface-alt);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--grey-900);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.prev-next a:hover {
  background: var(--grey-100);
  border-color: var(--grey-500);
  text-decoration: none;
}
.prev-next .pn-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-700);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.prev-next .pn-title {
  font-weight: 500;
  font-size: 0.95rem;
}
.prev-next .pn-next { text-align: right; }
@media (max-width: 600px) {
  .prev-next { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------------
   16. Footer
   --------------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-200);
  font-size: 0.875rem;
  color: var(--grey-700);
}
.site-footer p { margin-bottom: 0.4rem; }
.site-footer a { color: var(--grey-700); text-decoration: underline; }
.site-footer a:hover { color: var(--google-blue); }


/* ---------------------------------------------------------------------
   16a. Troubleshooting items — collapsible <details> blocks shared by
        the troubleshooting page and any inline "If something's still off"
        sections on step pages.
   --------------------------------------------------------------------- */
.ts-group { margin-top: 2rem; }
.ts-item {
  background: var(--surface-alt);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin: 0.6rem 0;
}
.ts-item[open] { background: var(--surface); box-shadow: var(--shadow-card); }
.ts-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--grey-900);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ts-item summary::-webkit-details-marker { display: none; }
.ts-item summary::before {
  content: '+';
  display: inline-block;
  width: 1.1rem;
  color: var(--google-blue);
  font-weight: 700;
}
.ts-item[open] summary::before { content: '\2212'; }
.ts-body { padding-top: 0.6rem; color: var(--grey-900); }
.ts-body p { margin: 0.3rem 0; }
.ts-body p strong { color: var(--grey-700); font-weight: 500; }
.ts-body pre { margin: 0.5rem 0; }


/* ---------------------------------------------------------------------
   16a-2. Resource / index lists — used on the resources page and the
          troubleshooting index page.
   --------------------------------------------------------------------- */
.res-list { list-style: none; margin: 0.75rem 0 1.75rem; padding: 0; }
.res-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--grey-200);
}
.res-list li:last-child { border-bottom: none; }
.res-list a {
  font-weight: 500;
  color: var(--google-blue);
}
.res-list .res-note {
  display: block;
  color: var(--grey-700);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.res-placeholder {
  color: var(--grey-700);
  font-style: italic;
}


/* ---------------------------------------------------------------------
   16b. Visuals — collapsible screenshot walkthrough block
   --------------------------------------------------------------------- */
.visuals {
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  overflow: hidden;
}
.visuals > summary {
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  font-weight: 500;
  color: var(--grey-900);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.visuals > summary::-webkit-details-marker { display: none; }
.visuals > summary::before {
  content: '+';
  display: inline-block;
  width: 1.1rem;
  color: var(--google-blue);
  font-weight: 700;
}
.visuals[open] > summary::before { content: '\2212'; }
.visuals[open] > summary { border-bottom: 1px solid var(--grey-200); }
.visuals-grid {
  padding: 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--surface);
}
.visuals figure { margin: 0; }
.visuals figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.visuals figcaption {
  font-size: 0.85rem;
  color: var(--grey-700);
  margin-top: 0.4rem;
  line-height: 1.4;
}
.visuals-attribution {
  font-size: 0.8rem;
  color: var(--grey-500);
  padding: 0 1rem 1rem;
  background: var(--surface);
}


/* ---------------------------------------------------------------------
   17. OS / variant tabs
   --------------------------------------------------------------------- */
.tabs {
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--grey-200);
  background: var(--surface-alt);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 500;
  color: var(--grey-700);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tab-btn:hover {
  color: var(--grey-900);
  background: rgba(66, 133, 244, 0.04);
}
.tab-btn[aria-selected="true"] {
  color: var(--google-blue);
  border-bottom-color: var(--google-blue);
  background: var(--surface);
}
.tab-btn:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: -2px;
}
.tab-panel {
  padding: 1.5rem;
}
.tab-panel[hidden] {
  display: none;
}
.tab-panel > :first-child { margin-top: 0; }
.tab-panel > :last-child { margin-bottom: 0; }


/* ---------------------------------------------------------------------
   18. Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
