/* Shared mobile divider treatment. Keep existing borders, placement and visibility. */
@media screen and (max-width:767px) {
  :root {
    --mobile-rule-width:1px;
    --mobile-rule-color:#aaa99f;
  }

  /* Case-study panel borders; border styles still control which sides exist. */
  .league-project,
  .league-intro,
  .league-intro > .league-heading,
  .league-revised .league-revised-body,
  .league-overview,
  .league-identity,
  .league-demo,
  .league-main,
  .league-services,
  .league-pitch,
  .resume {
    border-width:var(--mobile-rule-width);
    border-color:var(--mobile-rule-color);
  }

  /* Full-width rules use pseudo-elements instead of borders. */
  .project-intro::before,
  .project-intro::after,
  .project-content::after,
  .project-intro h2::before,
  .project-intro > .project-caption::before,
  .logo-panel::before,
  .league-art-rule {
    height:var(--mobile-rule-width);
    background-color:var(--mobile-rule-color);
  }
  .project-caption::after,
  .project-content::before {
    border-left-width:var(--mobile-rule-width);
    border-left-color:var(--mobile-rule-color);
  }

  /* The same navigation treatment is used on every page. */
  .mobile-menu nav {
    border-right-width:var(--mobile-rule-width);
    border-right-color:var(--mobile-rule-color);
  }
  .mobile-menu nav a,
  .mobile-menu-top,
  .mobile-menu nav .mobile-portfolio > summary {
    border-bottom-width:var(--mobile-rule-width);
    border-bottom-color:var(--mobile-rule-color);
  }
}
