/* Testing your app: setup pages ==========================================
   Added Oct 2026 for Test in Web (Connect > Test in Web). Linked at
   the top of each page that uses it:
     /explore/ai2/test-in-web        the how-to page (support/test-in-web.html)
     /explore/ai2/setup              Setting Up App Inventor
     /explore/ai2/setup-device-wifi  Connect your phone over Wi-Fi
     /explore/ai2/setup-emulator     the older, installed emulator

   Building blocks (class names):
     .ai2-callout     boxed note in App Inventor lime, e.g. "No phone or
                      tablet? You don't need one."
     .howto           the how-to page column
     .howto-lede      the first, larger paragraph
     .howto-steps     numbered steps: an <ol> whose items each start with
                      an h2 (CSS draws the number in front of the h2)
     .howto-figure    a screenshot with a thin border; --narrow for a tall one,
                      --plain for a drawing (no border or shadow)
     .howto-tip       a short, smaller line under a step
     .howto-badges    the App Store and Google Play buttons, in a row
     .howto-details   a tip that opens a picture below it: a <details> whose
                      <summary> holds the tip, with the words to click in
                      .howto-details__link
     .howto-more      the headings after the steps ("What's next")
   Colours are the site's brand colours (see css/ai2-tokens.css), written
   out here because these pages do not load the tokens file.
   ======================================================================== */

.ai2-callout {
  max-width: 820px;
  margin: 0 auto 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid #a5cf47;
  border-radius: 12px;
  background: #f4f9e9;
  color: #12181f;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-align: left;
}
.ai2-callout p { margin: 0 0 0.5rem; }
.ai2-callout p:last-child { margin-bottom: 0; }
.ai2-callout a { color: #0e7590; font-weight: 600; }
.ai2-callout a:hover { color: #92267c; }

/* The how-to page. */
.howto {
  max-width: 820px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
  color: #33404d;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.howto p { margin: 0 0 0.9rem; }
.howto a { color: #0e7590; }
.howto a:hover { color: #92267c; }
.howto-lede {
  color: #12181f;
  font-size: 1.2rem;
}
.howto .howto-steps {
  counter-reset: howto;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
/* .howto in front: mit_app_inventor.css gives every "ol li" a margin. */
.howto .howto-steps > li {
  counter-increment: howto;
  position: relative;
  margin: 0 0 2.25rem;
  padding-left: 3.25rem;
}
.howto .howto-steps > li > h2::before {
  content: counter(howto);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #92267c;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 2.25rem;
  text-align: center;
}
.howto .howto-steps h2 {
  margin: 0.15rem 0 0.6rem;
  color: #12181f;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}
.howto-figure { margin: 0 0 0.9rem; }
.howto-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #dfe3e7;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(18, 24, 31, 0.08);
}
.howto-figure--narrow img { width: 520px; }
.howto-figure--plain img {
  width: 640px;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.howto-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.howto-badges img {
  display: block;
  width: auto;
  height: 48px;
}
.howto-details { margin: 0 0 0.9rem; }
.howto-details > summary {
  display: block;
  cursor: pointer;
  list-style: none;
}
.howto-details > summary::-webkit-details-marker { display: none; }
.howto-details__link {
  color: #0e7590;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.howto-details > summary:hover .howto-details__link { color: #92267c; }
.howto-details[open] > summary { margin-bottom: 0.75rem; }
.howto-figure figcaption {
  margin-top: 0.6rem;
  color: #33404d;
  font-size: 0.98rem;
}
.howto-tip {
  color: #5b6670;
  font-size: 0.98rem;
}
.howto h2.howto-more {
  margin: 2.5rem 0 1rem;
  padding-top: 0.75rem;
  border-top: 3px solid #f88d34;
  color: #92267c;
  font-size: 1.5rem;
  font-weight: 600;
}
.howto ul { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.howto ul li { margin-bottom: 0.4rem; }

/* Phones: the step number sits in line with the step title instead of in
   its own column, so the screenshots get the full width. */
@media (max-width: 575.98px) {
  .howto .howto-steps > li { padding-left: 0; }
  .howto .howto-steps > li > h2::before {
    position: static;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    margin-right: 0.6rem;
    font-size: 1rem;
    line-height: 2rem;
    vertical-align: 0.1em;
  }
  .howto .howto-steps h2 { font-size: 1.2rem; }
}
