/*
 * Modern restyle layered over codelab-elements.css.
 *
 * Load AFTER codelab-elements.css (vendored in docs/; see bigquery.html).
 * Nothing here changes markup or element behavior; it only restyles.
 *
 * Most base rules in codelab-elements.css are scoped under
 * `google-codelab:not([theme="minimal"]) google-codelab-step .instructions`,
 * so overrides here repeat that prefix to win on specificity rather than
 * reaching for !important.
 */

:root {
  --cl-font-display: 'Google Sans Text', 'Google Sans', Roboto, Arial, sans-serif;
  --cl-font-body: Roboto, Arial, sans-serif;
  --cl-font-mono: 'Roboto Mono', 'Source Code Pro', monospace;

  --cl-ink: #1f1f1f;
  --cl-ink-muted: #5f6368;
  --cl-line: #dadce0;
  --cl-line-soft: #e8eaed;
  --cl-surface: #ffffff;
  --cl-canvas: #f8f9fa;

  --cl-blue: #0b57d0;
  --cl-blue-soft: #e8f0fe;
  --cl-green: #146c2e;
  --cl-green-soft: #e6f4ea;
  --cl-amber: #a05e03;
  --cl-amber-soft: #fef7e0;

  --cl-code-bg: #f1f3f4;
  --cl-radius: 12px;
}

/* ---------------------------------------------------------------- shell -- */

body {
  font-family: var(--cl-font-body);
  color: var(--cl-ink);
  -webkit-font-smoothing: antialiased;
}

google-codelab #main {
  background: var(--cl-canvas);
}

/* Top bar: flatten the material shadow to a hairline. */
google-codelab #codelab-title {
  box-shadow: none;
  border-bottom: 1px solid var(--cl-line);
  color: var(--cl-ink);
}

google-codelab #codelab-title h1 {
  font-family: var(--cl-font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.1px;
}

/* ----------------------------------------------------------- step list -- */

google-codelab #drawer {
  width: 288px;
  background: var(--cl-canvas);
  border-right: 1px solid var(--cl-line);
}

google-codelab #drawer ol {
  padding: 16px 12px;
}

/* Bordered cards, as on current codelabs: white tile, hairline, 8px radius. */
google-codelab #drawer ol li a {
  border: 1px solid var(--cl-line);
  border-radius: 8px;
  background: var(--cl-surface);
  color: var(--cl-ink-muted);
  min-height: 44px;
  margin: 8px 0;
  padding: 8px 12px;
  font-family: var(--cl-font-body);
  transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out,
    color 120ms ease-in-out;
}

google-codelab #drawer ol li a:hover {
  border-color: #c4c7c5;
  color: var(--cl-ink);
}

google-codelab #drawer ol li a:active,
google-codelab #drawer ol li a:focus {
  background: var(--cl-surface);
  outline: 0;
}

/* Selected card: blue rule + tinted fill so it reads without a heavy shadow. */
google-codelab #drawer ol li[selected] a,
google-codelab #drawer ol li a:focus {
  box-shadow: none;
  color: var(--cl-blue);
  font-weight: 500;
}

google-codelab #drawer ol li[selected] a {
  background: var(--cl-blue-soft);
  border-color: var(--cl-blue) !important;
}

/* Step number bubbles: blue when current, green once completed. */
google-codelab #drawer ol li .step:before {
  width: 24px;
  min-width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  background: #c4c7c5;
  margin-right: 12px;
}

google-codelab #drawer ol li[completed] .step:before {
  background: var(--cl-green);
}

/* The current step carries [completed] too, so this must come last to win. */
google-codelab #drawer ol li[selected] .step:before {
  background: var(--cl-blue);
  font-weight: 500;
}

google-codelab #drawer .metadata {
  color: var(--cl-ink-muted);
  border-top: 1px solid var(--cl-line);
}

/*
 * "Report a mistake" fed the old claat/Google Doc flow. With no feedback-link
 * attribute, codelab-elements renders it as href="#" -- an inert link -- so
 * hide it rather than leave a dead control in the nav.
 */
google-codelab #drawer .metadata:has(#codelab-feedback),
google-codelab #drawer .metadata #codelab-feedback {
  display: none;
}

/*
 * The close (X) button returns to the codelab *gallery* on Google's hosted
 * site: it reads ?index= from the URL and falls back to "/". This page is
 * standalone, so it resolves to the org root -- navigating users away from
 * the activities to an unrelated page. Hidden; the menu button beside it
 * (drawer toggle on narrow screens) still works.
 */
google-codelab #codelab-title #arrow-back {
  display: none;
}

/* --------------------------------------------------------- step canvas -- */

google-codelab google-codelab-step {
  padding-top: 40px;
}

google-codelab-step {
  line-height: 1.6;
}

/* The instructions card: wider, softer, hairline instead of drop shadow. */
google-codelab:not([theme="minimal"]) google-codelab-step .instructions {
  max-width: 920px;
  font-size: 16px;
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: none;
}

google-codelab-step .instructions .inner {
  padding: 40px 48px;
}

@media (max-width: 800px) {
  google-codelab-step .instructions .inner {
    padding: 24px;
  }
}

/* ------------------------------------------------------------- headings -- */

google-codelab-step h2.step-title {
  font-family: var(--cl-font-display) !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.5px;
  margin: 0 0 32px !important;
  color: var(--cl-ink);
}

/* ------------------------------------------------------------ cost note -- */

/*
 * Sits directly under the step title as a subtitle. Three tiers: cost-none,
 * cost-low, cost-high. The emoji is decorative (aria-hidden); the tier name
 * carries the meaning for screen readers and when emoji fail to render.
 *
 * The tier name always stands alone. `.cost-detail` is an optional qualifier
 * added only where the tier alone would be misleading or invite a "why?" --
 * so a bare tier reads as complete rather than as a missing explanation.
 */
google-codelab-step .cost-note {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: -20px 0 32px !important;
  padding: 10px 14px;
  border-radius: var(--cl-radius);
  border-left: 3px solid currentColor;
  font-size: 14px;
  line-height: 1.5;
}

google-codelab-step .cost-note .cost-badge {
  font-size: 16px;
  line-height: 1;
}

google-codelab-step .cost-note .cost-label {
  font-family: var(--cl-font-display);
  font-weight: 500;
  letter-spacing: -0.1px;
}

/* The qualifier stays neutral so the tier color reads as the signal, and is
 * set off by a middot so it reads as an aside rather than a second sentence. */
google-codelab-step .cost-note .cost-detail {
  color: var(--cl-ink-muted);
}

google-codelab-step .cost-note .cost-detail::before {
  content: "·";
  margin-right: 8px;
}

google-codelab-step .cost-note.cost-none {
  color: var(--cl-ink-muted);
  background: var(--cl-code-bg);
}

/* Blue rather than green: the green `.special` asides are common in the body
 * copy, and a green cost note next to one stops reading as its own signal. */
google-codelab-step .cost-note.cost-low {
  color: var(--cl-blue);
  background: var(--cl-blue-soft);
}

google-codelab-step .cost-note.cost-high {
  color: var(--cl-amber);
  background: var(--cl-amber-soft);
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h2,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions h3,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions h4 {
  font-family: var(--cl-font-display);
  color: var(--cl-ink);
  letter-spacing: -0.2px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  margin: 40px 0 12px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 32px 0 8px;
}

/* claat wraps many headings in <strong>; drop the double-bolding. */
google-codelab:not([theme="minimal"]) google-codelab-step .instructions h2 strong,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions h3 strong {
  font-weight: inherit;
}

/* ------------------------------------------------------ text and lists -- */

google-codelab:not([theme="minimal"]) google-codelab-step .instructions {
  line-height: 1.6;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions p {
  margin: 12px 0;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions li {
  margin: 8px 0;
  padding-left: 4px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions ol,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions ul {
  padding-left: 28px;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions strong {
  font-weight: 500;
  color: var(--cl-ink);
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions a,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions a:visited {
  color: var(--cl-blue);
  text-decoration: none;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------- code -- */

google-codelab-step pre,
google-codelab-step code {
  font-family: var(--cl-font-mono);
  border-radius: 8px;
}

/* Inline code: tinted, not a grey slab. */
google-codelab-step code {
  background-color: var(--cl-code-bg);
  color: #37474f;
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

/* Blocks go light with a hairline, matching current devsite codelabs. */
google-codelab-step pre {
  background-color: var(--cl-code-bg);
  color: #37474f;
  border: 1px solid var(--cl-line-soft);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.55;
  margin: 20px 0;
}

google-codelab-step pre > code {
  background-color: transparent;
  font-size: inherit;
  padding: 0;
}

/* prettify token colors, retuned for the light background. */
google-codelab-step pre .str, google-codelab-step code .str { color: #0d652d; }
google-codelab-step pre .kwd, google-codelab-step code .kwd { color: #8430ce; }
google-codelab-step pre .com, google-codelab-step code .com { color: #5f6368; font-style: italic; }
google-codelab-step pre .typ, google-codelab-step code .typ { color: #007b83; }
google-codelab-step pre .lit, google-codelab-step code .lit { color: #b93221; }
google-codelab-step pre .pun, google-codelab-step code .pun { color: #444746; }
google-codelab-step pre .pln, google-codelab-step code .pln { color: #37474f; }
google-codelab-step pre .tag, google-codelab-step code .tag { color: #007b83; }
google-codelab-step pre .atn, google-codelab-step code .atn { color: #a05e03; }
google-codelab-step pre .atv, google-codelab-step code .atv { color: #0d652d; }
google-codelab-step pre .dec, google-codelab-step code .dec { color: #1a73e8; }
google-codelab-step code em { color: #1967d2; font-style: normal; font-weight: 500; }

/* ------------------------------------------------------------ asides -- */

/* Rounded tinted cards with a colored left rule. */
google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside {
  padding: 16px 20px;
  margin: 24px 0;
  border-left: 4px solid;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside p {
  margin: 6px 0;
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside p:first-child { margin-top: 0; }
google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside p:last-child { margin-bottom: 0; }

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.note,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.notice {
  border-color: var(--cl-amber);
  background: var(--cl-amber-soft);
  color: var(--cl-ink);
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.tip,
google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.special {
  border-color: var(--cl-green);
  background: var(--cl-green-soft);
  color: var(--cl-ink);
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions aside.warning {
  border-color: #b3261e;
  background: #fce8e6;
  color: var(--cl-ink);
}

google-codelab-step .instructions aside.callout {
  background: var(--cl-blue-soft);
  border-left: 4px solid var(--cl-blue);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.55;
}

google-codelab-step aside.callout b {
  color: var(--cl-blue);
}

/* Code inside a tinted aside needs its own contrast. */
google-codelab-step .instructions aside code {
  background: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------ tables -- */

google-codelab-step .instructions table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 15px;
}

google-codelab-step .instructions table td {
  border-bottom: 1px solid var(--cl-line-soft);
  padding: 12px 16px;
  vertical-align: top;
}

google-codelab-step .instructions table tr:first-child td {
  font-family: var(--cl-font-display);
  font-weight: 500;
  color: var(--cl-ink);
  border-bottom: 1px solid var(--cl-line);
}

/* ------------------------------------------------------------ images -- */

google-codelab-step .instructions img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--cl-line-soft);
  vertical-align: bottom;
}

/* --------------------------------------------------------- nav buttons -- */

/*
 * The base stylesheet floats #controls over the scrolling step
 * (position:absolute; bottom:32px), so content passes underneath the buttons.
 * Pin the bar to the bottom of the pane and give it an opaque background, then
 * reserve matching space below the instructions card so nothing hides behind it.
 */
google-codelab #controls {
  bottom: 0;
  padding: 16px 32px;
  background: var(--cl-canvas);
  border-top: 1px solid var(--cl-line);
}

google-codelab:not([theme="minimal"]) google-codelab-step .instructions {
  margin-bottom: 40px;
}

/* Step pane scrolls under a ~73px control bar; keep the last content clear. */
google-codelab google-codelab-step {
  padding-bottom: 88px;
}

#previous-step,
#next-step,
#done {
  font-family: var(--cl-font-display);
  font-weight: 500;
  letter-spacing: 0.1px;
  border-radius: 4px;
  padding: 8px 24px;
  box-shadow: none;
  border: 1px solid transparent;
  transition: background 150ms ease-in-out, box-shadow 150ms ease-in-out,
    transform 300ms ease-in-out;
}

#previous-step {
  background: var(--cl-surface);
  color: var(--cl-blue);
  border-color: var(--cl-line);
}

#previous-step:hover {
  background: var(--cl-blue-soft);
}

#next-step {
  background: var(--cl-blue);
  color: #fff;
}

#next-step:hover {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

#done {
  background: var(--cl-green);
  color: #fff;
}

/* ==========================================================================
 * Landing page (index.html)
 *
 * The menu page is plain HTML, not a <google-codelab>, so none of the rules
 * above apply to it: nearly all of them are scoped under `google-codelab ...`.
 * Everything here is namespaced `.din-*` so the reverse is also true and the
 * two stylesheets can't collide. Tokens are shared, which is what keeps the
 * menu and the activity pages reading as one product.
 * ========================================================================== */

body.din-home {
  margin: 0;
  background: var(--cl-canvas);
  color: var(--cl-ink);
  overflow-x: hidden;
}

/* Padding is part of every width here, so the max-width containers below stay
 * inside the viewport instead of overflowing by their padding on small screens. */
body.din-home *,
body.din-home *::before,
body.din-home *::after {
  box-sizing: border-box;
}

/* Long dataset names and URLs must wrap rather than push the layout wide. */
body.din-home p,
body.din-home li,
body.din-home .din-card {
  overflow-wrap: break-word;
}

/* ------------------------------------------------------- landing top bar -- */

/* Mirrors the codelab #codelab-title bar: same height, hairline, and type. */
.din-topbar {
  background: var(--cl-surface);
  border-bottom: 1px solid var(--cl-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.din-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.din-topbar-title {
  font-family: var(--cl-font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.din-topbar-org {
  font-size: 13px;
  color: var(--cl-ink-muted);
  margin-left: auto;
}

/* ------------------------------------------------------------- landing -- */

.din-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 24px;
}

.din-intro h1 {
  font-family: var(--cl-font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.din-intro p {
  max-width: 720px;
  margin: 12px 0;
  line-height: 1.6;
  font-size: 16px;
}

.din-lede {
  font-size: 18px !important;
  color: var(--cl-ink-muted);
}

.din-intro strong {
  font-weight: 500;
  color: var(--cl-ink);
}

.din-section {
  margin-top: 48px;
}

.din-section-title {
  font-family: var(--cl-font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cl-ink-muted);
  margin: 0 0 16px;
}

/* ---------------------------------------------------------- topic cards -- */

/*
 * auto-fit + minmax means new topics need no rule changes: the grid adds a
 * column when the viewport allows and collapses to one on narrow screens.
 */
.din-grid {
  display: grid;
  /* min() keeps the track from demanding 280px on a viewport narrower than
   * that, which would force the grid wider than the screen. */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.din-card {
  display: flex;
  flex-direction: column;
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease-in-out, box-shadow 120ms ease-in-out,
    transform 120ms ease-in-out;
}

.din-card:hover {
  border-color: var(--cl-blue);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15), 0 4px 8px 3px rgba(60, 64, 67, 0.08);
  transform: translateY(-2px);
}

.din-card:focus-visible {
  outline: 2px solid var(--cl-blue);
  outline-offset: 2px;
}

.din-card-eyebrow {
  font-family: var(--cl-font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--cl-blue);
  margin-bottom: 8px;
}

.din-card-title {
  font-family: var(--cl-font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.din-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cl-ink-muted);
}

/* margin-top:auto pins the meta row to the card bottom, so cards of differing
 * description length still line their counts up across a row. */
.din-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
}

.din-card-count {
  font-family: var(--cl-font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--cl-blue);
  background: var(--cl-blue-soft);
  border-radius: 100px;
  padding: 4px 12px;
}

/* Placeholder state for a topic whose activities aren't written yet: reads as
 * neutral information rather than as a count. */
.din-card-count-soon {
  color: var(--cl-ink-muted);
  background: var(--cl-code-bg);
}

.din-card-go {
  font-size: 18px;
  color: var(--cl-ink-muted);
  transition: transform 120ms ease-in-out, color 120ms ease-in-out;
}

.din-card:hover .din-card-go {
  color: var(--cl-blue);
  transform: translateX(3px);
}

/* -------------------------------------------------------------- panels -- */

.din-panel {
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}

.din-panel h3 {
  font-family: var(--cl-font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}

.din-panel p {
  margin: 12px 0;
  line-height: 1.6;
  font-size: 15px;
  max-width: 720px;
}

.din-panel strong {
  font-weight: 500;
  color: var(--cl-ink);
}

.din-panel a,
.din-footer a {
  color: var(--cl-blue);
  text-decoration: none;
}

.din-panel a:hover,
.din-footer a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ cost key -- */

.din-cost-key {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.din-cost-key li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Fixed width so the three chips form a column and the explanations align. */
.din-cost-chip {
  font-family: var(--cl-font-display);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
  min-width: 116px;
}

.din-cost-chip.din-cost-none {
  color: var(--cl-ink-muted);
  background: var(--cl-code-bg);
}

.din-cost-chip.din-cost-low {
  color: var(--cl-blue);
  background: var(--cl-blue-soft);
}

.din-cost-chip.din-cost-high {
  color: var(--cl-amber);
  background: var(--cl-amber-soft);
}

.din-cost-key li > span:last-child {
  color: var(--cl-ink-muted);
}

/* -------------------------------------------------- asides (landing) -- */

/* Same visual language as the codelab asides, restated here because those
 * rules are scoped under `google-codelab`. */
.din-aside {
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 4px solid;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 720px;
}

.din-aside p {
  margin: 6px 0;
}

.din-aside p:first-child { margin-top: 0; }
.din-aside p:last-child { margin-bottom: 0; }

.din-aside-special {
  border-color: var(--cl-green);
  background: var(--cl-green-soft);
}

.din-aside-warning {
  border-color: #b3261e;
  background: #fce8e6;
}

/* -------------------------------------------------------------- footer -- */

.din-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  border-top: 1px solid var(--cl-line);
  margin-top: 32px;
  font-size: 14px;
  color: var(--cl-ink-muted);
}

@media (max-width: 600px) {
  .din-topbar-inner,
  .din-main,
  .din-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .din-main {
    padding-top: 32px;
  }

  .din-intro h1 {
    font-size: 28px;
  }

  .din-topbar-org {
    display: none;
  }
}

/* ================================================== back link (codelabs) --
 *
 * #arrow-back stays hidden (see the note above it): codelab-elements resolves
 * its target from ?index= and falls back to "/", which is not reliably this
 * menu. An explicit link in each codelab's title bar is predictable instead.
 * Injected as the first child of #codelab-title on the activity pages.
 * ========================================================================== */

google-codelab #codelab-title a.din-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  padding: 6px 12px;
  border: 1px solid var(--cl-line);
  border-radius: 100px;
  background: var(--cl-surface);
  color: var(--cl-ink-muted);
  font-family: var(--cl-font-display);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  transition: border-color 120ms ease-in-out, color 120ms ease-in-out,
    background 120ms ease-in-out;
}

google-codelab #codelab-title a.din-back:hover {
  border-color: var(--cl-blue);
  background: var(--cl-blue-soft);
  color: var(--cl-blue);
}

@media (max-width: 600px) {
  google-codelab #codelab-title a.din-back .din-back-text {
    display: none;
  }

  google-codelab #codelab-title a.din-back {
    margin-right: 8px;
    padding: 6px 10px;
  }
}
