/*
 * Tablet-only homepage overrides.
 * Kept in a separately named file so Safari file:// previews do not reuse an
 * older cached copy of the main stylesheet.
 */
@media (min-width: 576px) and (max-width: 1199.98px) and (min-height: 551px) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-desktop-v2.jpg");
    background-position: center;
    background-size: 100% 100%;
  }

  .home-plaque {
    top: 43%;
    left: 4%;
    width: min(68vw, calc(96vw - 215px));
  }

  .home-rail {
    position: absolute;
    top: 0;
    right: clamp(0.75rem, 2vw, 1.25rem);
    bottom: auto;
    left: auto;
    display: block;
    width: clamp(155px, 18vw, 190px);
    min-height: 0;
    padding: clamp(1rem, 3vh, 2rem) 0 1rem;
  }

  .home-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .home-profile {
    position: static;
    align-self: center;
    width: min(100%, 150px);
  }

  .home-portrait {
    width: 100%;
    margin: 0;
  }

  .home-contact {
    margin: 0.55rem auto clamp(2rem, 4vh, 3rem);
    color: #ffd400;
    font-size: clamp(1.15rem, 2.15vw, 1.45rem);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 1px rgba(16, 16, 15, 0.7);
  }

  .home-nav {
    position: static;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(0.2rem, 0.6vh, 0.4rem);
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: translateX(-0.75rem);
  }

  .home-nav a {
    font-size: clamp(1.65rem, min(3.5vw, 4vh), 2.35rem);
    line-height: 0.93;
    white-space: nowrap;
  }

  .home-nav-break {
    display: none;
  }

  .home-socials {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin: clamp(2rem, 4.5vh, 3.5rem) 0 0;
    padding: 0;
    font-size: clamp(0.95rem, min(1.9vw, 2vh), 1.2rem);
    line-height: 1.18;
    background: transparent;
    box-shadow: none;
    transform: translateX(-0.75rem);
  }

  .home-socials .home-handle {
    margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  }

  .home-socials .home-social-toggle {
    display: none;
  }

  .home-social-menu {
    display: block;
  }

  .home-plaque-mobile {
    display: none;
  }
}
