/* Batch 14. Only the two selected Guides and the two Procreate Starter
   lessons load this file. Keep the desktop and print layouts unchanged. */
@media screen and (max-width: 600px) {
  .page-guides .pg-ed-story .pg-ed-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .page-guides .pg-ed-story [aria-labelledby="portrait-contents"] nav ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .page-guides .pg-ed-story [aria-labelledby="portrait-contents"] nav li {
    margin: 0;
  }

  .page-guides .pg-ed-story [aria-labelledby="portrait-contents"] nav a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--pg-rule);
    border-radius: 4px;
    background: #fffaf0;
    line-height: 1.4;
  }

  .page-guides .pg-ed-story :is(#sketch, #line-art, #colour, #try-it) {
    scroll-margin-block-start: 5rem;
  }

  .p30-free .p30-free-header {
    padding-block: 30px;
  }

  .p30-free .p30-free-header h1 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .p30-free .p30-free-header .p30-back {
    align-items: center;
    min-height: 44px;
    margin-top: 6px;
  }

  .p30-free #main.p30-section {
    padding-block-start: 22px;
  }

  /* The hidden attribute keeps this extra navigation off desktop and print. */
  .p30-free [data-procreate-phone-steps][hidden] {
    display: block;
    margin-block: 0 18px;
  }

  .p30-free [data-procreate-phone-steps] ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .p30-free [data-procreate-phone-steps] a {
    display: flex;
    align-items: center;
    min-height: 44px;
    height: 100%;
    padding: 8px 10px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    background: #fff;
    color: var(--p30-navy);
    font-weight: 650;
    line-height: 1.4;
  }

  .p30-free [data-procreate-phone-steps] a:focus-visible {
    outline: 2px solid var(--p30-navy);
    outline-offset: 2px;
  }

  .p30-free .p30-question {
    padding: 15px;
  }

  .p30-free .p30-question h2[id^="p30-q-"] {
    scroll-margin-block-start: 1rem;
  }

  .p30-free .p30-question details {
    padding: 0 12px;
  }

  .p30-free .p30-question details > summary {
    min-height: 44px;
    padding-block: 11px;
    line-height: 22px;
  }

  .p30-free .p30-question details[open] {
    padding-block-end: 12px;
  }

  .p30-free .p30-question details p {
    margin: 0;
  }
}
