/* Every page on phones (below 768px) only: readable text, service card grid, comfortable form fields, no sideways
   scroll, no empty gaps. Added 5 Dec 2026 (Han). Desktop is untouched: everything is inside the media query.
   The homepage's own phone layout (slider off, intro) is in home-mobile.css.
   NOTE: the theme's Bootstrap 3 sets html { font-size: 10px }, so 1rem = 10px here. */
@media (max-width: 767px) {
  body {
    --ink: #2b2118;
    --ink-soft: #5b4d40;
    --brown: #80521e;
    --paper: #f6f6f6;
    --cyan: #00aeef;
    --magenta: #ec008c;
    --yellow: #ffd200;
    --target-size: 44px;
  }

  /* Reading text: 16px, dark, left-aligned (was 9-14px in the thin weight, some of it white or justified). */
  .main p,
  .main li,
  .main .about h2,
  .main .about h3,
  .main .about h4,
  .main .about h5 {
    font-family: 'Roboto-Light', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.6;
    color: var(--ink);
    text-align: left;
    text-shadow: none;
  }
  .main .about h2,
  .main .about h3,
  .main .about h4,
  .main .about h5 { margin: 0 0 14px; }
  .main .about h1,
  .main .contact1 h1,
  .main .apparelcontent h1,
  .main .printing h1 {
    font-size: clamp(2.6rem, 1.9rem + 2vw, 3.2rem);
    line-height: 1.2;
    text-wrap: balance;
  }
  .main a[style*="color: blue"] { color: var(--brown) !important; text-decoration: underline; }
  .main img { max-width: 100%; height: auto; }

  /* Blog posts. */
  .main .blog { padding-left: 16px; padding-right: 16px; }
  .main .blog-caption { padding: 12px 0; }
  .main .blog-caption p { text-align: left; }
  .main .blog-caption figure { max-width: 100%; margin: 0 0 12px; }
  .main .blog h6 { font-size: 13px; padding: 12px 0; }
  .main .blog-sidebar li { font-size: 15px; color: #fff; }

  /* Services (homepage and Printing Services): a two-column grid of photo cards, the name below in dark text, the
     logo's process inks as a stripe under each card. */
  .main .service-list {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 16px 16px 8px;
    text-align: left;
  }
  .main .service-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: auto;
    margin: 0;
    padding: 0;
  }
  .main .service-list li { display: flex; height: auto; padding: 0; width: auto; }
  .main .service-list li:last-child { grid-column: 1 / -1; }
  .main .service-list .wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    float: none;
    width: auto;
    height: auto;
    padding: 0;
    background: #fff;
    border-bottom: 4px solid var(--cyan);
    border-radius: 3px;
    overflow: hidden;
    visibility: visible !important;
    animation: none !important;
  }
  .main .service-list li:nth-child(2) .wrapper { border-bottom-color: var(--magenta); }
  .main .service-list li:nth-child(3) .wrapper { border-bottom-color: var(--yellow); }
  .main .service-list li:nth-child(4) .wrapper { border-bottom-color: var(--brown); }
  .main .service-list li:nth-child(5) .wrapper { border-bottom-color: var(--ink); }
  .main .service-list .wrapper a {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: var(--target-size);
    color: var(--ink);
    text-decoration: none;
  }
  .main .service-list .wrapper img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none !important;
    height: auto;
    padding: 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .main .service-list li:last-child .wrapper img { aspect-ratio: 16 / 7; }
  .main .service-list .description {
    position: static;
    width: auto;
    height: auto;
    background: none;
    opacity: 1;
  }
  .main .service-list .description_content {
    visibility: visible !important;
    animation: none !important;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 12px 12px;
    font-family: 'Roboto-Regular', sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink);
    text-align: left;
    overflow-wrap: normal;
    hyphens: manual;
  }

  /* Contact form: 16px fields (smaller text makes iPhones zoom in on tap), 44px tall, darker placeholders. */
  .main .contact1 .form-control { font-size: 16px; color: var(--ink); }
  .main .contact1 input.form-control { height: var(--target-size); }
  .main .contact1 .form-control::placeholder { color: #6b5e52; opacity: 1; }
  .main .contact1 .btn { min-height: var(--target-size); font-size: 16px; }
  .main .chimps-consent label { font-size: 14px; }
  .main .chimps-consent input { width: 20px; height: 20px; vertical-align: -5px; }

  /* No empty band above the footer; the footer's small print readable. */
  .main { padding-bottom: 0 !important; }
  #footer.visible-phone { margin-top: 24px; }
  #footer.visible-phone p { font-family: 'Roboto-Light', sans-serif; font-size: 12px; line-height: 1.5; color: var(--ink); }
  #footer.visible-phone li { font-size: 14px; }
  #footer.visible-phone p a { text-decoration: underline; }
  /* The blog's phone footer sits outside .main, so Bootstrap's row margins pushed it 12px past the screen edge. */
  .col-sm-10 > #footer.visible-phone .row { margin-left: 0; margin-right: 0; }
}
