/* =====================================================================
   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;

  /* 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:     280px;
  --content-max:   800px;
  --main-max:      1200px;
}


/* ---------------------------------------------------------------------
   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;
}


/* ---------------------------------------------------------------------
   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-design"]  .sidebar a[data-key="02-design"],
body[data-page="03-build"]   .sidebar a[data-key="03-build"],
body[data-page="04-deploy"]  .sidebar a[data-key="04-deploy"],
body[data-page="05-wrapup"]  .sidebar a[data-key="05-wrapup"],
body[data-page="06-mcp"]     .sidebar a[data-key="06-mcp"],
body[data-page="07-chatbot"] .sidebar a[data-key="07-chatbot"],
body[data-page="glossary"]   .sidebar a[data-key="glossary"],
body[data-page="trouble"]    .sidebar a[data-key="trouble"],
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-design"]  .sidebar a[data-key="02-design"] .num,
body[data-page="03-build"]   .sidebar a[data-key="03-build"] .num,
body[data-page="04-deploy"]  .sidebar a[data-key="04-deploy"] .num,
body[data-page="05-wrapup"]  .sidebar a[data-key="05-wrapup"] .num,
body[data-page="06-mcp"]     .sidebar a[data-key="06-mcp"] .num,
body[data-page="07-chatbot"] .sidebar a[data-key="07-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; }

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--bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    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%);
  border-radius: 3px;
}
.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 + title row, duration pill below */
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 0.5rem;
}
.step-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
.step-meta {
  margin: 0 0 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.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;
}


/* ---------------------------------------------------------------------
   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;
}
.code-block code, pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}


/* ---------------------------------------------------------------------
   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;
}
.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); }


/* ---------------------------------------------------------------------
   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;
  }
}
